Skip to content

Commit

Permalink
Allow building as pure.
Browse files Browse the repository at this point in the history
  • Loading branch information
ionelmc committed Dec 14, 2021
1 parent 80287ab commit fba445f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ def read(*names, **kwargs):


class BinaryDistribution(Distribution):
"""Distribution which always forces a binary package with platform name"""
def has_ext_modules(_):
return True
"""Distribution which almost always forces a binary package with platform name"""
def has_ext_modules(self):
return super().has_ext_modules() or 'SETUP_PY_ALLOW_PURE' not in os.environ


setup(
Expand Down

0 comments on commit fba445f

Please sign in to comment.