Blame SOURCES/pyproject_wheel.py
|
|
557ab5 |
import sys
|
|
|
557ab5 |
import subprocess
|
|
|
557ab5 |
|
|
|
557ab5 |
|
|
|
557ab5 |
def build_wheel(*, wheeldir, stdout=None):
|
|
|
557ab5 |
command = (
|
|
|
557ab5 |
sys.executable,
|
|
|
557ab5 |
'-m', 'pip',
|
|
|
557ab5 |
'wheel',
|
|
|
557ab5 |
'--wheel-dir', wheeldir,
|
|
|
557ab5 |
'--no-deps',
|
|
|
557ab5 |
'--use-pep517',
|
|
|
557ab5 |
'--no-build-isolation',
|
|
|
557ab5 |
'--disable-pip-version-check',
|
|
|
557ab5 |
'--no-clean',
|
|
|
557ab5 |
'--progress-bar', 'off',
|
|
|
557ab5 |
'--verbose',
|
|
|
557ab5 |
'.',
|
|
|
557ab5 |
)
|
|
|
557ab5 |
cp = subprocess.run(command, stdout=stdout)
|
|
|
557ab5 |
return cp.returncode
|
|
|
557ab5 |
|
|
|
557ab5 |
|
|
|
557ab5 |
if __name__ == '__main__':
|
|
|
557ab5 |
sys.exit(build_wheel(wheeldir=sys.argv[1]))
|