diff options
Diffstat (limited to 'getheader.py')
| -rw-r--r-- | getheader.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/getheader.py b/getheader.py new file mode 100644 index 0000000..558726c --- /dev/null +++ b/getheader.py @@ -0,0 +1,13 @@ +import sys +import os.path +path=os.path.join(sys.exec_prefix,"include","python%s"%sys.version[:3]) +#print "headers at ",repr(path) +#-lpython2.3 -lm -L/usr/lib/python2.3/config +args="-lpython%s -lm -L%s"%(sys.version[:3],os.path.join(sys.exec_prefix,"lib","python%s"%sys.version[:3],"config")) +print " linux args are" +print args,"-I%s"%path + +path=os.path.join(sys.exec_prefix,"include") +args="-lpython%s -lm -L%s"%(sys.version[:3],os.path.join(sys.exec_prefix,"lib","config"))#,"python%s"%sys.version[:3] +print "\n windows args are" +print args,"-I%s"%path
\ No newline at end of file |
