We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8afd7cb commit f224eaeCopy full SHA for f224eae
setup.py
@@ -438,9 +438,12 @@ def get_tag(self):
438
439
440
# enable coverage by building cython files by setting the environment variable
441
-# "PANDAS_CYTHON_COVERAGE" (with a Truthy value)
+# "PANDAS_CYTHON_COVERAGE" (with a Truthy value) or by running build_ext
442
+# with `--with-cython-coverage`enabled
443
linetrace = os.environ.get('PANDAS_CYTHON_COVERAGE', False)
-CYTHON_TRACE = str(int(bool(linetrace)))
444
+if '--with-cython-coverage' in sys.argv:
445
+ linetrace = True
446
+ sys.argv.remove('--with-cython-coverage')
447
448
# Note: if not using `cythonize`, coverage can be enabled by
449
# pinning `ext.cython_directives = directives` to each ext in extensions.
0 commit comments