summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/sysconfig.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-30273: update distutils.sysconfig for venv's created from Python (#1515) ↵Victor Stinner2017-05-171-5/+2
| | | | | | (#1625) compiled out-of-tree (builddir != srcdir). (see also bpo-15366) (cherry picked from commit dbdea629e2e0e4bd8845aa55041e0a0ca4172cf3)
* [3.6] bpo-23404: make touch becomes make regen-all (#1405) (#1461)Victor Stinner2017-05-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bpo-23404: make touch becomes make regen-all (#1405) Don't rebuild generated files based on file modification time anymore, the action is now explicit. Replace "make touch" with "make regen-all". Changes: * Remove "make touch", Tools/hg/hgtouch.py and .hgtouch * Add a new "make regen-all" command to rebuild all generated files * Add subcommands to only generate specific files: - regen-ast: Include/Python-ast.h and Python/Python-ast.c - regen-grammar: Include/graminit.h and Python/graminit.c - regen-importlib: Python/importlib_external.h and Python/importlib.h - regen-opcode: Include/opcode.h - regen-opcode-targets: Python/opcode_targets.h - regen-typeslots: Objects/typeslots.inc * Rename PYTHON_FOR_GEN to PYTHON_FOR_REGEN * pgen is now only built by by "make regen-grammar" * Add $(srcdir)/ prefix to paths to source files to handle correctly compilation outside the source directory Note: $(PYTHON_FOR_REGEN) is no more used nor needed by "make" default target building Python. (cherry picked from commit a5c62a8e9f0de6c4133825a5710984a3cd5e102b) * bpo-30273: Update sysconfig (#1464) The AST_H_DIR variable was removed from Makefile.pre.in by the commit a5c62a8e9f0de6c4133825a5710984a3cd5e102b (bpo-23404). AST_H_DIR was hardcoded to "Include", so replace the removed variable by its content. Remove also ASDLGEN variable from sysconfig example since this variable was also removed. (cherry picked from commit b109a1d3360fc4bb87b9887264e3634632d392ca)
* Issue #28046: get_sysconfigdata_name() uses the _PYTHON_SYSCONFIGDATA_NAMEXavier de Gaye2016-09-111-2/+3
| | | | environment variable that is defined when cross-compiling.
* Issue #28046: Fix distutilsZachary Ware2016-09-101-1/+5
| | | | Why do we have two sysconfig modules again?
* #27364: fix "incorrect" uses of escape character in the stdlib.R David Murray2016-09-081-1/+1
| | | | | | | And most of the tools. Patch by Emanual Barry, reviewed by me, Serhiy Storchaka, and Martin Panter.
* - Issue #23968: Update distutils/sysconfig.py to look for the renameddoko@ubuntu.com2016-06-141-1/+3
| | | | _sysconfigdata module too.
* - Issue #23968: Rename the platform directory from plat-$(MACHDEP) todoko@ubuntu.com2016-06-141-0/+2
| | | | | | | | plat-$(PLATFORM_TRIPLET). Rename the config directory (LIBPL) from config-$(LDVERSION) to config-$(LDVERSION)-$(PLATFORM_TRIPLET). Install the platform specifc _sysconfigdata module into the platform directory and rename it to include the ABIFLAGS.
* - Issue #21272: Use _sysconfigdata.py to initialize distutils.sysconfig.doko@ubuntu.com2016-06-041-31/+4
|
* Issue #25985: sys.version_info is now used instead of sys.versionSerhiy Storchaka2016-02-111-1/+1
| | | | to format short Python version.
* Issue #22919: Windows build updated to support VC 14.0 (Visual Studio 2015), ↵Steve Dower2014-11-221-18/+9
| | | | which will be used for the official 3.5 release.
* remove various dead version checks (closes #22349)Benjamin Peterson2014-09-061-21/+3
| | | | Patch from Thomas Kluyver.
* Issue #21923: Prevent AttributeError in distutils.sysconfig.customize_compilerNed Deily2014-07-061-1/+2
| | | | due to possible uninitialized _config_vars. Original patch by Alex Gaynor.
* Issue #19760: Silence sysconfig's 'SO' key deprecation warnings in tests.Serhiy Storchaka2013-11-261-1/+1
| | | | Change stacklevel in warnings.warn() for 'SO' key to 2.
* Issue 19555 for distutils, plus a little clean up (pyflakes, line lengths).Barry Warsaw2013-11-221-0/+8
|
* Issue #18080: merge from 3.3Ned Deily2013-05-281-2/+8
|\
| * Issue #18080: When building a C extension module on OS X, if the compilerNed Deily2013-05-281-2/+8
| | | | | | | | | | | | is overriden with the CC environment variable, use the new compiler as the default for linking if LDSHARED is not also overriden. This restores Distutils behavior introduced in 3.2.3 and inadvertently dropped in 3.3.0.
* | - Issue #16754: Fix the incorrect shared library extension on linux. Introducedoko@ubuntu.com2013-03-211-4/+4
|\ \ | |/ | | | | | | two makefile macros SHLIB_SUFFIX and EXT_SUFFIX. SO now has the value of SHLIB_SUFFIX again (as in 2.x and 3.1). The SO macro is removed in 3.4.
| * - Issue #16754: Fix the incorrect shared library extension on linux. Introducedoko@ubuntu.com2013-03-211-3/+5
| |\ | | | | | | | | | | | | two makefile macros SHLIB_SUFFIX and EXT_SUFFIX. SO now has the value of SHLIB_SUFFIX again (as in 2.x and 3.1). The SO macro is removed in 3.4.
| | * - Issue #16754: Fix the incorrect shared library extension on linux. Introducedoko@ubuntu.com2013-03-211-3/+5
| | | | | | | | | | | | | | | two makefile macros SHLIB_SUFFIX and EXT_SUFFIX. SO now has the value of SHLIB_SUFFIX again (as in 2.x and 3.1). The SO macro is removed in 3.4.
| | * Issue #13590: OS X Xcode 4 - improve support for universal extension modulesNed Deily2013-01-311-67/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 3.2 branch (for release in 3.2.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.
* | | - Issue #15484: Fix _PYTHON_PROJECT_BASE for srcdir != builddir builds;doko@python.org2013-01-251-5/+8
|\ \ \ | |/ / | | | | | | use _PYTHON_PROJECT_BASE in distutils/sysconfig.py.
| * | - Issue #15484: Fix _PYTHON_PROJECT_BASE for srcdir != builddir builds;doko@python.org2013-01-251-5/+8
| | | | | | | | | | | | use _PYTHON_PROJECT_BASE in distutils/sysconfig.py.
* | | Replace IOError with OSError (#16715)Andrew Svetlov2012-12-251-2/+2
| | |
* | | Closes #16135: Removal of OS/2 support (distutils)Jesus Cea2012-10-101-24/+0
|/ /
* | Issue #15364: Fix sysconfig.get_config_var('srcdir') to be an absolute path.Richard Oudkerk2012-07-271-0/+17
| |
* | Issue #15184: Ensure consistent results of OS X configurationNed Deily2012-07-211-170/+20
| | | | | | | | | | | | | | tailoring for universal builds by factoring out common OS X-specific customizations from sysconfig, distutils.sysconfig, distutils.util, and distutils.unixccompiler into a new module _osx_support that can eventually also be used by packaging.
* | Closes #15366: Corrected computation of include location for source builds. ↵Vinay Sajip2012-07-161-3/+4
| | | | | | | | Thanks to Richard Oudkerk for the bug report and patch.
* | Issue #13590: Improve support for OS X Xcode 4:Ned Deily2012-07-161-3/+26
| | | | | | | | | | | | - fix test_distutils and test_sysconfig test failures by aligning sysconfig and distutils.sysconfig tailoring of configure variables (as in 2.7)
* | Issue #13590: Improve support for OS X Xcode 4:Ned Deily2012-06-231-33/+114
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Try to avoid building Python or extension modules with problematic llvm-gcc compiler. - Since Xcode 4 removes ppc support, extension module builds now check for ppc compiler support and automatically remove ppc and ppc64 archs when not available. - Since Xcode 4 no longer install SDKs in default locations, extension module builds now revert to using installed headers and libs if the SDK used to build the interpreter is not available. - Update ./configure to use better defaults for universal builds; in particular, --enable-universalsdk=yes uses the Xcode default SDK and --with-universal-archs now defaults to "intel" if ppc not available.
* | Fixed _sys_home computation and added diagnostics for Windows buildbot failures.Vinay Sajip2012-05-271-0/+2
| |
* | Addressed some buildbot errors and comments on the checkin by Antoine on ↵Vinay Sajip2012-05-261-1/+2
| | | | | | | | python-dev.
* | Implemented PEP 405 (Python virtual environments).Vinay Sajip2012-05-261-13/+27
|/
* Issue #13590: On OS X 10.7 and 10.6 with Xcode 4.2, buildingNed Deily2012-02-101-1/+32
| | | | | | | | | | | | | | Distutils-based packages with C extension modules may fail because Apple has removed gcc-4.2, the version used to build python.org 64-bit/32-bit Pythons. If the user does not explicitly override the default C compiler by setting the CC environment variable, Distutils will now attempt to compile extension modules with clang if gcc-4.2 is required but not found. Also as a convenience, if the user does explicitly set CC, substitute its value as the default compiler in the Distutils LDSHARED configuration variable for OS X. (Note, the python.org 32-bit-only Pythons use gcc-4.0 and the 10.4u SDK, neither of which are available in Xcode 4. This change does not attempt to override settings to support their use with Xcode 4.)
* Fix distutils.sysconfig.get_makefile_filename when prefix != exec-prefixÉric Araujo2011-10-071-1/+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-15/+0
| | | | | | | | | | | | | | | | | | | | 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.
* Issue #9516: avoid errors in sysconfig when MACOSX_DEPLOYMENT_TARGET is set ↵Ronald Oussoren2011-05-151-1/+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.
* Final patch for issue 9807.Barry Warsaw2010-11-241-3/+16
|
* Remove traces of Mac OS 9 support, again (#9508).Éric Araujo2010-11-061-42/+0
| | | | | | This was done in r80805 (#7908) and erroneously brought back by the distutils revert. This commit removes more code than the original, which was uncomplete. There is no NEWS entry, like in r80805.
* Have distutils.sysconfig close a file to remove ResourceWarnings coming upBrett Cannon2010-10-291-1/+2
| | | | during the build from setup.py.
* Issue #6011: sysconfig and distutils.sysconfig use the surrogateescape errorVictor Stinner2010-10-231-1/+1
| | | | | | handler to parse the Makefile file. Avoid a UnicodeDecodeError if the source code directory name contains a non-ASCII character and the locale encoding is ASCII.
* Issue #9437: Fix building C extensions with non-default LDFLAGS.Antoine Pitrou2010-10-101-0/+5
|
* Reverted changes which were inadvertently committed.Vinay Sajip2010-09-201-15/+11
|
* logging: added hasHandlers() to LoggerAdapter.Vinay Sajip2010-09-201-11/+15
|
* Ensure that the Makefile variable expansionRonald Oussoren2010-07-231-0/+23
| | | | | | | | | | | in distutils.sysconfig matches that in the toplevel sysconfig module. Without this patch universal builds on OSX are broken. Als add a test that checks that the two version of get_config_vars agree on important values.
* reverted distutils its 3.1 state. All new work is now happening in ↵Tarek Ziadé2010-07-221-78/+493
| | | | disutils2, and distutils is now feature-frozen.
* Merged revisions 77919,77921-77922 via svnmerge fromTarek Ziadé2010-02-021-1/+1
| | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r77919 | tarek.ziade | 2010-02-02 23:50:23 +0100 (Tue, 02 Feb 2010) | 1 line module reorganization + missing doctests ........ r77921 | tarek.ziade | 2010-02-02 23:54:28 +0100 (Tue, 02 Feb 2010) | 1 line sysconfig.get_scheme_names now returns a sorted tuple ........ r77922 | tarek.ziade | 2010-02-02 23:55:00 +0100 (Tue, 02 Feb 2010) | 1 line fixed a typo on distutils.sysconfig. thanks arfever ........
* Merged revisions 77759,77761 via svnmerge fromTarek Ziadé2010-01-291-0/+9
| | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r77759 | tarek.ziade | 2010-01-26 22:21:54 +0100 (Tue, 26 Jan 2010) | 1 line reintroduced the names in Distutils for APIs that were relocated ........ r77761 | tarek.ziade | 2010-01-26 23:46:15 +0100 (Tue, 26 Jan 2010) | 1 line added local get_platform/set_platform APIs in distutils.sysconfig ........
* Merged revisions 77704,77752 via svnmerge fromTarek Ziadé2010-01-291-493/+69
| | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r77704 | tarek.ziade | 2010-01-23 10:23:15 +0100 (Sat, 23 Jan 2010) | 1 line taking sysconfig out of distutils ........ r77752 | tarek.ziade | 2010-01-26 00:19:56 +0100 (Tue, 26 Jan 2010) | 1 line switched the call order so this call works without suffering from issue #7774 ........
* Merged revisions 73341 via svnmerge fromTarek Ziadé2009-06-111-4/+11
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r73341 | tarek.ziade | 2009-06-11 10:12:20 +0200 (Thu, 11 Jun 2009) | 1 line Fixed #5201: now distutils.sysconfig.parse_makefile() understands '53264' in Makefiles ........