summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/util.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-10496: distutils check_environ() handles getpwuid() error (GH-10931) ↵Victor Stinner2018-12-181-2/+7
| | | | | | | | | (GH-11213) check_environ() of distutils.utils now catchs KeyError on calling pwd.getpwuid(): don't create the HOME environment variable in this case. (cherry picked from commit 17d0c0595e101c4ce76b58e55de37e6b5083e6cd)
* Avoid “error: None” messages from distutils (#4931).Éric Araujo2014-03-121-19/+4
| | | | Thanks to Amaury Forgeot d’Arc and Philip J. Eby.
* - Issue #17086: Backport the patches from the 3.3 branch to cross-builddoko@python.org2013-01-311-0/+4
| | | | the package.
* Issue #13590: OS X Xcode 4 - improve support for universal extension modulesNed Deily2013-01-311-88/+4
| | | | | | | | | | | | | | | | In particular, fix extension module build failures when trying to use 32-bit-only installer Pythons on systems with Xcode 4 (currently OS X 10.8, 10.7, and optionally 10.6). * Backport 3.3.0 fixes to 2.7 branch (for release in 2.7.4) * Since Xcode 4 removes ppc support, extension module builds now check for ppc compiler support and by default remove ppc and ppc64 archs when they are not available. * Extension module builds now revert to using system installed headers and libs (/usr and /System/Library) if the SDK used to build the interpreter is not installed or has moved. * Try to avoid building extension modules with deprecated and problematic Apple llvm-gcc compiler. If original compiler is not available, use clang instead by default.
* Emergency fix for #13803 bootstrap issue: Under Solaris, distutils doesn't ↵Jesus Cea2012-01-181-2/+6
| | | | include bitness in the directory name
* Closes #13803: Under Solaris, distutils doesn't include bitness in the ↵Jesus Cea2012-01-181-1/+2
| | | | directory name
* Issue #9516: avoid errors in sysconfig when MACOSX_DEPLOYMENT_TARGET is set ↵Ronald Oussoren2011-05-151-3/+1
| | | | | | | | | in shell. Without this patch python will fail to start properly when the environment variable MACOSX_DEPLOYMENT_TARGET is set on MacOSX and has a value that is not compatible with the value during Python's build. This is caused by code in sysconfig that was only meant to be used in disutils.
* Merged revisions 86223-86224,86226,86234 via svnmerge fromÉric Araujo2010-11-061-7/+9
| | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86223 | eric.araujo | 2010-11-06 00:51:56 +0100 (sam., 06 nov. 2010) | 2 lines Always close files in distutils code and tests (#10252). ........ r86224 | eric.araujo | 2010-11-06 00:58:34 +0100 (sam., 06 nov. 2010) | 2 lines Add missing entry for r86223. ........ r86226 | eric.araujo | 2010-11-06 00:59:32 +0100 (sam., 06 nov. 2010) | 2 lines Of course, I forgot one file in r86223. ........ r86234 | eric.araujo | 2010-11-06 03:10:32 +0100 (sam., 06 nov. 2010) | 2 lines Also close file descriptors from os.popen and subprocess.Popen ........
* Fix for issue #9164: with this patch sysconfig and distuls don't breakRonald Oussoren2010-07-111-2/+1
| | | | | when duplicate '-arch foo' flags end up in CFLAGS (which may happen when building a universal build using macports)
* In a number of places code still reversRonald Oussoren2010-05-051-9/+0
| | | | | | | | | to "sys.platform == 'mac'" and that is dead code because it refers to a platform that is no longer supported (and hasn't been supported for several releases). Fixes issue #7908 for the trunk.
* #7092: Fix some -3 warnings, and fix Lib/platform.py when the path contains ↵Florent Xicluna2010-04-011-1/+1
| | | | a double-quote.
* Fix some py3k warnings in the standard library.Florent Xicluna2010-03-071-1/+1
|
* reverting partially distutils to its 2.6.x state so 2.7a4 looks more like ↵Tarek Ziadé2010-03-051-128/+227
| | | | the 2.7b1 in this. the whole revert will occur after a4 is tagged
* added local get_platform/set_platform APIs in distutils.sysconfigTarek Ziadé2010-01-261-3/+20
|
* reintroduced the names in Distutils for APIs that were relocatedTarek Ziadé2010-01-261-0/+4
|
* taking sysconfig out of distutilsTarek Ziadé2010-01-231-168/+2
|
* On OSX the output of "uname -m" always reflects the 32-bit architectureRonald Oussoren2009-12-241-0/+10
| | | | | | | | | for the machine ("i386" or "ppc"), even if the executable is 64-bit. This patchs ensures that the distutils platform architecture represents the architecture for the executable when running a 64-bit only executable on OSX.
* Fixed #1923: make sure we don't strip meaningful whitespace in PKG-INFO ↵Tarek Ziadé2009-12-061-2/+2
| | | | Description field
* fixed warning and error messageTarek Ziadé2009-10-241-1/+1
|
* Issue #7071: byte-compilation in Distutils now looks at sys.dont_write_bytecodeTarek Ziadé2009-10-241-0/+5
|
* Finish support for --with-universal-archs=intelRonald Oussoren2009-09-151-5/+20
| | | | and --with-universal-archs=3-way (issue6245)
* #6466 refactored distutils duplicate get_versions() functions (used to get ↵Tarek Ziadé2009-07-161-1/+53
| | | | gcc/ld/dllwrap versions)
* pep8-fied and cleaned up distutils.utilTarek Ziadé2009-07-021-75/+67
|
* Update the fix for issue4064 to deal correctly with all three variants ofRonald Oussoren2008-12-281-2/+6
| | | | universal builds that are presented by the configure script.
* Issue4064: architecture string for universal builds on OSXRonald Oussoren2008-12-281-4/+10
|
* MacOS X: Enable 4-way universal buildsRonald Oussoren2008-06-051-2/+9
| | | | | | | | | | | | | | | | | | This patch adds a new configure argument on OSX: --with-universal-archs=[32-bit|64-bit|all] When used with the --enable-universalsdk option this controls which CPU architectures are includes in the framework. The default is 32-bit, meaning i386 and ppc. The most useful alternative is 'all', which includes all 4 CPU architectures supported by MacOS X (i386, ppc, x86_64 and ppc64). This includes limited support for the Carbon bindings in 64-bit mode as well, limited because (a) I haven't done extensive testing and (b) a large portion of the Carbon API's aren't available in 64-bit mode anyway. I've also duplicated a feature of Apple's build of python: setting the environment variable 'ARCHFLAGS' controls the '-arch' flags used for building extensions using distutils.
* Issue #2513: enable 64bit cross compilation on windows.Mark Hammond2008-04-071-2/+2
|
* Removed uses of dict.has_key() from distutils, and uses ofGuido van Rossum2008-02-211-3/+3
| | | | | | callable() from copy_reg.py, so the interpreter now starts up without warnings when '-3' is given. More work like this needs to be done in the rest of the stdlib.
* [ 1761786 ] distutils.util.get_platform() return value on 64bit WindowsMark Hammond2007-08-211-1/+20
| | | | | | As discussed on distutils-sig: Allows the generated installer name on 64bit Windows platforms to be different than the name generated for 32bit Windows platforms.
* Whitespace normalization.Tim Peters2006-05-231-4/+4
|
* Patch #1488098.Ronald Oussoren2006-05-231-0/+48
| | | | | | This patchs makes it possible to create a universal build on OSX 10.4 and use the result to build extensions on 10.3. It also makes it possible to override the '-arch' and '-isysroot' compiler arguments for specific extensions.
* Bug #1478326: don't allow '/' in distutils.util.get_platform machine namesGeorg Brandl2006-04-281-0/+1
| | | | since this value is used to name the build directory.
* Whitespace normalization, via reindent.py.Tim Peters2004-07-181-1/+1
|
* Defer compilation of regular expressions until first use.Martin v. Löwis2004-03-251-3/+7
|
* Replace backticks with repr() or "%r"Walter Dörwald2004-02-121-8/+8
| | | | From SF patch #852334.
* Translate spaces in the machine name to underscoresAndrew M. Kuchling2003-01-061-2/+3
| | | | (Power Macintosh -> Power_Macintosh)
* Adding Python <= 2.2 support back in.Marc-André Lemburg2002-12-031-3/+10
|
* 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
* SF bug #574235, convert_path fails with empty pathnameNeal Norwitz2002-08-131-2/+4
|
* Massive changes from SF 589982 (tempfile.py rewrite, by ZackGuido van Rossum2002-08-091-3/+3
| | | | | Weinberg). This changes all uses of deprecated tempfile functions to the recommended ones.
* Make setup.py less chatty by default.Jeremy Hylton2002-06-041-27/+18
| | | | | | | | | | | | | | | 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.
* Prevent convert_path from crashing if the path is an empty string. Bugfix ↵Andrew M. Kuchling2002-05-061-2/+2
| | | | candidate.
* OS/2 patches by Andrew I MacIntyre for distutils.Marc-André Lemburg2002-01-311-0/+6
| | | | Closes patch #435381.
* Whitespace normalization.Fred Drake2001-12-061-9/+7
|
* Patch #429442 from Jason Tishler: Corrects sys.platform andAndrew M. Kuchling2001-07-201-0/+1
| | | | | distutils.util.get_platform() problems caused by the cruft contained in Cygwin's uname -s.
* Change rfc822_escape() to ensure there's a consistent amount of whitespaceAndrew M. Kuchling2001-03-231-3/+4
| | | | | after each newline, instead of just blindly inserting a space at the start of each line. (Improvement suggested by Thomas Wouters)
* Patch #407434: add rfc822_escape utility functionAndrew M. Kuchling2001-03-221-0/+10
|
* Bug #229280: remove '/' characters from the OS name (for BSD/OS :) )Andrew M. Kuchling2001-02-271-1/+6
|
* Patch #404275: generate a reasonable platform string for AIXAndrew M. Kuchling2001-02-271-0/+2
|
* Remove single "." components from pathnames, and return os.curdir ifJack Jansen2001-01-281-0/+4
| | | | the resulting path is empty.