summaryrefslogtreecommitdiffstats
path: root/Lib/sysconfig.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-39825: Fixes sysconfig.get_config_var('EXT_SUFFIX') on Windows to match ↵Miss Islington (bot)2020-12-071-1/+2
| | | | | | | distutils (GH-22088) (cherry picked from commit c0afb7fa0ebd1c0e95c0760bbe75a99a8dd12ea6) Co-authored-by: Matti Picus <matti.picus@gmail.com>
* [3.8] bpo-38234: Backport init path config changes from master (GH-16423)Victor Stinner2019-09-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bpo-38234: Py_SetPath() uses the program full path (GH-16357) Py_SetPath() now sets sys.executable to the program full path (Py_GetProgramFullPath()), rather than to the program name (Py_GetProgramName()). Fix also memory leaks in pathconfig_set_from_config(). (cherry picked from commit 1ce152a42eaa917d7763bce93f1e1ca72530d7ca) * bpo-38234: Add tests for Python init path config (GH-16358) (cherry picked from commit bb6bf7d342b4503a6227fd209fac934905b6a1aa) * bpo-38234: test_embed: test pyvenv.cfg and pybuilddir.txt (GH-16366) Add test_init_pybuilddir() and test_init_pyvenv_cfg() to test_embed to test pyvenv.cfg and pybuilddir.txt configuration files. Fix sysconfig._generate_posix_vars(): pybuilddir.txt uses UTF-8 encoding, not ASCII. (cherry picked from commit 52ad33abbfb6637d74932617c7013bae0ccf6e32) * bpo-38234: Cleanup getpath.c (GH-16367) * search_for_prefix() directly calls reduce() if found is greater than 0. * Add calculate_pybuilddir() subfunction. * search_for_prefix(): add path string buffer for readability. * Fix some error handling code paths: release resources on error. * calculate_read_pyenv(): rename tmpbuffer to filename. * test.pythoninfo now also logs windows.dll_path (cherry picked from commit 221fd84703c545408bbb4a6e0b58459651331f5c) * bpo-38234: Fix test_embed pathconfig tests (GH-16390) bpo-38234: On macOS and FreeBSD, the temporary directory can be symbolic link. For example, /tmp can be a symbolic link to /var/tmp. Call realpath() to resolve all symbolic links. (cherry picked from commit 00508a7407d7d300b487532e2271534b20e378a7) * bpo-38234: Add test_init_setpath_config() to test_embed (GH-16402) * Add test_embed.test_init_setpath_config(): test Py_SetPath() with PyConfig. * test_init_setpath() and test_init_setpythonhome() no longer call Py_SetProgramName(), but use the default program name. * _PyPathConfig: isolated, site_import and base_executable fields are now only available on Windows. * If executable is set explicitly in the configuration, ignore calculated base_executable: _PyConfig_InitPathConfig() copies executable to base_executable. * Complete path config documentation. (cherry picked from commit 8bf39b606ef7b02c0279a80789f3c4824b0da5e9) * bpo-38234: Complete init config documentation (GH-16404) (cherry picked from commit 88feaecd46a8f427e30ef7ad8cfcddfe392a2402) * bpo-38234: Fix test_embed.test_init_setpath_config() on FreeBSD (GH-16406) Explicitly preinitializes with a Python preconfiguration to avoid Py_SetPath() implicit preinitialization with a compat preconfiguration. Fix also test_init_setpath() and test_init_setpythonhome() on macOS: use self.test_exe as the executable (and base_executable), rather than shutil.which('python3'). (cherry picked from commit 49d99f01e6e51acec5ca57a02e857f0796bc418b) * bpo-38234: Py_Initialize() sets global path configuration (GH-16421) * Py_InitializeFromConfig() now writes PyConfig path configuration to the global path configuration (_Py_path_config). * Add test_embed.test_get_pathconfig(). * Fix typo in _PyWideStringList_Join(). (cherry picked from commit 12f2f177fc483723406d7917194e7f655a20631b)
* bpo-37201: fix test_distutils failures for Windows ARM64 (GH-13902)Miss Islington (bot)2019-06-121-0/+2
| | | | | (cherry picked from commit daf62627518ad97ce66a48c49496aa0573cf0731) Co-authored-by: Paul Monson <paulmon@users.noreply.github.com>
* bpo-35920: Windows 10 ARM32 platform support (GH-11774)Paul Monson2019-04-251-0/+2
|
* bpo-35299: Fixed sysconfig and distutils during PGO profiling (GH-11744)Steve Dower2019-02-051-3/+10
|
* bpo-32430: Rename Modules/Setup.dist to Modules/Setup (GH-8229)Antoine Pitrou2018-07-161-1/+1
| | | | | bpo-32430: Rename Modules/Setup.dist to Modules/Setup Remove the necessity to copy the former manually to the latter when updating the local source tree.
* remove support for BSD/OS (closes bpo-31624) (#3812)Benjamin Peterson2017-09-291-2/+2
|
* Remove all mention of Windows IA-64 support (GH-3389)Zachary Ware2017-09-061-11/+1
| | | It was mostly removed long ago.
* remove IRIX support (closes bpo-31341) (#3310)Benjamin Peterson2017-09-041-10/+5
| | | See PEP 11.
* bpo-29585: optimize site.py startup time (GH-136)INADA Naoki2017-06-281-16/+10
| | | | Avoid importing `sysconfig` from `site` by copying minimum code. Python startup is 5% faster on Linux and 30% faster on macOS
* bpo-29762: More use "raise from None". (#569)Serhiy Storchaka2017-04-051-1/+1
| | | This hides unwanted implementation details from tracebacks.
* Issue #28046: get_sysconfigdata_name() uses the _PYTHON_SYSCONFIGDATA_NAMEXavier de Gaye2016-09-111-14/+8
| | | | environment variable that is defined when cross-compiling.
* Issue #28046: Fix get_sysconfigdata_name().Xavier de Gaye2016-09-101-7/+14
|
* Issue #28046: Remove platform-specific directories from sys.pathZachary Ware2016-09-101-2/+11
|
* #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: Rename the platform directory from plat-$(MACHDEP) todoko@ubuntu.com2016-06-141-2/+6
| | | | | | | | 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 #25985: sys.version_info is now used instead of sys.versionSerhiy Storchaka2016-02-111-4/+4
| | | | to format short Python version.
* - Issue #24705: Fix sysconfig._parse_makefile not expanding ${} varsdoko@ubuntu.com2016-01-111-1/+6
| | | | appearing before $() vars.
* Closes #23437: Make user scripts directory versioned on Windows (patch by ↵Steve Dower2015-02-141-1/+1
| | | | pmoore)
* Issue #22919: Windows build updated to support VC 14.0 (Visual Studio 2015), ↵Steve Dower2014-11-221-12/+5
| | | | which will be used for the official 3.5 release.
* 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.
* A fix for issue 19555 on Windows.Barry Warsaw2013-11-221-4/+4
|
* - Issue #19555: Restore sysconfig.get_config_var('SO'), with aBarry Warsaw2013-11-211-0/+7
| | | | DeprecationWarning pointing people at $EXT_SUFFIX.
* Issue #18235: Fix the sysconfig variables LDSHARED and BLDSHARED under AIX.Antoine Pitrou2013-10-191-1/+1
|\ | | | | | | Patch by David Edelsohn.
| * Issue #18235: Fix the sysconfig variables LDSHARED and BLDSHARED under AIX.Antoine Pitrou2013-10-191-1/+1
| | | | | | | | Patch by David Edelsohn.
* | Issue #19205: Don't import the 're' module in site and sysconfig module toChristian Heimes2013-10-111-1/+3
| | | | | | | | to speed up interpreter start.
* | Issue #17177: Stop using imp in sysconfigBrett Cannon2013-06-151-2/+2
| |
* | - Issue #16754: Fix the incorrect shared library extension on linux. Introducedoko@ubuntu.com2013-03-211-1/+1
|\ \ | |/ | | | | | | 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-0/+1
| |\ | | | | | | | | | | | | 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-0/+1
| | | | | | | | | | | | | | | 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-143/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Replace IOError with OSError (#16715)Andrew Svetlov2012-12-251-4/+4
| | |
* | | Remove sys.platform == 'riscos' checks from some Python and test files. #16501Christian Heimes2012-11-181-1/+0
| | |
* | | Merge issue #15298.Trent Nelson2012-10-171-12/+17
|\ \ \ | |/ /
| * | Issue #15298: refactor previous fix from 66959d419369.Trent Nelson2012-10-171-12/+17
| | |
* | | Merge issue #15298: fix an OS X bootstrap issue with _sysconfigdata.py.Trent Nelson2012-10-171-6/+19
|\ \ \ | |/ /
| * | Issue #15298: fix an OS X bootstrap issue with _sysconfigdata.py.Trent Nelson2012-10-171-6/+19
| | | | | | | | | | | | Reported by: Ned Deily.
* | | Merge issue #15298: ensure _sysconfigdata is generated in build directory,Trent Nelson2012-10-161-1/+10
|\ \ \ | |/ / | | | | | | | | | | | | not source directory. Patch by: Richard Oudkerk (sbt).
| * | Issue #15298: ensure _sysconfigdata is generated in build directory,Trent Nelson2012-10-161-1/+10
| | | | | | | | | | | | | | | | | | not source directory. Patch by Richard Oudkerk (sbt).
* | | #16135: Removal of OS/2 support (Python code partial cleanup)Jesus Cea2012-10-051-21/+2
|/ /
* | Issue #15364: Fix sysconfig.get_config_var('srcdir') to be an absolute path.Richard Oudkerk2012-07-271-22/+16
| |
* | Issue #15184: Ensure consistent results of OS X configurationNed Deily2012-07-211-144/+10
| | | | | | | | | | | | | | 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.
* | Issue #13590: Improve support for OS X Xcode 4:Ned Deily2012-07-161-3/+3
| | | | | | | | | | | | - fix test_distutils and test_sysconfig test failures by aligning sysconfig and distutils.sysconfig tailoring of configure variables (as in 2.7)
* | - Issue #14330: For cross builds, don't use host python, use host search pathsdoko@ubuntu.com2012-06-301-2/+2
| | | | | | | | | | | | for host compiler. Add NEWS entry, rename _PROJECT_BASE to _PYTHON_PROJECT_BASE.
* | - Issue #14330: For cross builds, don't use host python, use host search pathsdoko@ubuntu.com2012-06-301-0/+8
| | | | | | | | for host compiler.
* | Issue #15164: Change return value of platform.uname() from aLarry Hastings2012-06-241-1/+1
| | | | | | | | plain tuple to a collections.namedtuple.
* | Packaging removal: also revert introduction of sysconfig.cfg.Éric Araujo2012-06-241-73/+97
| | | | | | | | | | | | | | We need a discussion to define what should be customized how; this new config file is premature. It was added to serve the needs of the resources system in install_data / packaging.database, so it can be removed alongside packaging for 3.3.
* | Remove packaging from the standard library.Éric Araujo2012-06-241-1/+1
| | | | | | | | | | | | Distutils2 will live on on PyPI and be included in the stdlib when it is ready. See discussion starting at http://mail.python.org/pipermail/python-dev/2012-June/120430.html
* | Fixed _sys_home computation and added diagnostics for Windows buildbot failures.Vinay Sajip2012-05-271-1/+2
| |
* | Addressed some buildbot errors and comments on the checkin by Antoine on ↵Vinay Sajip2012-05-261-1/+2
| | | | | | | | python-dev.