summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/command/build_ext.py
Commit message (Collapse)AuthorAgeFilesLines
* Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774.Martin v. Löwis2001-07-261-2/+2
|
* Fix bug #233253: the --define and --undef options didn't work, whetherAndrew M. Kuchling2001-03-171-0/+15
| | | | | specified on the command-line or in setup.cfg. The option processing leaves them as strings, but they're supposed to be lists.
* Make docstrings raw, since they contain literal backslashes.Ka-Ping Yee2001-03-101-1/+1
|
* Split the rpath argument into multiple paths, turning it into a list.Andrew M. Kuchling2001-02-171-0/+3
| | | | This partially fixes bug #128930.
* Added an execution layer to be able to customize per-extensionMarc-André Lemburg2001-01-261-91/+92
| | | | building.
* Part of patch #102409: special cases for Cygwin:Andrew M. Kuchling2001-01-241-0/+18
| | | | | | | | | Lib/distutils/command/build_ext.py(build_ext.finalize_options): Add Cygwin specific code to append Python's library directory to the extension's list of library directories. (build_ext.get_libraries): Add Cygwin specific code to append Python's (import) library to the extension's list of libraries.
* Check in patch #102971: if library_dirs is a string, split it usingAndrew M. Kuchling2001-01-091-0/+2
| | | | os.pathsep
* Standardized whitespace around function calls.Greg Ward2000-09-301-64/+63
|
* Removed the implib_dir instance variable because it is unused.Thomas Heller2000-09-281-13/+9
| | | | | | | | | | | Removed get_ext_libname() because it is unused. Fixed get_libraries() to append an '_d' to the python debug import library. If MSVC is used, do not add 'pythonxx.lib' to the list of libraries, because this is handled better by a pragma in config.h. This should fix bug #115595, but it needs some more testing.
* Added 'boolean_options' list to support config file parsing.Greg Ward2000-09-251-0/+2
|
* Fixed to respect 'define_macros' and 'undef_macros' on Extension object.Greg Ward2000-09-171-1/+5
|
* Document the directory separatory for include dir and library dir lists.Greg Ward2000-09-161-2/+3
|
* Adjust to the new sysconfig regime: use 'get_config_var()' insteadGreg Ward2000-09-151-3/+4
| | | | of globals from sysconfig.
* Typo fix.Greg Ward2000-09-061-1/+1
|
* In 'check_extensions_list()': when converting old-style 'buildinfo' dict,Greg Ward2000-08-261-1/+3
| | | | don't assign None to any attributes of the Extension object.
* get_export_symbols() changed, adds now module init function if not givenGreg Ward2000-08-131-8/+4
| | | | by the user.
* Patch from Rene Liebscher, tweaked by me:Greg Ward2000-08-011-44/+41
| | | | | | | | | | | - 'export_symbol_file' (and corresponding 'def_file' in the old "build info" dict) are gone; warn if we see 'def_file' in the dict - the MSVC "pre-link hack" is gone -- all that stuff is now handled elsewhere (eg. by using 'export_symbols', etc.) - add 'get_export_symbols()' and 'get_libraries()' methods -- needed because on Windows, both of those things are a tad more complicated than fetching them from the Extension instance
* Fixed a grab-bag of typos spotted by Rob Hooft.Greg Ward2000-07-271-1/+1
|
* Typo fix from David Ascher.Greg Ward2000-07-271-1/+1
|
* Typo fix from Bastian KleineidamAndrew M. Kuchling2000-07-141-1/+1
|
* fix inconsistent use of tabs and spacesJeremy Hylton2000-07-071-5/+5
|
* Don't try to guess the name of a .def file -- if one is supplied, use it,Greg Ward2000-06-291-6/+0
| | | | otherwise just generate an '/export:' option.
* Fixed so 'get_source_files()' calls 'check_extension_list()' -- that way,Greg Ward2000-06-291-1/+1
| | | | | we can run "sdist" on a distribution with old-style extension structures even if we haven't built it yet. Bug spotted by Harry Gebel.
* typos fixed by Rob HooftJeremy Hylton2000-06-281-2/+2
|
* Lyle Johnson: pass in temp directory as 'build_temp' argument when callingGreg Ward2000-06-281-1/+2
| | | | 'link_shared_object()'.
* A-ha! Read Thomas' patch a little more carefully and figured it out:Greg Ward2000-06-271-1/+2
| | | | the 'implib_dir' attribute is back (only on NT, of course).
* Thomas Heller: added --swig-cpp option and fixed silly typos in SWIG support.Greg Ward2000-06-271-9/+21
| | | | | | Also supposedly made some change to where .lib files wind up under MSVC++, but I don't understand how to code is doing what Thomas says it's doing.
* Removed some debugging code that slipped into the last checkin.Greg Ward2000-06-251-4/+3
| | | | Ensure that 'extra_args' (whether compile or link args) is never None.
* Fixed the "pre-link hook" so it actually works, mainly by renaming itGreg Ward2000-06-251-41/+33
| | | | | | to 'msvc_prelink_hack()', adding the parameters that it actually needs, and only calling it for MSVC compiler objects. Generally gave up on the idea of a general "hook" mechanism: deleted the empty 'precompile_hook()'.
* Fixed a few silly bugs in my SWIG support code. (Hey, I said it wasGreg Ward2000-06-251-3/+5
| | | | | experimental and untested.) Call 'customize_compiler()' after getting CCompiler object.
* Changed so all the help-generating functions are defined, at module-level,Greg Ward2000-06-241-3/+7
| | | | | | | in the module of the command classes that have command-specific help options. This lets us keep the principle of lazily importing the ccompiler module, and also gets away from defining non-methods at class level.
* Experimental, completely untested SWIG support.Greg Ward2000-06-241-5/+74
|
* Pulled the MSVC++-specific hackery out to a new method, 'prelink_hook()',Greg Ward2000-06-171-36/+63
| | | | | | and added (empty) 'precompile_hook()' for symmetry. One can envision a much more elaborate hook mechanism, but this looks like it'll do for now.
* Patch from Rene Liebscher: this adds "--help-foo" options to list theGreg Ward2000-06-071-0/+5
| | | | | | | | | | values that "--foo" can take for various commands: eg. what formats for "sdist" and "bdist", what compilers for "build_ext" and "build_clib". I have *not* reviewed this patch; I'm checking it in as-is because it also fixes a paper-bag-over-head bug in bdist.py, and because I won't have time to review it properly for several days: so someone else can test it for me, instead!
* Overhauled to expect 'self.extensions' (taken from 'ext_modules' in theGreg Ward2000-05-311-66/+128
| | | | | | | | | | | | | | setup script) to be a list of Extension instances, rather than a list of of (ext_name, build_info) tuples. This is mostly a simplification, but 'check_extension_list()' got a lot more complicated because of the need to convert the old-style tuples to Extension instances. Temporarily dropped support for defining/undefining macros in the 'extensions' list -- I want to change the interface, but haven't yet made the required changes in CCompiler and friends to support this nicely. Also neatened up the code that merges 'extra_compile_flags' and the CFLAGS environment variable.
* Some far-reaching naming changes:Greg Ward2000-05-271-2/+2
| | | | | | | * Command method 'find_peer()' -> 'get_finalized_command()' * Command method 'run_peer()' -> 'run_command()' Also deleted the 'get_command_option()' method from Command, and fixed the one place where it was used (in "bdist_dumb").
* Rene Liebscher: check if the extension file (.so or .pyd) isGreg Ward2000-05-261-19/+24
| | | | | up-to-date with respect to the source files; that way, we don't needlessly rebuild just because object files go away.
* Normalized all the end-of-class lines.Greg Ward2000-05-251-1/+1
|
* Harry Henry Gebel: get extra compiler flags from the CFLAGS environmentGregory P. Smith2000-05-131-0/+8
| | | | | | | variable. (Is this really needed? Can we drop it when the config file mechanism allows users to set compiler flags in setup.cfg?)
* From Lyle Johnson: renamed 'implib_dir' to 'implib_file', andGregory P. Smith2000-05-131-7/+5
| | | | correctly ensure that it's 'dirname' exists.
* Fix from Lyle Johnson: add the '--compiler' option.Gregory P. Smith2000-05-121-2/+11
| | | | | | Also added creation of 'implib_dir', a temporary directory specific to MSVC++ -- but I checked in two ways of fixing it (Lyle's and mine), because I'm not sure which is right.
* Added comment about the MSVC-specific kludge.Greg Ward2000-05-091-0/+10
|
* Added the ability to sneak extra flags onto the C compiler command lineGreg Ward2000-05-061-1/+3
| | | | via an 'extra_compile_args' option in the 'build_info' dictionary.
* Cleaned up/simplified error-handling:Greg Ward2000-04-151-6/+6
| | | | | | | | | | | | | - DistutilsOptionError is now documented as it's actually used, ie. to indicate bogus option values (usually user options, eg. from the command-line) - added DistutilsSetupError to indicate errors that definitely arise in the setup script - got rid of DistutilsValueError, and changed all usage of it to either DistutilsSetupError or ValueError as appropriate - simplified a bunch of option get/set methods in Command and Distribution classes -- just pass on AttributeError most of the time, rather than turning it into something else
* Use 'get_python_inc()' to figure out the Python include directoriesGreg Ward2000-04-141-8/+5
| | | | rather than cobbling them togethere here.
* Added '--force' option -- very clear what it means for building (ignoreGreg Ward2000-04-101-1/+5
| | | | | timestamps), so every build_* command has 'self.force', which follows the 'build' command if not set by the user.
* Patch (mostly) from Thomas Heller for building on Windows:Greg Ward2000-03-311-11/+36
| | | | | | | | | * build to "Debug" or "Release" temp directory * put linker turds (.lib and .exp files) in the build temp directory * tack on "_d" to extensions built with debugging * added 'get_ext_libname()' help in putting linker turds to temp dir Also, moved the code that simplifies None to empty list for a bunch of options to 'finalize_options()' instead of 'run()'.
* Oops: 'build_extensions()' no longer takes an 'extensions' list.Greg Ward2000-03-301-1/+1
|
* Put the Python "system" include dir last, rather than first.Greg Ward2000-03-291-1/+3
|
* Added 'get_outputs()' in prepartion for the 'bdist' command.Greg Ward2000-03-291-8/+29
| | | | | | | Changed signature of 'build_extensions()': no longer takes the extension list, but uses 'self.extensions' (just like 'get_outputs()' has to) Moved call to 'check_extensions_list()' from 'run()' to 'build_extensions()', again for consistency with 'get_outputs()'.