Still add plat-name for Linux
This commit is contained in:
@@ -182,24 +182,20 @@ cmdclass['bdist_egg'] = custom_bdist_egg
|
|||||||
|
|
||||||
if 'bdist_wheel' in sys.argv and '--plat-name' not in sys.argv:
|
if 'bdist_wheel' in sys.argv and '--plat-name' not in sys.argv:
|
||||||
idx = sys.argv.index('bdist_wheel') + 1
|
idx = sys.argv.index('bdist_wheel') + 1
|
||||||
|
sys.argv.insert(idx, '--plat-name')
|
||||||
name = get_platform()
|
name = get_platform()
|
||||||
if 'linux' in name:
|
if 'linux' in name:
|
||||||
# linux_* platform tags are disallowed because the python ecosystem is fubar
|
# linux_* platform tags are disallowed because the python ecosystem is fubar
|
||||||
# linux builds should be built in the centos 5 vm for maximum compatibility
|
# linux builds should be built in the centos 5 vm for maximum compatibility
|
||||||
# see https://github.com/pypa/manylinux
|
# see https://github.com/pypa/manylinux
|
||||||
# see also https://github.com/angr/angr-dev/blob/master/bdist.sh
|
# see also https://github.com/angr/angr-dev/blob/master/bdist.sh
|
||||||
# sys.argv.insert(idx + 1, 'manylinux1_' + platform.machine())
|
sys.argv.insert(idx + 1, 'manylinux1_' + platform.machine())
|
||||||
# Let auditwheel repair it
|
|
||||||
pass
|
|
||||||
elif 'mingw' in name:
|
elif 'mingw' in name:
|
||||||
sys.argv.insert(idx, '--plat-name')
|
|
||||||
if IS_64BITS:
|
if IS_64BITS:
|
||||||
sys.argv.insert(idx + 1, 'win_amd64')
|
sys.argv.insert(idx + 1, 'win_amd64')
|
||||||
else:
|
else:
|
||||||
sys.argv.insert(idx + 1, 'win32')
|
sys.argv.insert(idx + 1, 'win32')
|
||||||
else:
|
else:
|
||||||
sys.argv.insert(idx, '--plat-name')
|
|
||||||
# https://www.python.org/dev/peps/pep-0425/
|
# https://www.python.org/dev/peps/pep-0425/
|
||||||
sys.argv.insert(idx + 1, name.replace('.', '_').replace('-', '_'))
|
sys.argv.insert(idx + 1, name.replace('.', '_').replace('-', '_'))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user