summaryrefslogtreecommitdiffstats
path: root/Lib/site.py
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Issue #18200: Update the stdlib (except tests) to useBrett Cannon2013-06-141-3/+3
| | | | ModuleNotFoundError.
* Issue #5845: avoid an exception at startup on OS X if no .editrc file exists.Mark Dickinson2013-05-061-1/+9
|
* Issue #5845: Enable tab-completion in the interactive interpreter by ↵Antoine Pitrou2013-05-041-2/+40
| | | | | | default, thanks to a new sys.__interactivehook__. (original patch by Éric Araujo)
* Issue #16804: Fix 'python -S -m site' failure.Meador Inge2013-04-141-4/+6
|\ | | | | | | | | | | | | | | This commit fixes a bug in the 'site' module that was causing an exception to incorrectly be thrown when running 'python -S -m site'. The problem was that 'USER_BASE' and 'USER_SITE' were being accessed before they were properly initialized. The code has been changed to use 'getuserbase' and 'getusersitepackages' instead so that the initialization always happens.
| * Issue #16804: Fix 'python -S -m site' failure.Meador Inge2013-04-141-4/+6
| | | | | | | | | | | | | | | | This commit fixes a bug in the 'site' module that was causing an exception to incorrectly be thrown when running 'python -S -m site'. The problem was that 'USER_BASE' and 'USER_SITE' were being accessed before they were properly initialized. The code has been changed to use 'getuserbase' and 'getusersitepackages' instead so that the initialization always happens.
* | #17585: merge with 3.3.Roger Serwy2013-04-121-6/+1
|\ \ | |/
| * #17585: Fixed IDLE regression. Now closes when using exit() or quit().Roger Serwy2013-04-121-6/+1
| |
* | modernize some modules' code by using with statement around open()Giampaolo Rodola'2013-02-121-3/+2
| |
* | Issue #16972: Have site.addpackage() consider known paths even whenBrett Cannon2013-01-251-1/+1
| | | | | | | | none are explicitly passed in.
* | Replace IOError with OSError (#16715)Andrew Svetlov2012-12-251-2/+2
| |
* | Issue #16706: get rid of os.errorAndrew Svetlov2012-12-181-1/+1
| |
* | Closes #16519: Merged fix from 3.3.Vinay Sajip2012-11-231-5/+3
|\ \ | |/
| * Issue #16519: Used os.path.abspath, removed unnecessary code for ↵Vinay Sajip2012-11-231-5/+3
| | | | | | | | executable_name.
* | Remove sys.platform == 'riscos' checks from some Python and test files. #16501Christian Heimes2012-11-181-3/+1
| |
* | #16135: Removal of OS/2 support (Python code partial cleanup)Jesus Cea2012-10-051-20/+1
|/
* Issue 15241: Improved site.py documentation relating to venvs.Vinay Sajip2012-07-031-2/+2
|
* Closes #15173: Tidied up copyright statements and removed pythonv references.Vinay Sajip2012-06-241-2/+2
|
* Implemented PEP 405 (Python virtual environments).Vinay Sajip2012-05-261-7/+81
|
* Issue #2377: Make importlib the implementation of __import__().Brett Cannon2012-04-141-1/+2
| | | | | | | importlib._bootstrap is now frozen into Python/importlib.h and stored as _frozen_importlib in sys.modules. Py_Initialize() loads the frozen code along with sys and imp and then uses _frozen_importlib._install() to set builtins.__import__() w/ _frozen_importlib.__import__().
* site: don't import traceback at startup to speed up Python startupVictor Stinner2012-02-211-1/+1
|
* Remove redundant imports.Florent Xicluna2011-11-041-2/+1
|
* Replace open(filename, 'rU') by open(filename, 'r')Victor Stinner2011-05-041-2/+2
| | | | The U flag is no more used (but still accepted for backward compatibility).
* Do not touch sys.path when site is imported and python was started with -S.Éric Araujo2011-03-231-1/+9
| | | | | Original patch by Carl Meyer, review by Brett Cannon, small doc editions by yours truly. Fixes #11591.
* #5258/#10642: print fn, line, traceback and continue when .pth file is brokenR. David Murray2010-12-261-9/+19
| | | | | | | | | | If a .pth file contained an error, it could cause a traceback in site.py, terminating its processing. In 2.7 and 3.2, the interpreter will then not start. Previously, a message would print saying to use -v to get the traceback. In either case, the traceback generated for a failed .pth file did not include the .pth filename, making it difficult to debug the problem. Now site.py reports not only the .pth filename but also the line number causing the error, and just skips the remainder of the file.
* Issue #6612: Fix site and sysconfig to catch os.getcwd() error, eg. if theVictor Stinner2010-10-121-3/+7
| | | | current directory was deleted.
* Issue #9549: sys.setdefaultencoding() and PyUnicode_SetDefaultEncoding()Antoine Pitrou2010-09-011-25/+0
| | | | | are now removed, since their effect was inexistent in 3.x (the default encoding is hardcoded to utf-8 and cannot be changed).
* Reimplement addbuilddir() in C inside getpath.c, so as to execute itAntoine Pitrou2010-08-131-15/+0
| | | | | at interpreter startup before importing any non-builtin modules. Should fix #9589.
* Ensure that test_site actually passes with a framework buildRonald Oussoren2010-08-011-1/+1
|
* Merged revisions 81465-81466,81468,81679,81735,81760,81868,82183 via ↵Benjamin Peterson2010-06-271-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r81465 | georg.brandl | 2010-05-22 06:29:19 -0500 (Sat, 22 May 2010) | 2 lines Issue #3924: Ignore cookies with invalid "version" field in cookielib. ........ r81466 | georg.brandl | 2010-05-22 06:31:16 -0500 (Sat, 22 May 2010) | 1 line Underscore the name of an internal utility function. ........ r81468 | georg.brandl | 2010-05-22 06:43:25 -0500 (Sat, 22 May 2010) | 1 line #8635: document enumerate() start parameter in docstring. ........ r81679 | benjamin.peterson | 2010-06-03 16:21:03 -0500 (Thu, 03 Jun 2010) | 1 line use a set for membership testing ........ r81735 | michael.foord | 2010-06-05 06:46:59 -0500 (Sat, 05 Jun 2010) | 1 line Extract error message truncating into a method (unittest.TestCase._truncateMessage). ........ r81760 | michael.foord | 2010-06-05 14:38:42 -0500 (Sat, 05 Jun 2010) | 1 line Issue 8302. SkipTest exception is setUpClass or setUpModule is now reported as a skip rather than an error. ........ r81868 | benjamin.peterson | 2010-06-09 14:45:04 -0500 (Wed, 09 Jun 2010) | 1 line fix code formatting ........ r82183 | benjamin.peterson | 2010-06-23 15:29:26 -0500 (Wed, 23 Jun 2010) | 1 line cpython only gc tests ........