Commit a322eb02db38009e26229455e663c36f5415cb08

Authored by knodlseder
1 parent 13dea57d

initial version for python linking problems

Showing 1 changed file with 34 additions and 0 deletions
pyext/check_config.py 0 → 100755
  1 +#! /usr/bin/env python
  2 +
  3 +#from distutils.core import setup, Extension
  4 +from distutils import sysconfig
  5 +#import glob
  6 +#import os
  7 +#import sys
  8 +import commands
  9 +
  10 +
  11 +# ======================== #
  12 +# Main routine entry point #
  13 +# ======================== #
  14 +if __name__ == '__main__':
  15 + """
  16 + """
  17 + # Get configuration variables
  18 + cvars = sysconfig.get_config_vars()
  19 +
  20 + # Dump configuration variables
  21 + #print cvars
  22 + for key in cvars:
  23 + print key, "=", cvars[key]
  24 +
  25 + # Get library information
  26 + print commands.getoutput("file build/temp.*/gammalib_wrap.o")
  27 + print commands.getoutput("file ../src/.libs/libgamma_python.a")
  28 + print commands.getoutput("file ../src/.libs/libgamma.a")
  29 + print commands.getoutput("file ../src/.libs/libgamma.dylib")
  30 + print commands.getoutput("file build/_gammalib.so")
  31 + print commands.getoutput("file build/lib.*/_gammalib.so")
  32 + print commands.getoutput("file /usr/local/gamma/lib/libcfitsio.dylib")
  33 + print commands.getoutput("file /opt/local/lib/libcfitsio.dylib")
  34 + print commands.getoutput("file /usr/lib/libreadline.dylib")
0 35 \ No newline at end of file
... ...