summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/sysconfig.py
Commit message (Collapse)AuthorAgeFilesLines
* Backport of r52233Ronald Oussoren2006-10-081-1/+5
|
* MacOSX: fix rather dumb buglet that made it impossible to create extensions onRonald Oussoren2006-06-271-1/+1
| | | | OSX 10.3 when using a binary distribution build on 10.4.
* Patch #1488098.Ronald Oussoren2006-05-231-0/+15
| | | | | | This patchs makes it possible to create a universal build on OSX 10.4 and use the result to build extensions on 10.3. It also makes it possible to override the '-arch' and '-isysroot' compiler arguments for specific extensions.
* Patch 1471883: --enable-universalsdk on Mac OS XRonald Oussoren2006-04-291-2/+2
|
* disutils checks if MACOSX_DEPLOYMENT_TARGET is consistent with the value atRonald Oussoren2006-04-171-1/+1
| | | | | | | | | configure time. The current check is too strict and doesn't allow building extensions that can only run on newer versions of the OS than the version python was build for, that is python build for 10.3 or later and an extension for 10.4. This patch relaxes this check. This turned out to be a reimplementation of patch 1193190.
* Fix for a bug exposed by r45232:Armin Rigo2006-04-171-2/+2
| | | | | | | | | /path/to/uninstalled/python setup.py build_ext now failed with pyconfig.h not found. Prior to r45232 the above command did not look for pyconfig.h, but the bug is really in the look-up code: expecting to find it in os.curdir is a rather fragile idea.
* Patch #1429775: Link Python modules to libpython on linux ifMartin v. Löwis2006-04-101-2/+13
| | | | --enable-shared. Fixes #832799.
* Instead of relative imports, use (implicitly) absolute ones.Guido van Rossum2006-03-151-1/+1
|
* Use relative imports in a few places where I noticed the need.Guido van Rossum2006-03-151-1/+1
| | | | | (Ideally, all packages in Python 2.5 will use the relative import syntax for all their relative import needs.)
* Whitespace normalization.Tim Peters2005-05-181-1/+1
|
* Make parse_makefile fallback to environment variables if nothing isMartin v. Löwis2005-04-251-21/+14
| | | | | defined in the makefile. Get CFLAGS from the Makefile, instead of getting OPT, BASE_CFLAGS and EXTRA_CFLAGS individually.
* Introduced EXTRA_CFLAGS as an environment variable used by the Makefile. MeantBrett Cannon2005-04-241-3/+4
| | | | | | | to be used for flags that change binary compatibility. Distutils was tweaked to also use the variable if used during compilation of the interpreter.
* Patch #1046831: Use get_python_version where appropriate in sysconfig.py.Martin v. Löwis2005-03-031-6/+6
|
* After discussion on the PythonMac-SIG it was decided that it is betterJack Jansen2004-12-261-2/+4
| | | | | | | | | | to make using "-undefined dynamic_lookup" for linking extensions more automatic on 10.3 and later. So if we're on that platform and MACOSX_DEPLOYMENT_TARGET is not set we now set it to the current OSX version during configure. Additionally, distutils will pick up the configure-time value by default. Will backport.
* Patch 983206: distutils obeys LDSHARED env var. Removed the code inAnthony Baxter2004-10-131-0/+2
| | | | | Python's own setup.py that did the same thing (and tested on Solaris, where LDSHARED is needed...)
* Whitespace normalization, via reindent.py.Tim Peters2004-07-181-1/+1
|
* Partial fix for #887242 (link extensions with dynamic_lookup in steadJack Jansen2004-06-031-1/+13
| | | | | | | | | | | | | | | | of hard linking against the framework). If $MACOSX_DEPLOYMENT_TARGET is set, and >= 10.3, during configure we setup extensions to link with dynamic lookup. We also record the value in the Makefile. Distutils checks whether a value for MACOSX_DEPLOYMENT_TARGET was recorded in the Makefile, and if it was insists that the current value matches. This is only a partial fix because it only applies to 2.4, and the "two python problem" exists with Python 2.3 shipped with MacOSX 10.3, which we have no influence over.
* Patch #812378: Normalize white space.Martin v. Löwis2003-10-241-3/+3
|
* Pick up Makefile variable BASECFLAGS too. This is needed since OPT wasJack Jansen2003-02-101-2/+4
| | | | | split into OPT and BASECFLAGS (Makefile.pre.in rev. 1.108), because now there are essential CFLAGS in BASECFLAGS.
* Remove 'created by' lines; people can use CVS for this, and the information ↵Andrew M. Kuchling2002-11-141-1/+0
| | | | is often out of date
* [Bug #550364] Add get_python_version()Andrew M. Kuchling2002-11-141-1/+9
|
* Back out part of rev. 1.53, restoring the use of the string module.Andrew M. Kuchling2002-11-131-4/+6
| | | | | | The two long lines have been reflowed differently; hopefully someone on BeOS can test them. Rev. 1.53 also converted string.atoi() to int(); I've left that alone.
* Remove use of string module and reflow a couple of long lines.Jeremy Hylton2002-11-051-10/+10
|
* This patch fixes the following bugs:Gustavo Niemeyer2002-11-051-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [#413582] g++ must be called for c++ extensions [#454030] distutils cannot link C++ code with GCC topdir = "Lib/distutils" * bcppcompiler.py (BCPPCompiler.create_static_lib): Fixed prototype, removing extra_preargs and extra_postargs parameters. Included target_lang parameter. (BCPPCompiler.link): Included target_lang parameter. * msvccompiler.py (MSVCCompiler.create_static_lib): Fixed prototype, removing extra_preargs and extra_postargs parameters. Included target_lang parameter. (MSVCCompiler.link): Included target_lang parameter. * ccompiler.py (CCompiler): New language_map and language_order attributes, used by CCompiler.detect_language(). (CCompiler.detect_language): New method, will return the language of a given source, or list of sources. Individual source language is detected using the language_map dict. When mixed sources are used, language_order will stablish the language precedence. (CCompiler.create_static_lib, CCompiler.link, CCompiler.link_executable, CCompiler.link_shared_object, CCompiler.link_shared_lib): Inlcuded target_lang parameter. * cygwinccompiler.py (CygwinCCompiler.link): Included target_lang parameter. * emxccompiler.py (EMXCCompiler.link): Included target_lang parameter. * mwerkscompiler.py (MWerksCompiler.link): Included target_lang parameter. * extension.py (Extension.__init__): New 'language' parameter/attribute, initialized to None by default. If provided will overlap the automatic detection made by CCompiler.detect_language(), in build_ext command. * sysconfig.py (customize_compiler): Check Makefile for CXX option, and also the environment variable CXX. Use the resulting value in the 'compiler_cxx' parameter of compiler.set_executables(). * unixccompiler.py (UnixCCompiler): Included 'compiler_cxx' in executables dict, defaulting to 'cc'. (UnixCCompiler.create_static_lib): Included target_lang parameter. (UnixCCompiler.link): Included target_lang parameter, and made linker command use compiler_cxx, if target_lang is 'c++'. * command/build_ext.py (build_ext.build_extension): Pass new ext.language attribute to compiler.link_shared_object()'s target_lang parameter. If ext.language is not provided, detect language using compiler.detect_language(sources) instead. * command/config.py (config._link): Pass already available lang parameter as target_lang parameter of compiler.link_executable().
* [Patch #588809] LDFLAGS support for build_ext.py, from Robert WeberAndrew M. Kuchling2002-11-041-1/+17
| | | | | | customize_compiler() now looks at various environment variables and uses their values to override the configured C compiler/preprocessor/linker binary and flags.
* Well, Fred never did explain why the code to determine whether theMichael W. Hudson2002-07-121-7/+3
| | | | | | calling Python was installed was so complicated, so I simplified it. This should get the snake-farm's build scripts working again.
* Whitespace normalization (remove tabs)Neal Norwitz2002-06-261-4/+4
|
* Fixed various MacPython-specific issues found by attempting to use the ↵Jack Jansen2002-06-261-1/+6
| | | | standard core setup.py for MacPython.
* Fix unused local variables caught by pychecker.Jeremy Hylton2002-06-041-1/+0
| | | | | Fixes a bug for Solaris pkgtool (bdist_pkgtool) that would have prevented it from building subpackages.
* When using a Python that has not been installed to build 3rd-partyFred Drake2002-06-041-14/+22
| | | | | | | | | | | | | | | | | | modules, distutils does not understand that the build version of the source tree is needed. This patch fixes distutils.sysconfig to understand that the running Python is part of the build tree and needs to use the appropriate "shape" of the tree. This does not assume anything about the current directory, so can be used to build 3rd-party modules using Python's build tree as well. This is useful since it allows us to use a non-installed debug-mode Python with 3rd-party modules for testing. It as the side-effect that set_python_build() is no longer needed (the hack which was added to allow distutils to be used to build the "standard" extension modules). This closes SF patch #547734.
* 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.