summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2004-12-07 00:42:59 (GMT)
committerBrett Cannon <bcannon@gmail.com>2004-12-07 00:42:59 (GMT)
commit516592f4ff13ee39ebd115088c7429631328e2db (patch)
treeaf28df7b8f8b80cc02cb20cb61abbaba684771f7 /Misc
parent9e635cf3ae1d912dc32d3ff2d5ebc529c92bf389 (diff)
downloadcpython-516592f4ff13ee39ebd115088c7429631328e2db.zip
cpython-516592f4ff13ee39ebd115088c7429631328e2db.tar.gz
cpython-516592f4ff13ee39ebd115088c7429631328e2db.tar.bz2
setup.py now uses the library directories specified in LDFLAGS (``-L``
directories) and the include directories specified in CPPFLAGS (``-I`` directories) for compiling the extension modules. This has led to the core being compiled with the values in the shell's CPPFLAGS. It has also removed the need for special casing to use Fink and DarwinPorts under darwin since the needed directories can now be specified in LDFLAGS and CPPFLAGS (e.g., DarwinPorts users can now do ``LDFLAGS=-L/opt/local/lib; CPPFLAGS=-I/opt/local/include; ./configure`` for everything to work properly). Parsing the values in the environment variables is done with getopt. While optparse would have been a nicer solution it cannot be used because of dependency issues at execution time; optparse uses gettext which uses struct which will not have been compiled when the code is imported. If optparse ever makes its importation of gettext optional by catching ImportError and setting _() to an identity function then it can be used.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS9
1 files changed, 9 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 784e782..380bf9a 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -50,6 +50,15 @@ Library
Build
-----
+- setup.py now uses the directories specified in LDFLAGS using the -L option
+ and in CPPFLAGS using the -I option for adding library and include
+ directories, respectively, for compiling extension modules against. This has
+ led to the core being compiled using the values in CPPFLAGS. It also removes
+ the need for the special-casing of both DarwinPorts and Fink for darwin since
+ the proper directories can be specified in LDFLAGS (``-L/sw/lib`` for Fink,
+ ``-L/opt/local/lib`` for DarwinPorts) and CPPFLAGS (``-I/sw/include`` for
+ Fink, ``-I/opt/local/include`` for DarwinPorts).
+
C API
-----