INNER CODE UNIT · Python
build_ext
open2c/pairtools · setup.py:75
class build_ext(_build_ext):
# Extension module build configuration
def finalize_options(self):
_build_ext.finalize_options(self)
# Fix to work with bootstrapped numpy installation
# http://stackoverflow.com/a/21621689/579416
# Prevent numpy from thinking it is still in its setup process:
#__builtins__.__NUMPY_SETUP__ = False
import numpy
self.include_dirs.append(numpy.get_include())
def run(self):
# Import numpy here, only when headers are needed
import numpy
# Add numpy headers to include_dirs