summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/extension.py
Commit message (Collapse)AuthorAgeFilesLines
* Always close files in distutils code and tests (#10252).Éric Araujo2010-11-051-76/+79
|
* reverted distutils its 3.1 state. All new work is now happening in ↵Tarek Ziadé2010-07-221-9/+4
| | | | disutils2, and distutils is now feature-frozen.
* Merged revisions 77704,77752 via svnmerge fromTarek Ziadé2010-01-291-3/+9
| | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r77704 | tarek.ziade | 2010-01-23 10:23:15 +0100 (Sat, 23 Jan 2010) | 1 line taking sysconfig out of distutils ........ r77752 | tarek.ziade | 2010-01-26 00:19:56 +0100 (Tue, 26 Jan 2010) | 1 line switched the call order so this call works without suffering from issue #7774 ........
* Merged revisions 76956 via svnmerge fromTarek Ziadé2009-12-211-1/+0
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r76956 | tarek.ziade | 2009-12-21 02:22:46 +0100 (Mon, 21 Dec 2009) | 1 line massive import cleaning in Distutils ........
* Merged revisions 74163 via svnmerge fromTarek Ziadé2009-07-221-4/+5
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r74163 | tarek.ziade | 2009-07-22 10:55:19 +0200 (Wed, 22 Jul 2009) | 1 line Issue #6545: Removed assert statements in distutils.Extension, so the behavior is similar when used with -O ........
* Merged revisions 73170 via svnmerge fromTarek Ziadé2009-06-031-14/+8
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r73170 | tarek.ziade | 2009-06-03 13:12:08 +0200 (Wed, 03 Jun 2009) | 1 line more cleanup and test coverage for distutils.extension ........
* Merged revisions 73166 via svnmerge fromTarek Ziadé2009-06-031-13/+4
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r73166 | tarek.ziade | 2009-06-03 12:26:26 +0200 (Wed, 03 Jun 2009) | 1 line added some tests for distutils.extension + code cleanup ........
* Merged revisions 70910 via svnmerge fromTarek Ziadé2009-03-311-0/+5
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70910 | tarek.ziade | 2009-03-31 17:27:23 -0500 (Tue, 31 Mar 2009) | 1 line #5583 Added optional Extensions in Distutils ........
* Patch# 1258 by Christian Heimes: kill basestring.Guido van Rossum2007-10-161-2/+2
| | | | I like this because it makes the code shorter! :-)
* General cleanup, raise normalization in Lib/distutils.Collin Winter2007-08-301-8/+4
|
* Merged revisions 55795-55816 via svnmerge fromGuido van Rossum2007-06-071-2/+1
| | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/p3yk ........ r55797 | neal.norwitz | 2007-06-07 00:00:57 -0700 (Thu, 07 Jun 2007) | 3 lines Get rid of some remnants of classic classes. types.ClassType == type. Also get rid of almost all uses of the types module and use the builtin name. ........ r55798 | neal.norwitz | 2007-06-07 00:12:36 -0700 (Thu, 07 Jun 2007) | 1 line Remove a use of types, verify commit hook works ........ r55809 | guido.van.rossum | 2007-06-07 11:11:29 -0700 (Thu, 07 Jun 2007) | 2 lines Fix syntax error introduced by Neal in last checkin. ........
* Checkpoint. Manipulated things so that string literals are alwaysGuido van Rossum2007-04-271-2/+2
| | | | | | | | unicode, and a few other compensating changes, e.g. str <- unicode, chr <- unichr, and repr() of a unicode string no longer starts with 'u'. Lots of unit tests are broken, but some basic things work, in particular distutils works so the extensions can be built, and test_builtin.py works.
* Remove functions in string module that are also string methods. Also remove:Neal Norwitz2007-04-171-3/+3
| | | | | * all calls to functions in the string module (except maketrans) * everything from stropmodule except for maketrans() which is still used
* 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.