Skip to content

Commit 8664386

Browse files
committed
Fix platform tag in wheel package on Windows 64-bit
1 parent 4a9c639 commit 8664386

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

tools/build_distrib.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
Build distribution packages for all architectures and all supported
77
python versions.
88
9+
TODO: test_wheel_package_installation()
910
TODO: Linux/Mac support. Currently runs only on Windows.
1011
1112
Usage:
@@ -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+
418425
def show_summary(pythons_32bit, pythons_64bit):
419426
print("[build_distrib.py] SUMMARY:")
420427
print(" Pythons 32bit ({count})".format(count=len(pythons_32bit)))

tools/common.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@
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
5560
PYVERSION = str(sys.version_info[0])+str(sys.version_info[1])

tools/installer/cefpython3.setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)