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