summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
Commit message (Collapse)AuthorAgeFilesLines
* Adding Python <= 2.2 support back in.Marc-André Lemburg2002-12-031-3/+10
|
* Fix mode on scripts to have the read bit set (noted by Nicholas Riley)Andrew M. Kuchling2002-11-291-1/+1
|
* [Part of patch #641685] Add .dylib as an extension for shared librariesAndrew M. Kuchling2002-11-271-1/+1
|
* Use "is" to test type objects, not "==".Fred Drake2002-11-261-1/+1
|
* Fix for bug #410541: bdist builds bogus .zipsAndrew M. Kuchling2002-11-261-6/+25
| | | | | | This adds a --relative option to the bdist_dumb command that defaults to false; if true, the .tar.gz or .zip will be assembled using relative paths.
* Part of the fix for bug #410541: add ensure_relative() functionAndrew M. Kuchling2002-11-261-1/+15
|
* (This is hopefully the last large, funny checkin message forThomas Heller2002-11-222-400/+4
| | | | | | | | | | bdist_wininst.py we will see.) Removed the base64 encoded binary contents, wininst.exe must be in the same directory as this file now. wininst.exe must be recompiled and commited each time the sources in PC/bdist_wininst are changed.
* get_python_version was not imported.Thomas Heller2002-11-221-0/+1
|
* Reflow commentAndrew M. Kuchling2002-11-211-3/+3
|
* Patch #642019: Recognize gcc-x.y as gcc.Martin v. Löwis2002-11-211-1/+1
|
* Bug #639118 from Ollie Oldham: archiver should use zipfile before zipAndrew M. Kuchling2002-11-211-28/+30
| | | | | | | | | | | Previously archive_util.py attempted to spawn an external 'zip' program for the zip action, if this fails, an attempt to import zipfile.py is made... This bites folks who have 'old' or non-conforming zip programs on windows platforms. This change tries the 'zipfile' module first, falling back to spawning a zip process if the module isn't available.
* Add missing importAndrew M. Kuchling2002-11-201-1/+1
|
* Add comment to Distutil files about requiring 1.5.2 compatibility, asAndrew M. Kuchling2002-11-1937-1/+78
| | | | suggested by PEP 291.
* Remove 'created by' lines; people can use CVS for this, and the information ↵Andrew M. Kuchling2002-11-1434-72/+1
| | | | is often out of date
* Fix docstring typo; remove 'created' lineAndrew M. Kuchling2002-11-141-3/+1
|
* [Bug #550364] Use sysconfig.get_python_version()Andrew M. Kuchling2002-11-142-3/+3
|
* [Bug #550364] Add get_python_version()Andrew M. Kuchling2002-11-141-1/+9
|
* [Bug #599248] ext module generation problemAndrew M. Kuchling2002-11-141-2/+2
| | | | | | | | | | If you have source files srcdir1/foo.c and srcdir2/foo.c, the temporary .o for both files is written to build/temp.<platform>/foo.o. This patch sets strip_dir to false for both calls to object_filename, so now the object files are written to temp.<platform>/srcdir1/foo.o and .../srcdir2/foo.o. 2.2 bugfix candidate
* Allow unknown keyword arguments to the Extension class, and warn about them.Andrew M. Kuchling2002-11-131-1/+14
|
* 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.
* Update fileAndrew M. Kuchling2002-11-131-10/+14
|
* [Bug #233259] Ugly traceback for DistutilsPlatformErrorAndrew M. Kuchling2002-11-081-3/+1
| | | | | | Fixed by catching all exceptions that are subclasses of DistutilsError, so only the error message will be printed. You can still get the whole traceback by enabling the Distutils debugging mode.
* Fix comment typoAndrew M. Kuchling2002-11-081-1/+1
|
* Use dynamic linking for the SHGetSpecialFolderPath function, it is notThomas Heller2002-11-071-331/+331
| | | | | | | always available on Windows NT. When the function cannot be loaded, get_special_folder_path raises OSError, "function not available". Compiled the exe, and rebuilt bdist_wininst.py.
* Fix a small bug when sys.argv[0] has an absolute path.Thomas Heller2002-11-071-1/+1
| | | | See http://mail.python.org/pipermail/distutils-sig/2002-November/003039.html
* Fixed bug "[#466200] ability to specify a 'verify' script".Gustavo Niemeyer2002-11-061-0/+3
| | | | | | | | | | | * Lib/distutils/command/bdist_rpm.py (bdist_rpm.initialize_options): Included verify_script attribute. (bdist_rpm.finalize_package_data): Ensure that verify_script is a filename. (bdist_rpm._make_spec_file): Included verify_script in script_options tuple. * Misc/NEWS Mention change.
* Repair inconsistent use of tabs and spaces.Jeremy Hylton2002-11-051-1/+1
|
* 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-0511-35/+96
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [#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().
* Must now give the basename - not including directories - of theThomas Heller2002-11-051-346/+358
| | | | | | install-script on the command line. Recreated after recompilation of wininst.exe.
* [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.
* [Patch #588809] Remove check of environment variables; sysconfig.py will do ↵Andrew M. Kuchling2002-11-041-9/+0
| | | | that now
* [Bug #620630] Flush stdout after logging every message. Without it,Andrew M. Kuchling2002-11-041-0/+3
| | | | | when output is redirected to a file, compiler error messages show up before Distutils prints the command being invoked.
* Add get_distutil_options(); future setup.py files can use this to checkAndrew M. Kuchling2002-11-041-0/+9
| | | | | | | | whether the Distutils being used supports a particularly capability. (This idea was originally suggested by Juergen Hermann as a method on the Distribution class. I think it makes more sense as a function in core.py, and that's what this patch implements.)
* [Bug #570655] Fix misleading option textAndrew M. Kuchling2002-11-041-1/+1
|
* Fixes SF bug#614051: win32 build_ext problem.Thomas Heller2002-10-311-0/+2
|
* Catch only ImportErrorAndrew M. Kuchling2002-10-311-1/+1
|
* Make the Distribution() constructor forgiving of unknown keywordAndrew M. Kuchling2002-10-311-2/+11
| | | | | | | | | | arguments, triggering a warning instead of raising an exception. (In 1.5.2/2.0, it will print to stderr.) Bugfix candidate for all previous versions. This changes behaviour, but the old behaviour wasn't very useful. If Distutils version X+1 adds a new keyword argument, using the new keyword means your setup.py file won't work with Distutils version X any more.
* Recreated after source changes.Thomas Heller2002-10-161-319/+319
|
* Recreated after source changes.Thomas Heller2002-10-151-315/+315
|
* Revert the previous checkin - it didn't work anyway.Thomas Heller2002-10-151-4/+3
|
* MacOSX linker doesn't understand -R flag at all, no matter how you feed itSkip Montanaro2002-10-091-1/+4
| | | | | the flag. Punt and return a -L flag instead (returning "" gums up the command to be forked).
* Patch #619493: Prefer rpmbuild over rpm if available. Backported to 2.2.Martin v. Löwis2002-10-071-0/+3
|
* Pulling Mark Alexander's contribution from CVS.Marc-André Lemburg2002-10-045-948/+14
|
* save the verbose argument as an instance attributes. Subclasses ofSkip Montanaro2002-10-011-0/+1
| | | | | CCompiler may rely on the presence of self.verbose (SciPy's distutils appears to).
* Commit fix for SF 603831.Guido van Rossum2002-10-011-1/+2
| | | | | | | | | | | | Strangely, two out of three patches there seem already committed; but the essential one (get rid of the assert in object_filenames in ccompiler.py) was not yet applied. This makes the build procedure for Twisted work again. This is *not* a backport candidate despite the fact that identical code appears to exist in 2.2.2; Twisted builds fine there, so there must have been a change elsewhere.
* Whitespace normalization (get rid of tabs).Guido van Rossum2002-09-291-29/+28
|
* Use distutils.debug.DEBUG instead of distutils.core.DEBUG.Jeremy Hylton2002-09-117-11/+9
| | | | | Note that distutils.core.DEBUG still works if client code uses it, but the core code avoids circular references by using distutils.debug.
* Define DEBUG in a separate module to resolve circular references.Jeremy Hylton2002-09-111-0/+6
|
* The .preprocess() method didn't work, because it didn't add the input fileAndrew M. Kuchling2002-09-091-0/+1
| | | | to the command-line arguments. Fix this by adding the source filename.