def test_include_dir(self): incdir = os.path.join(sherpa.get_include(), 'sherpa') self.assert_(os.path.isdir(incdir))
def test_include_dir(): incdir = os.path.join(sherpa.get_include(), 'sherpa') assert os.path.isdir(incdir)
# from numpy.distutils.core import setup, Extension from distutils.core import Extension from distutils.command.build_ext import build_ext from distutils import log import numpy from numpy.distutils import fcompiler import sherpa # What is the best way to find the Sherpa-provided include files? # I was trying to support both ciao-install and conda installations # of CIAO, but I have "given up" on ciao-install for now. # sherpa_incpath = sherpa.get_include() xspec_basedir = "xspec" includes = [numpy.get_include(), sherpa_incpath] for dname in ["", "include", "XSFunctions"]: includes.append(os.path.join(xspec_basedir, dname)) for include in includes: if not os.path.isdir(include): raise IOError("Unable to find {}".format(include)) # Where are the XSPEC libraries? # # They are located in different places in ciao-install vs conda, # but for now concentrating on conda and - on Linux at least - # the path doesn't appear to be needed #