summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/util.py
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* In subst_vars(), change the name of the argument from str to s toJeremy Hylton2001-01-251-2/+2
| | | | | | | | | prevent binding for str from masking use of builtin str in nested function. (This is the only case I found in the standard library where a local shadows a global or builtin. There may be others, but the regression test doesn't catch them.)
* Patch #103220 from Jason Tishler:Andrew M. Kuchling2001-01-191-0/+5
| | | | | | This patch adds support for Cygwin to util.get_platform(). A Cygwin specific case is needed due to the format of Cygwin's uname command, which contains '/' characters.
* Removed debugging code at bottom.Greg Ward2000-10-141-8/+0
|
* Added a long-winded comment (and commented-out comment to go with out)Greg Ward2000-10-031-1/+17
| | | | | | | | | | about how it would be nice to write absolute paths to the temporary byte-compilation script, but this doesn't work because it screws up the trailing-slash trickery done to 'prefix' in build_py's 'byte_compile()' method. Fixed to use 'execute()' instead of 'os.remove()' to remove the temporary script: now it doesn't blow up in dry-run mode!
* Remove the temporary byte-compilation script when we're done with it.Greg Ward2000-10-021-0/+1
|
* Tweaked 'byte_compile()' so it silently skips non-Python files, rather thanGreg Ward2000-10-011-5/+7
| | | | blowing up.
* Added 'byte_compile(): an all-singing, all-dancing wrapper around theGreg Ward2000-09-301-2/+129
| | | | | | | | | | standard 'py_compile.compile()' function. Laundry list of features: - handles standard Distutils 'force', 'verbose', 'dry_run' flags - handles various levels of optimization: can compile directly in this interpreter process, or write a temporary script that is then executed by a new interpreter with the appropriate flags - can rewrite the source filename by stripping an optional prefix and preprending an optional base dir.
* Various docstring tweaks.Greg Ward2000-09-301-12/+14
| | | | | | Fixed 'subst_vars()' so it actually blows up like the docstring claims (and fixed the docstring not to claim it handles ${var}, which it doesn't).
* Reformat docstrings.Greg Ward2000-09-301-24/+23
|