Logged In: YES
user_id=488897
Three comments:
1) When running this script, I got the following error on
Unix and Cygwin:
$ python-config.php --cflags --static-libs
-I/usr/local/include/python2.4
Traceback (most recent call last):
File "<string>", line 1, in ?
AttributeError: 'module' object has no attribute 'lib'
2) Since we are Pythoneers, why write this script as a
shell-script instead of a Python script? (sh may not even be
available on Windows).
3) Isn't it easier / more reliable to get this information
via distutils? See section 5.6 of "Extending and Embedding
the Python Interpreter". |