summaryrefslogtreecommitdiffstats
path: root/Lib/site.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-33689: Blank lines in .pth file cause a duplicate sys.path entry (GH-20679)idomic2020-09-191-0/+2
|
* bpo-41627: Distinguish 32 and 64-bit user site packages on Windows (GH-22098)Steve Dower2020-09-041-1/+2
| | | Also fixes the error message returned when sysconfig fails to interpolate a variable correctly.
* bpo-41193: Ignore OSError in readline write_history() (GH-21279)Victor Stinner2020-07-021-3/+3
| | | | | The write_history() atexit function of the readline completer now ignores any OSError to ignore error if the filesystem is read-only, instead of only ignoring FileNotFoundError and PermissionError.
* bpo-33944: site: Add site-packages tracing in verbose mode (GH-12110)native-api2020-06-121-0/+9
|
* bpo-1294959: Add sys.platlibdir attribute (GH-18381)Victor Stinner2020-03-101-4/+13
| | | | | | | | | | | | | Add --with-platlibdir option to the configure script: name of the platform-specific library directory, stored in the new sys.platlitdir attribute. It is used to build the path of platform-specific dynamic libraries and the path of the standard library. It is equal to "lib" on most platforms. On Fedora and SuSE, it is equal to "lib64" on 64-bit systems. Co-Authored-By: Jan Matějek <jmatejek@suse.com> Co-Authored-By: Matěj Cepl <mcepl@cepl.eu> Co-Authored-By: Charalampos Stratakis <cstratak@redhat.com>
* Fix typo in site module (GH-17597)Daniel Andersson2019-12-141-1/+1
|
* bpo-37369: Fix initialization of sys members when launched via an app ↵Steve Dower2019-06-291-7/+0
| | | | | | | container (GH-14428) sys._base_executable is now always defined on all platforms, and can be overridden through configuration. Also adds test.support.PythonSymlink to encapsulate platform-specific logic for symlinking sys.executable
* bpo-37364: Use io.open_code() to read .pth files (GH-14299)Steve Dower2019-06-211-1/+2
| | | https://bugs.python.org/issue37364
* bpo-35872 and bpo-35873: Clears __PYVENV_LAUNCHER__ variable (GH-11745)Steve Dower2019-02-041-1/+8
| | | | After reading __PYVENV_LAUNCHER__ we now set sys._base_executable value for later use. Make the same changes for macOS to avoid extra platform checks.
* bpo-19891: Ignore error while writing history file (GH-8483)Anthony Sottile2018-08-061-1/+10
|
* bpo-30167: Prevent site.main() exception if PYTHONSTARTUP is set. (GH-6731)Steve Weber2018-06-111-2/+2
| | | | Before Python 3.6, os.path.abspath(None) used to report an AttributeError which was properly caught inside site.abs_paths, making it ignore __main__, one of sys.modules, which has __file__ and __cached__ set to None. With 3.6, os.path.abspath(None) raises TypeError instead which site.abs_path was not expecting. This resulted in an uncaught exception if a user had PYTHONSTARTUP set and the application called site.main() which a number of third-party programs do.
* bpo-28440: Don't add /Library/Python/3.x/site-packages to sys.path (#5445)Ned Deily2018-01-301-5/+0
| | | | | | | | No longer add /Library/Python/3.x/site-packages, the Apple-supplied system Python site-packages directory, to sys.path for macOS framework builds in case Apple ships a version of Python 3. A similar change was made earlier to Python 2.7 where it was found that the coupling between the system Python and a user-installed framework Python often caused confusion or pip install failures.
* bpo-30804: fix macOS build with framework enabled. (#2516)INADA Naoki2017-06-301-2/+2
|
* bpo-29585: Define PYTHONFRAMEWORK in PC/pyconfig.h (#2477)Victor Stinner2017-06-281-1/+1
| | | | | | | | | | * bpo-29585: Fix PC/pyconfig.h whitespaces Run "make patchcheck". * bpo-29585: Define PYTHONFRAMEWORK in PC/pyconfig.h * site: Fix path separator in _get_path() on Windows
* bpo-29585: optimize site.py startup time (GH-136)INADA Naoki2017-06-281-26/+52
| | | | Avoid importing `sysconfig` from `site` by copying minimum code. Python startup is 5% faster on Linux and 30% faster on macOS
* bpo-30022: Get rid of using EnvironmentError and IOError (except test… (#1051)Serhiy Storchaka2017-04-161-1/+1
|
* bpo-29592: site: skip abs_paths() when it's redundant (GH-167)INADA Naoki2017-03-141-1/+6
| | | Call abs_paths() only if removeduppaths() changed sys.path
* Issue #28637: No longer use re in site.py.Serhiy Storchaka2016-11-081-9/+4
| | | | This makes Python startup from a virtual environment a little faster.
* Issue #28323: Remove vestigal MacOS 9 checks from exit() and quit().Ned Deily2016-10-021-3/+1
| | | | Patch by Chi Hsuan Yen.
* Issue #28192: Don't import readline in isolated modeSteve Dower2016-09-171-5/+7
|
* Changes pyvenv.cfg trick into an actual sys.path file.Steve Dower2016-09-091-6/+0
|
* Issue #27959: Adds oem encoding, alias ansi to mbcs, move aliasmbcs to codec ↵Steve Dower2016-09-071-16/+0
| | | | lookup
* Issue #27171: Merge typo fixes from 3.5Martin Panter2016-06-021-2/+2
|\
| * Issue #27171: Fix typos in documentation, comments, and test function namesMartin Panter2016-06-021-2/+2
| |
* | Issue #26587: Allow .pth files to specify file paths as well asBrett Cannon2016-04-081-9/+9
| | | | | | | | | | | | | | directories. Thanks to Wolfgang Langner for the bug report and initial version of the patch.
* | Revert back to 3.6.0, buildbots do not want chocolate for 04-01Ned Deily2016-03-311-56/+0
| |
* | Python 8: no pep8, no chocolate!Victor Stinner2016-03-311-0/+56
| |
* | Issue #25985: sys.version_info is now used instead of sys.versionSerhiy Storchaka2016-02-111-2/+2
| | | | | | | | to format short Python version.
* | site: error on sitecustomize import errorVictor Stinner2016-01-221-6/+14
|/ | | | | | Issue #26099: The site module now writes an error into stderr if sitecustomize module can be imported but executing the module raise an ImportError. Same change for usercustomize.
* Closes #25185: merged fix from 3.4.Vinay Sajip2015-10-011-1/+3
|\
| * Closes #25185: Use UTF-8 encoding when reading pyvenv.cfg.Vinay Sajip2015-10-011-1/+3
| |
* | Fixes sys.path for applocal environments.Steve Dower2015-07-171-0/+6
| |
* | Issue #23911: Move path-based bootstrap code to a separate frozen module.Eric Snow2015-05-031-2/+2
| |
* | merge 3.4Benjamin Peterson2015-02-021-1/+1
|\ \ | |/
| * https goodnessBenjamin Peterson2015-02-021-1/+1
| |
* | Issue #21711: support for "site-python" directories has now been removed ↵Antoine Pitrou2014-06-121-11/+4
|/ | | | from the site module (it was deprecated in 3.4).
* Issue #21572: Change license command to fallback to generic license URL.Ned Deily2014-05-311-1/+1
|
* Issue #16047: Fix module exception list and __file__ handling in freeze.Martin v. Löwis2014-03-301-3/+8
| | | | Patch by Meador Inge.
* Issue #20411: Use readline.get_current_history_length to check for the ↵Jason R. Coombs2014-01-281-1/+1
| | | | presence of a history, rather than get_history_item, which assumes a history is present.
* Issue #19375: The site module adding a "site-python" directory to sys.path, ↵Antoine Pitrou2013-10-251-0/+5
| | | | if it exists, is now deprecated.
* Issue #19205 fix 406529adf156Christian Heimes2013-10-111-1/+1
| | | | I forgot to hit save.
* Issue #19205: Don't import the 're' module in site and sysconfig module toChristian Heimes2013-10-111-3/+3
| | | | to speed up interpreter start.
* Issue #9548: Add a minimal "_bootlocale" module that is imported by the _io ↵Antoine Pitrou2013-10-111-2/+2
| | | | module instead of the full locale module.
* Issue #5845: In site.py, only load readline history from ~/.python_history ↵Antoine Pitrou2013-09-291-6/+13
| | | | if no history has been read already. This avoids double writes to the history file at shutdown.
* #18206: Re-fix license URL.R David Murray2013-09-141-1/+2
|
* #18852: Handle readline.__doc__ being None in site.py readline activation.R David Murray2013-09-061-2/+3
| | | | Patch by Berker Peksag.
* Issue #18621: Prevent the site module's patched builtins from keeping too ↵Antoine Pitrou2013-08-061-93/+8
| | | | many references alive for too long.
* Remove Lib/site.py hack to unregister patched builtins.Antoine Pitrou2013-08-011-29/+10
| | | | It creates a refleak in subinterpreters, as atexit callbacks aren't triggered at their end.
* Issue #18214: Improve finalization of Python modules to avoid setting their ↵Antoine Pitrou2013-07-311-10/+29
| | | | globals to None, in most cases.
* Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a)Brett Cannon2013-07-041-3/+3
|