summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/spawn.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-43568: Drop support for MACOSX_DEPLOYMENT_TARGET < 10.3 (GH-25827)Ned Deily2021-05-031-5/+9
| | | | | | | | | | Only complain if the config target is >= 10.3 and the current target is < 10.3. The check was originally added to ensure that incompatible LDSHARED flags are not used, because -undefined dynamic_lookup is used when building for 10.3 and later, and is not supported on older OS versions. Apart from that, there should be no problem in general with using an older target. Authored-by: Joshua Root <jmr@macports.org>
* bpo-42504: Ensure that get_config_var('MACOSX_DEPLOYMENT_TARGET') is a ↵Ronald Oussoren2021-02-011-2/+2
| | | | | string (GH-24341) * bpo-42504: Ensure that get_config_var('MACOSX_DEPLOYMENT_TARGET') is a string
* bpo-42504: fix for MACOSX_DEPLOYMENT_TARGET=11 (GH-23556)FX Coudert2020-12-031-2/+2
| | | | macOS releases numbering has changed as of macOS 11 Big Sur. Previously, major releases were of the form 10.x, 10.x+1, 10.x+2, etc; as of Big Sur, they are now x, x+1, etc, so, for example, 10.15, 10.15.1, ..., 10.15.7, 11, 11.0.1, 11.1, ..., 12, 12.1, etc. Allow Python to build with single-digit deployment target values. Patch provided by FX Coudert.
* bpo-41207 In distutils.spawn, rewrite FileNotFound (GH-21359)Jason R. Coombs2020-07-071-3/+9
| | | Automerge-Triggered-By: @jaraco
* bpo-39763: distutils.spawn now uses subprocess (GH-18743)Victor Stinner2020-03-041-106/+22
| | | | | | | | Reimplement distutils.spawn.spawn() function with the subprocess module. setup.py now uses a basic implementation of the subprocess module if the subprocess module is not available: before required C extension modules are built.
* bpo-35920: Windows 10 ARM32 platform support (GH-11774)Paul Monson2019-04-251-1/+1
|
* bpo-35755: Don't say "to mimick Unix which command behavior" (GH-12861)Victor Stinner2019-04-171-1/+1
|
* bpo-35755: shutil.which() uses os.confstr("CS_PATH") (GH-12858)Victor Stinner2019-04-171-14/+25
| | | | | | | | | | | | | | | | shutil.which() and distutils.spawn.find_executable() now use os.confstr("CS_PATH") if available instead of os.defpath, if the PATH environment variable is not set. Don't use os.confstr("CS_PATH") nor os.defpath if the PATH environment variable is set to an empty string to mimick Unix 'which' command behavior. Changes: * find_executable() now starts by checking for the executable in the current working directly case. Add an explicit "if not path: return None". * Add tests for PATH='' (empty string), PATH=':' and for PATHEXT.
* bpo-34530: Fix distutils find_executable() (GH-9049)Victor Stinner2018-09-041-1/+1
| | | | distutils.spawn.find_executable() now falls back on os.defpath if the PATH environment variable is not set.
* Issue #23285: PEP 475 -- Retry system calls failing with EINTR.Charles-François Natali2015-02-071-3/+0
|
* Issue #20978: Remove last part of OS/2 support in distutilsVictor Stinner2014-03-201-2/+0
|
* Merge 3.3 (#11599)Éric Araujo2014-03-131-15/+40
|\
| * Make distutils error messages more helpful (#11599).Éric Araujo2014-03-131-18/+45
| | | | | | | | | | | | | | | | | | | | When running external programs such as a C compiler and getting an error code, distutils only prints the program name. With this change, one can get the full command line by setting the DISTUTILS_DEBUG environment variable. This should have no compatibility issues, unless there are tools that depend on the exact format of distutils debug messages.
* | Closes #16135: Removal of OS/2 support (distutils)Jesus Cea2012-10-101-23/+1
|/
* Fix closes Issue11439 Remove the SVN keywords from the code as it is no ↵Senthil Kumaran2011-07-281-2/+0
| | | | longer applicable in hg. Patch Contributed by Neil Muller.
* Issue #9516: Change distutils to no longer globally attempt to check andNed Deily2011-06-291-1/+28
| | | | | | | | | | | | | | | | | | | | set the MACOSX_DEPLOYMENT_TARGET env variable for the interpreter process on OS X. This could cause failures in non-distutils subprocesses and was unreliable since tests or user programs could modify the interpreter environment after distutils set it. Instead, have distutils set the the deployment target only in the environment of each build subprocess. Continue to use the previous algorithm for deriving the deployment target value: if MACOSX_DEPLOYMENT_TARGET is not set in the interpreter's env: use the interpreter build configure MACOSX_DEPLOYMENT_TARGET elif the MACOSX_DEPLOYMENT_TARGET env value >= configure value: use the env MACOSX_DEPLOYMENT_TARGET else: # env value less than interpreter build configure value raise exception This allows building extensions that can only run on newer versions of the OS than the version python was built for, for example with a python built for 10.3 or later and an extension that needs to be built for 10.5.
* Merged revisions 73147 via svnmerge fromTarek Ziadé2009-06-021-23/+24
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r73147 | tarek.ziade | 2009-06-02 17:58:43 +0200 (Tue, 02 Jun 2009) | 1 line improved distutils.spawn test coverage + cleaned it up ........
* Fix more exception slicing.Georg Brandl2008-01-061-3/+3
|
* General cleanup, raise normalization in Lib/distutils.Collin Winter2007-08-301-64/+31
|
* Remove functions in string module that are also string methods. Also remove:Neal Norwitz2007-04-171-6/+6
| | | | | * all calls to functions in the string module (except maketrans) * everything from stropmodule except for maketrans() which is still used
* Fix most trivially-findable print statements.Guido van Rossum2007-02-091-1/+1
| | | | | | | | | There's one major and one minor category still unfixed: doctests are the major category (and I hope to be able to augment the refactoring tool to refactor bona fide doctests soon); other code generating print statements in strings is the minor category. (Oh, and I don't know if the compiler package works.)
* SF patch 1631942 by Collin Winter:Guido van Rossum2007-01-101-4/+4
| | | | | | (a) "except E, V" -> "except E as V" (b) V is now limited to a simple name (local variable) (c) V is now deleted at the end of the except block
* Update compatibility comments to 2.1, corresponding to PEP 291 1.13.Martin v. Löwis2004-11-101-1/+1
|
* Whitespace normalization, via reindent.py.Tim Peters2004-07-181-1/+1
|
* Make _spawn_posix be ready for EINTR. waitpid(2) can be interruptedHye-Shik Chang2004-02-241-1/+8
| | | | | by SIGCHLD or sth because no signal is masked before. This fixes an optimized installation problem on FreeBSD libpthread.
* Reflow commentAndrew M. Kuchling2002-11-211-3/+3
|
* Add comment to Distutil files about requiring 1.5.2 compatibility, asAndrew M. Kuchling2002-11-191-0/+2
| | | | suggested by PEP 291.
* 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
* Make setup.py less chatty by default.Jeremy Hylton2002-06-041-12/+8
| | | | | | | | | | | | | | | 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.
* OS/2 patches by Andrew I MacIntyre for distutils.Marc-André Lemburg2002-01-311-1/+30
| | | | Closes patch #435381.
* Whitespace normalization.Fred Drake2001-12-061-6/+6
|
* Reformat docstrings.Greg Ward2000-09-261-38/+41
| | | | Standardize whitespace in function calls.
* Rene Liebscher: factor 'find_executable()' out of '_spawn_nt()'.Greg Ward2000-08-021-13/+30
|
* Duh, it helps if '_nt_quote_args()' actually returns the mutated list,Greg Ward2000-03-261-1/+1
| | | | rather than None.
* Fixed '_nt_quote_args()': backwards logic reversed, and now it actuallyGreg Ward2000-03-231-2/+2
| | | | returns a value.
* Added '_nt_quote_args()' to deal with whitespace in command-line argumentsGreg Ward2000-03-071-5/+22
| | | | in a rather half-assed, but probably effective, way.
* Changed '__rcsid__' to '__revision__'.Greg Ward2000-03-021-1/+1
|
* Catch OSError from 'spawnv()' in '_spawn_nt()'.Greg Ward2000-01-171-5/+12
| | | | Tweaked error messages in '_spawn_posix()'.
* [from 1999/08/28]Greg Ward1999-09-081-2/+2
| | | | | Apparently os.name is "nt" or "posix" or we don't care. Cosmetic tweaks.
* Patch from Perry Stoll: support for Windows.Greg Ward1999-08-291-10/+29
|
* Module to spawn sub-commands in a platform-independent way.Greg Ward1999-08-141-0/+106
Initial revision only includes support for POSIX-style fork-and-exec.