| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,6 +6,7 @@ | |||
| 6 | 6 | Build distribution packages for all architectures and all supported | |
| 7 | 7 | python versions. | |
| 8 | 8 | ||
| 9 | + TODO: test_wheel_package_installation() | ||
| 9 | 10 | TODO: Linux/Mac support. Currently runs only on Windows. | |
| 10 | 11 | ||
| 11 | 12 | Usage: | |
@@ -89,6 +90,7 @@ def main(): | |||
| 89 | 90 | make_packages(pythons_32bit[0], "32bit") | |
| 90 | 91 | if pythons_64bit: | |
| 91 | 92 | make_packages(pythons_64bit[0], "64bit") | |
| 93 | + test_wheel_package_installation() | ||
| 92 | 94 | show_summary(pythons_32bit, pythons_64bit) | |
| 93 | 95 | ||
| 94 | 96 | ||
@@ -415,6 +417,11 @@ def make_packages(python, arch): | |||
| 415 | 417 | shutil.rmtree(setup_dir) | |
| 416 | 418 | ||
| 417 | 419 | ||
| 420 | + def test_wheel_package_installation(): | ||
| 421 | + # PYPI_POSTFIX2_ARCH | ||
| 422 | + pass # TODO | ||
| 423 | + | ||
| 424 | + | ||
| 418 | 425 | def show_summary(pythons_32bit, pythons_64bit): | |
| 419 | 426 | print("[build_distrib.py] SUMMARY:") | |
| 420 | 427 | print(" Pythons 32bit ({count})".format(count=len(pythons_32bit))) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -50,6 +50,11 @@ | |||
| 50 | 50 | Linux={"32bit": "linux32", "64bit": "linux64"}, | |
| 51 | 51 | Darwin={"32bit": "mac32", "64bit": "mac64"}, | |
| 52 | 52 | ) | |
| 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 | + ) | ||
| 53 | 58 | ||
| 54 | 59 | # Python version eg. 27 | |
| 55 | 60 | PYVERSION = 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): | |||
| 81 | 81 | def get_tag(self): | |
| 82 | 82 | tag = bdist_wheel.get_tag(self) | |
| 83 | 83 | platform_tag = sysconfig.get_platform() | |
| 84 | + platform_tag = platform_tag.replace("-", "_") | ||
| 84 | 85 | if platform.system() == "Linux": | |
| 85 | 86 | assert "linux" in platform_tag | |
| 86 | 87 | # "linux-x86_64" replace with "manylinux1_x86_64" | |
| 87 | 88 | platform_tag = platform_tag.replace("linux", "manylinux1") | |
| 88 | - platform_tag = platform_tag.replace("-", "_") | ||
| 89 | 89 | elif platform.system() == "Darwin": | |
| 90 | 90 | # For explanation of Mac platform tags, see: | |
| 91 | 91 | # http://lepture.com/en/2014/python-on-a-hard-wheel | |
| Back | FazBrowse Home | New Git URL |
0 commit comments