Skip to content

Commit

Permalink
setup.py fixed on Windows
Browse files Browse the repository at this point in the history
tags are wildly inconsistent between various machines, especially on Windows. It's a huge mess.
  • Loading branch information
Bastian Bechtold committed Jan 2, 2025
1 parent 9073e83 commit 5a068bc
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ def get_tag(self):
else:
oses = 'macosx_11_0_arm64'
elif platform == 'win32':
if architecture0 == 'arm64':
if architecture0.lower() == 'arm64' or machine() == 'ARM64':
oses = 'win_arm64'
elif architecture0 == 'x86':
elif architecture0 == 'x86' or architecture0 == '32bit':
oses = 'win32'
elif architecture0 == 'x64':
elif architecture0 == 'x64' or architecture0 == '64bit':
oses = 'win_amd64'
elif platform == 'linux':
# using the centos:7 runner with glibc2.17:
Expand Down Expand Up @@ -116,6 +116,5 @@ def get_tag(self):
],
long_description=open('README.rst').read(),
long_description_content_type="text/x-rst",
tests_require=['pytest'],
cmdclass=cmdclass,
)

0 comments on commit 5a068bc

Please sign in to comment.