summaryrefslogtreecommitdiffstats
path: root/Lib/site.py
Commit message (Collapse)AuthorAgeFilesLines
* 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 ........
* Merged revisions 80967 via svnmerge fromRonald Oussoren2010-05-081-6/+11
| | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80967 | ronald.oussoren | 2010-05-08 12:29:06 +0200 (Sat, 08 May 2010) | 4 lines Issue #8084: ensure that the --user directory conforms to platforms standars on OSX when using a python framework. ........
* PEP 3147Barry Warsaw2010-04-171-4/+8
|
* Merged revisions 80022 via svnmerge fromBrian Curtin2010-04-121-3/+5
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80022 | brian.curtin | 2010-04-12 18:30:49 -0500 (Mon, 12 Apr 2010) | 2 lines Fix #8364. Update the setquit docstring and change a built-in to builtin. ........
* Merged revisions 79297,79310,79382,79425-79427,79450 via svnmerge fromFlorent Xicluna2010-03-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r79297 | florent.xicluna | 2010-03-22 18:18:18 +0100 (lun, 22 mar 2010) | 2 lines #7668: Fix test_httpservers failure when sys.executable contains non-ASCII bytes. ........ r79310 | florent.xicluna | 2010-03-22 23:52:11 +0100 (lun, 22 mar 2010) | 2 lines Issue #8205: Remove the "Modules" directory from sys.path when Python is running from the build directory (POSIX only). ........ r79382 | florent.xicluna | 2010-03-24 20:33:25 +0100 (mer, 24 mar 2010) | 2 lines Skip tests which depend on multiprocessing.sharedctypes, if _ctypes is not available. ........ r79425 | florent.xicluna | 2010-03-25 21:32:07 +0100 (jeu, 25 mar 2010) | 2 lines Syntax cleanup `== None` -> `is None` ........ r79426 | florent.xicluna | 2010-03-25 21:33:49 +0100 (jeu, 25 mar 2010) | 2 lines #8207: Fix test_pep277 on OS X ........ r79427 | florent.xicluna | 2010-03-25 21:39:10 +0100 (jeu, 25 mar 2010) | 2 lines Fix test_unittest and test_warnings when running "python -Werror -m test.regrtest" ........ r79450 | florent.xicluna | 2010-03-26 20:32:44 +0100 (ven, 26 mar 2010) | 2 lines Ensure that the failed or unexpected tests are sorted before printing. ........
* Merged revisions 78826 via svnmerge fromVictor Stinner2010-03-121-5/+14
| | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r78826 | victor.stinner | 2010-03-10 23:30:19 +0100 (mer., 10 mars 2010) | 5 lines Issue #3137: Don't ignore errors at startup, especially a keyboard interrupt (SIGINT). If an error occurs while importing the site module, the error is printed and Python exits. Initialize the GIL before importing the site module. ........
* Merged revisions 77704,77752 via svnmerge fromTarek Ziadé2010-01-291-21/+6
| | | | | | | | | | | | | | 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 ........