summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/extension.py
Commit message (Collapse)AuthorAgeFilesLines
* Patch 1046644 - improved distutils support for SWIG.Anthony Baxter2004-10-141-0/+5
|
* Remove the recently-added get_distutil_options(), and justAndrew M. Kuchling2003-01-271-0/+2
| | | | have two tuples listing the legal keywords for setup() and Extension()
* [Part of patch #641685] Add .dylib as an extension for shared librariesAndrew M. Kuchling2002-11-271-1/+1
|
* Add missing importAndrew M. Kuchling2002-11-201-1/+1
|
* 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
* Allow unknown keyword arguments to the Extension class, and warn about them.Andrew M. Kuchling2002-11-131-1/+14
|
* This patch fixes the following bugs:Gustavo Niemeyer2002-11-051-0/+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().
* Add a new definition to Extension objects: depends.Jeremy Hylton2002-06-121-0/+4
| | | | | depends is a list of files that the target depends, but aren't direct sources of the target. think .h files.
* [Patch #536769] Add -Xcompiler flag for adding arguments and switches forAndrew M. Kuchling2002-03-291-0/+2
| | | | the compiler
* Suggested by Pete Shinners: treat .m and .mm files as source code.Andrew M. Kuchling2001-12-211-1/+1
| | | | | | Question for Jack Jansen: is this reasonable? Candidate for 2.2 release branch (if Jack thinks it's OK).
* Whitespace normalization.Fred Drake2001-12-061-2/+2
|
* Back out conversion to string methods; the Distutils is intended to workAndrew M. Kuchling2001-03-221-2/+2
| | | | with 1.5.2
* String method conversion.Eric S. Raymond2001-02-091-2/+2
|
* Added 'read_setup_file()' to read old-style Setup files. Could make lifeGreg Ward2000-09-171-2/+110
| | | | | | easier for people porting Makefile.pre.in-based extensions to Distutils. Also loosened argument-checking in Extension constructor to make life easier for 'read_setup_file()'.
* Rene Liebscher: ext.export_symbols is now always a list (added 'or []').Greg Ward2000-08-131-1/+1
|
* Typo fix in docstring.Greg Ward2000-08-131-2/+1
|
* Removed 'export_symbol_file'.Greg Ward2000-08-021-8/+1
| | | | | 'export_symbols' can be None (not sure this is a good idea: it's inconsistent with every other instance attribute of Extension).
* Revised docstring so 'sources' isn't necessarily all C/C++ files (toGreg Ward2000-06-241-3/+5
| | | | accomodate SWIG interface files, resource files, etc.).
* Provides the Extension class, a nicer way to describe C/C++ extensions thanGreg Ward2000-05-311-0/+115
the old (ext_name, build_info) tuple.