from pybind11 import get_include as pybind_get_include
from numpy import get_include as np_get_include
from mdtraj import capi as mdtraj_capi
pybind_inc = str(get_pybind_include())
mdtraj_inc = mdtraj_capi()["include_dir"]
mdtraj_lib = mdtraj_capi()["lib_dir"]
lib_prefix = "lib" if sys.platform.startswith("win") else ""
common_cflags = ["-O3", ]
After Change
def extensions():
from Cython.Build import cythonize
from numpy import get_include as np_get_include
pybind_inc = os.path.join(os.path.dirname(os.path.abspath(__file__)), "ext", "pybind11", "include")
assert os.path.exists(pybind_inc), "pybind11 headers not found at %s" % pybind_inc
from mdtraj import capi as mdtraj_capi