diff options
author | CoprDistGit <infra@openeuler.org> | 2023-03-23 02:28:22 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-03-23 02:28:22 +0000 |
commit | 6d8e39fe5ab063ff2a4c2a918cb6ad5b5d4aec45 (patch) | |
tree | bd5138cc2ba1ebbbdbc52bd269b506114f8caa12 /pyproject_wheel.py | |
parent | b0e529d9a17eaf6cc3ff98b78de743e401913baf (diff) |
automatic import of pyproject-rpm-macros
Diffstat (limited to 'pyproject_wheel.py')
-rw-r--r-- | pyproject_wheel.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/pyproject_wheel.py b/pyproject_wheel.py new file mode 100644 index 0000000..1936d9c --- /dev/null +++ b/pyproject_wheel.py @@ -0,0 +1,25 @@ +import sys +import subprocess + + +def build_wheel(*, wheeldir, stdout=None): + command = ( + sys.executable, + '-m', 'pip', + 'wheel', + '--wheel-dir', wheeldir, + '--no-deps', + '--use-pep517', + '--no-build-isolation', + '--disable-pip-version-check', + '--no-clean', + '--progress-bar', 'off', + '--verbose', + '.', + ) + cp = subprocess.run(command, stdout=stdout) + return cp.returncode + + +if __name__ == '__main__': + sys.exit(build_wheel(wheeldir=sys.argv[1])) |