Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent .whl installation (OOTB) on non Win #394

Closed
wants to merge 8 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove Py2 specific stuff
CristiFati committed Dec 13, 2022
commit e77ed05a03c32be4c4a17c27a7ed7242fe369bda
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -68,14 +68,13 @@ def run(self):

try:
from wheel.bdist_wheel import bdist_wheel
class bdist_wheel_win(bdist_wheel, object): # @TODO - Python 2 compatible (also super() below) still needed?
class bdist_wheel_win(bdist_wheel):
def get_tag(self):
win_plats = ( # Copied the list from DistUtils
"win-amd64",
"win32",
"win-arm64",
"win-arm32",
"win-ia64", # Py2 only
)
tag = super(self.__class__, self).get_tag()
return tuple(tag[:-1]) + (".".join(wp.replace("-", "_") for wp in win_plats),)