summaryrefslogtreecommitdiff
path: root/getheader.py
diff options
context:
space:
mode:
authorLieuwe <lieuwemo@gmail.com>2011-02-26 10:49:23 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2011-03-02 20:54:19 (GMT)
commit364759ff0812a8049b2f3ca249a34a57fa2e4325 (patch)
tree0c83dc67f47ff9a6b8d4177e282744f8572af14a /getheader.py
parent647ff2bff073d525f1c02eea5c4e01e8dcd3f279 (diff)
downloadpowder-364759ff0812a8049b2f3ca249a34a57fa2e4325.zip
powder-364759ff0812a8049b2f3ca249a34a57fa2e4325.tar.gz
python console
Diffstat (limited to 'getheader.py')
-rw-r--r--getheader.py13
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