2424# Enable code coverage for C code: we can't use CFLAGS=-coverage in tox.ini, since that may mess with compiling
2525# dependencies (e.g. numpy). Therefore we set SETUPPY_CFLAGS=-coverage in tox.ini and copy it to CFLAGS here (after
2626# deps have been safely installed).
27- if 'TOX_ENV_NAME' in os .environ and os .environ .get ('SETUP_PY_EXT_COVERAGE ' ) == 'yes' and platform .system () == 'Linux' :
27+ if 'TOX_ENV_NAME' in os .environ and os .environ .get ('SETUPPY_EXT_COVERAGE ' ) == 'yes' and platform .system () == 'Linux' :
2828 CFLAGS = os .environ ['CFLAGS' ] = '-fprofile-arcs -ftest-coverage'
2929 LFLAGS = os .environ ['LFLAGS' ] = '-lgcov'
3030else :
@@ -36,7 +36,7 @@ class OptionalBuildExt(build_ext):
3636 """Allow the building of C extensions to fail."""
3737 def run (self ):
3838 try :
39- build_ext .run (self )
39+ super () .run ()
4040 except Exception as e :
4141 self ._unavailable (e )
4242 self .extensions = [] # avoid copying missing files (it would fail).
@@ -67,7 +67,7 @@ def read(*names, **kwargs):
6767class BinaryDistribution (Distribution ):
6868 """Distribution which almost always forces a binary package with platform name"""
6969 def has_ext_modules (self ):
70- return super () .has_ext_modules () or 'SETUP_PY_ALLOW_PURE' not in os .environ
70+ return super .has_ext_modules () or os .environ . get ( 'SETUPPY_ALLOW_PURE' )
7171
7272
7373setup (
@@ -122,7 +122,7 @@ def has_ext_modules(self):
122122 keywords = [
123123 # eg: 'keyword1', 'keyword2', 'keyword3',
124124 ],
125- python_requires = '>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.* ' ,
125+ python_requires = '>=3.6 ' ,
126126 install_requires = [
127127 # eg: 'aspectlib==1.1.1', 'six>=1.7',
128128 ],
0 commit comments