File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed
Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 66Build distribution packages for all architectures and all supported
77python versions.
88
9+ TODO: test_wheel_package_installation()
910TODO: Linux/Mac support. Currently runs only on Windows.
1011
1112Usage:
@@ -89,6 +90,7 @@ def main():
8990 make_packages (pythons_32bit [0 ], "32bit" )
9091 if pythons_64bit :
9192 make_packages (pythons_64bit [0 ], "64bit" )
93+ test_wheel_package_installation ()
9294 show_summary (pythons_32bit , pythons_64bit )
9395
9496
@@ -415,6 +417,11 @@ def make_packages(python, arch):
415417 shutil .rmtree (setup_dir )
416418
417419
420+ def test_wheel_package_installation ():
421+ # PYPI_POSTFIX2_ARCH
422+ pass # TODO
423+
424+
418425def show_summary (pythons_32bit , pythons_64bit ):
419426 print ("[build_distrib.py] SUMMARY:" )
420427 print (" Pythons 32bit ({count})" .format (count = len (pythons_32bit )))
Original file line number Diff line number Diff line change 5050 Linux = {"32bit" : "linux32" , "64bit" : "linux64" },
5151 Darwin = {"32bit" : "mac32" , "64bit" : "mac64" },
5252)
53+ PYPI_POSTFIX2_ARCH = dict (
54+ Windows = {"32bit" : "win32" , "64bit" : "win-amd64" },
55+ Linux = {"32bit" : "i686" , "64bit" : "x86_64" },
56+ Darwin = {"64bit" : "x86_64" },
57+ )
5358
5459# Python version eg. 27
5560PYVERSION = str (sys .version_info [0 ])+ str (sys .version_info [1 ])
Original file line number Diff line number Diff line change @@ -81,11 +81,11 @@ class custom_bdist_wheel(bdist_wheel):
8181 def get_tag (self ):
8282 tag = bdist_wheel .get_tag (self )
8383 platform_tag = sysconfig .get_platform ()
84+ platform_tag = platform_tag .replace ("-" , "_" )
8485 if platform .system () == "Linux" :
8586 assert "linux" in platform_tag
8687 # "linux-x86_64" replace with "manylinux1_x86_64"
8788 platform_tag = platform_tag .replace ("linux" , "manylinux1" )
88- platform_tag = platform_tag .replace ("-" , "_" )
8989 elif platform .system () == "Darwin" :
9090 # For explanation of Mac platform tags, see:
9191 # http://lepture.com/en/2014/python-on-a-hard-wheel
You can’t perform that action at this time.
0 commit comments