summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/util.py
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* In 'get_platform()', handle so-called POSIX systems that don't haveGreg Ward2000-09-301-1/+1
| | | | 'uname()' -- specifically NeXTSTEP.
* Standardize whitespace in function calls.Greg Ward2000-09-261-12/+12
|
* Added 'strtobool()' function: convert strings like "yes", "1",Greg Ward2000-09-251-0/+15
| | | | "no", "0", etc. to true/false.
* Fix 'convert_path()' so it returns immediately under Unix -- prevents blowingGreg Ward2000-09-221-5/+5
| | | | | up when the pathname starts with '/', which is needed when converting installation directories in the "install" command.
* Corran Webster: fix 'change_root()' to handle Mac OS paths.Greg Ward2000-09-211-1/+7
|
* Revamped 'get_platform()' to try and do something reasonably smart onGreg Ward2000-09-151-4/+42
| | | | POSIX platforms, ie. get a little more detail than 'sys.platform' gives.
* Fix so 'split_quoted()' handles any whitespace delimiter (not just space).Greg Ward2000-08-081-2/+2
|
* Drop the 'extend()' function -- old 1.5.1 compatibility hack thatGreg Ward2000-08-051-20/+0
| | | | | wasn't actually used anywhere. Drop the "from xxx_util import*" backwards compability hacks.
* Added the 'execute()' function (moved here from cmd.py with minor tweakage).Greg Ward2000-08-021-0/+26
|
* Ditched 'abspath()' -- don't need 1.5.1 compatability hacks anymore.Greg Ward2000-08-021-10/+0
|
* Fixed a grab-bag of typos spotted by Rob Hooft.Greg Ward2000-07-271-2/+2
|
* typos fixed by Rob HooftJeremy Hylton2000-06-281-1/+1
|
* Added 'split_quoted()' function to deal with strings that are quoted inGreg Ward2000-06-241-0/+67
| | | | | Unix shell-like syntax (eg. in Python's Makefile, for one thing -- now that I have this function, I'll probably allow quoted strings in config files too.