From fba445fe0c44f578a2a8f1dba55293be0d4f3f82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ionel=20Cristian=20M=C4=83rie=C8=99?= Date: Tue, 14 Dec 2021 21:03:32 +0200 Subject: [PATCH] Allow building as pure. --- setup.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index d9b096b..af37be2 100755 --- a/setup.py +++ b/setup.py @@ -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(