numpy_flags.py 290 B

123456789101112
  1. from os import path
  2. try:
  3. from numpy import __file__ as numpyloc
  4. # Get numpy directory
  5. numpy_dir = path.dirname(numpyloc)
  6. # Print the result of joining this to core and include
  7. print("-I" + path.join(numpy_dir, "core", "include"))
  8. except:
  9. print("-DWITHOUT_NUMPY")