summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/command/build_ext.py
Commit message (Collapse)AuthorAgeFilesLines
* Update compatibility comments to 2.1, corresponding to PEP 291 1.13.Martin v. Löwis2004-11-101-1/+1
|
* Patch 1046644 - improved distutils support for SWIG.Anthony Baxter2004-10-141-4/+23
|
* Whitespace normalization, via reindent.py.Tim Peters2004-07-181-2/+2
|
* Reverting local change checked in by mistake.Tim Peters2004-05-111-4/+3
|
* Added 2.3.3 and 2.3.4 to the release table. Added 2004 to the list ofTim Peters2004-05-111-3/+4
| | | | copyright years.
* Revert another local change that snuck into a whitespace normalizationTim Peters2004-01-181-2/+1
| | | | patch.
* Whitespace normalization.Tim Peters2004-01-181-1/+2
|
* Add comment to Distutil files about requiring 1.5.2 compatibility, asAndrew M. Kuchling2002-11-191-0/+2
| | | | suggested by PEP 291.
* Remove 'created by' lines; people can use CVS for this, and the information ↵Andrew M. Kuchling2002-11-141-2/+0
| | | | is often out of date
* [Bug #550364] Use sysconfig.get_python_version()Andrew M. Kuchling2002-11-141-2/+2
|
* This patch fixes the following bugs:Gustavo Niemeyer2002-11-051-1/+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] Remove check of environment variables; sysconfig.py will do ↵Andrew M. Kuchling2002-11-041-9/+0
| | | | that now
* Fixes SF bug#614051: win32 build_ext problem.Thomas Heller2002-10-311-0/+2
|
* Only import msvccompiler on win32 platforms.Jeremy Hylton2002-06-181-11/+11
|
* Extend dependency tracking so that .o files are rebuilt.Jeremy Hylton2002-06-131-4/+2
| | | | | | | | | | Two new tests are needed: Don't skip building an extension if any of the depends files are newer than the target. Pass ext.depends to compiler.compile() so that it can track individual files.
* Add a new definition to Extension objects: depends.Jeremy Hylton2002-06-121-1/+2
| | | | | depends is a list of files that the target depends, but aren't direct sources of the target. think .h files.
* Patch #488073: AtheOS port.Martin v. Löwis2002-06-111-2/+18
|
* Make setup.py less chatty by default.Jeremy Hylton2002-06-041-9/+9
| | | | | | | | | | | | | | | This is a conservative version of SF patch 504889. It uses the log module instead of calling print in various places, and it ignores the verbose argument passed to many functions and set as an attribute on some objects. Instead, it uses the verbosity set on the logger via the command line. The log module is now preferred over announce() and warn() methods that exist only for backwards compatibility. XXX This checkin changes a lot of modules that have no test suite and aren't exercised by the Python build process. It will need substantial testing.
* Append the PC specific include 'PC' and library 'PCBuild' directoriesThomas Heller2002-04-251-1/+8
| | | | | | | under NT - this allows distutils to work with the CVS version or the source distribution. Wrap a long line.
* OS/2 patches by Andrew I MacIntyre for distutils.Marc-André Lemburg2002-01-311-1/+26
| | | | Closes patch #435381.
* SWIGing a source file <name>.i silently overwrites <name>.c if it isThomas Heller2002-01-181-2/+2
| | | | | | | | | | | | | | present - at least the swigged file should be named <name>_wrap.c as this is also SWIG's default. (Even better would be to generate the wrapped sources in a different location, but I'll leave this for later). Newer versions of SWIG don't accept the -dnone flag any more. Since virtually nobody uses SWIG with distutils, this should do no harm. Suggested be Martin Bless on c.l.p.
* Visious hackery to solve a build-control problem related to our use ofFred Drake2001-12-061-0/+11
| | | | | | | distutils for the library modules built as shared objects. A better solution appears possible, but with the threat that the distutils becomes more magical ("complex"). This closes SF bug #458343.
* Whitespace normalization.Fred Drake2001-12-061-10/+10
|
* 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.