summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/sysconfig.py
Commit message (Collapse)AuthorAgeFilesLines
* OS/2 patches by Andrew I MacIntyre for distutils.Marc-André Lemburg2002-01-311-0/+26
| | | | Closes patch #435381.
* Whitespace normalization.Fred Drake2001-12-061-4/+4
|
* [Bug #404274] Restore some special-case code for AIX and BeOS under 1.5.2.Andrew M. Kuchling2001-09-051-1/+28
| | | | | This will have to stay until we decide to drop 1.5.2 compatibility completely.
* On the mac some library paths returned were outdated, some were outright funny.Jack Jansen2001-09-041-5/+3
| | | | Fixed.
* Patch #449054 to implement PEP 250. The standard install directory forGreg Ward2001-08-231-1/+4
| | | | | | modules and extensions on Windows is now $PREFIX/Lib/site-packages. Includes backwards compatibility code for pre-2.2 Pythons. Contributed by Paul Moore.
* Miscellaneous minor cleanups.Fred Drake2001-08-021-20/+21
|
* Add backwards compatibility.Marc-André Lemburg2001-07-261-1/+6
|
* Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.Martin v. Löwis2001-07-261-3/+3
|
* Minor changes for stylistic cleanliness and consistency.Fred Drake2001-07-181-16/+20
|
* Fixed botched indent in _init_mac() code. (It may never be executed,Guido van Rossum2001-05-171-1/+1
| | | | | but it still can't have any syntax errors. Went a little too fast there, Jack? :-)
* Made distutils understand the MacPython Carbon runtime model. Distutils will ↵Jack Jansen2001-05-171-0/+4
| | | | build for the runtime model you are currently using for the interpreter.
* Placate tabnannyAndrew M. Kuchling2001-02-281-1/+1
|
* Linking just got simpiler on AIX and BeOS (closes SF patch #103679).Neil Schemenauer2001-02-161-25/+2
|
* There is no more Modules/Makefile, use toplevel Makefile.Neil Schemenauer2001-01-241-1/+1
|
* Patch #103279: sysconfig.py always looks for versions of files inAndrew M. Kuchling2001-01-171-1/+19
| | | | | | | | sys.prefix + 'config/Makefile'. When building Python for the first time, these files aren't there, so the files from the build tree have to be used instead; this file adds an entry point for specifying that the build tree files should be used. (Perhaps 'set_python_build' should should be preceded with an underscore?)
* Fix bugs with integer-valued variables when parsing Makefiles. ValuesAndrew M. Kuchling2001-01-161-5/+9
| | | | | | | | | | for done[n] can be integers as well as strings, but the code concatenates them with strings (fixed by adding a str()) and calls string.strip() on them (fixed by rearranging the logic) (Presumably this wasn't noticed previously because parse_makefile() was only called on Modules/Makefile, which contains no integer-valued variables.)
* Delete unused import of pprint moduleAndrew M. Kuchling2001-01-111-1/+0
|
* Added 'expand_makefile_vars()' to (duh) expand make-style variablesGreg Ward2000-09-171-9/+39
| | | | | | | | in a string (gives you something to do with the dictionary returned by 'parse_makefile()'). Pulled the regexes in 'parse_makefile()' out -- they're now globals, as 'expand_makefile_vars()' needs (two of) them. Cosmetic tweaks to 'parse_makefile()'.
* Changed from eager parsing of Makefile (at import time) to lazy: only doGreg Ward2000-09-151-25/+63
| | | | | | | | | | | | | | | all that work when someone asks for a "configuration variable" from the Makefile. Details: - added 'get_config_vars()': responsible for calling one of the '_init_*()' functions to figure things out for this platform, and to provide an interface to the resulting dictionary - added 'get_config_var()' as a simple interface to the dictionary loaded by 'get_config_vars()' - changed the '_init_*()' functions so they load the global dictionary '_config_vars', rather than spewing their findings all over the module namespace - don't delete the '_init_*()' functions when done importing - adjusted 'customize_compiler()' to the new regime
* Fixed so 'parse_makefile()' uses the TextFile class to ensure thatGreg Ward2000-09-151-6/+8
| | | | | comments are stripped and lines are joined according to the backslash convention.
* Rene Liebscher: hack '_init_posix()' to handle the BeOS linker script.Greg Ward2000-09-011-0/+17
| | | | | (With a worry-wart comment added by me about where we *should* add the Python library to the link.)
* Typo fix.Greg Ward2000-08-021-1/+1
|
* Rene Liebscher: deleted unneeded hard-coded assignments of CC, RANLIB, etc.Greg Ward2000-08-021-17/+1
| | | | in '_init_nt()' (they were kludges for CygwinCCompiler and no longer needed).
* Oops, only do that AIX hack on AIX.Greg Ward2000-06-271-1/+1
|
* Fixed LDSHARED for AIX, based on a patch by Rene Liebscher.Greg Ward2000-06-271-15/+12
| | | | | Ditched my old code that fixed relative paths in the Makefile -- didn't work, doomed to failure, etc.
* Added the 'customize_compiler()' function, which plugs in the essentialGreg Ward2000-06-251-0/+20
| | | | | | information about building Python extensions that we discovered in Python's makefile. Currently only needed on Unix, so does nothing on other systems.
* Added a bunch of new globals in '_init_mac()' -- these will be needed toGreg Ward2000-06-031-1/+15
| | | | | support the forthcoming Cygwin/Mingw32 GCC-on-Windows patch. Standardized CVS id line.
* Catch failure to open installed Makefile, and report it as aGreg Ward2000-05-231-1/+11
| | | | | | DistutilsPlatformError: "invalid Python installation". (This will happen on Red Hat-ish systems where the python-devel package is not installed.)
* Added kludge to deal with the "./ld_so_aix" problem: force all stringsGreg Ward2000-04-191-0/+15
| | | | | in the Makefile that start with "./" to be absolute paths (with the implied root being the directory where the Makefile itself was found).
* Don't load the config.h file, even under Unix, because we never use theGreg Ward2000-04-191-2/+0
| | | | | information from config.h. Code is still there in case someone in the future needs to parse an autoconf-generated config.h file.
* Don't bother reading config.h on NT or Mac OS. (It's not really neededGreg Ward2000-04-141-6/+0
| | | | on Unix either, so should probably disappear entirely.)
* Added optional 'prefix' arguments to 'get_python_inc()' andGreg Ward2000-04-101-4/+10
| | | | 'get_python_lib()'.
* Better variable names here and there.Greg Ward2000-04-101-18/+18
|
* There are a few places which can raise DistutilsPlatformError; makeFred Drake2000-03-091-41/+54
| | | | | | | | | | | sure it's imported! ;) Re-wrap the docstrings on get_python_inc() and get_python_lib() to be closer to the "normal" Python style. See GvR's "style guide" on the essays page (http://www.python.org/doc/essays/). There should never be a space between a function name and the '(' that opens the argument list (see the style guide again).
* Added Joe Van Andel's 'get_python_inc()', adapted by me to supplyGreg Ward2000-03-091-15/+80
| | | | | | | | | the platform-neutral include dir by default and with Mac support. Added 'get_python_lib()', inspired by 'get_python_inc()'. Rewrote 'get_config_h_filename()' and 'get_makefile_filename()' in terms of 'get_python_inc()' and 'get_python_lib()'. Changed '_init_nt()' and '_init_mac()' to use 'get_python_inc()' and 'get_python_lib()' for directory names.
* Patch from Corran Webster <cwebster@nevada.edu>: add '_init_mac()'.Greg Ward2000-03-071-0/+22
|
* get_config_h_filename(): Support NT as well as Posix systems.Fred Drake2000-02-081-10/+14
| | | | | | | | | _init_nt(): Use get_config_h_filename() instead of figuring out the name directly. g['SO'] should be set to '.pyd'. Adjust some minor coding nits.
* Comment fix.Greg Ward2000-02-021-8/+13
| | | | | Always use normalized (with os.path.normpath()) versions of prefix and exec_prefix.
* Patch from Perry Stoll: tweaks to Windows support.Greg Ward1999-08-291-1/+6
|
* Now handles NT, through '_init_nt()' function (courtesy ofGreg Ward1999-06-081-0/+11
| | | | Amos Latteier <amos@aracnet.com>).
* get_config_h_filename(): Fix to work with current PythonFred Drake1999-01-111-2/+2
| | | | | installations; it was picking up a stale config.h from an overwritten installation.
* Update and add docstrings.Fred Drake1999-01-061-5/+13
|
* Another patch from Fred: factored _init_posix intoGreg Ward1999-01-061-18/+37
| | | | | get_config_h_filename, get_makefile_filename, parse_config_h, and parse_makefile.
* Applied Fred's patch to fix the bugs that John Skaller noticed.Greg Ward1998-12-221-6/+14
|
* Fred's sysconfig module.Greg Ward1998-12-181-0/+106