GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing peps.python.org — PEP 370 – Per user site-packages directory | peps.python.org
PEP 370 – Per user site-packages directory
PEP 370 – Per user site-packages directory
AbstractThis PEP proposes a new a per user site-packages directory to allow users the local installation of Python packages in their home directory. RationaleCurrent Python versions don’t have a unified way to install packages into the home directory of a user (except for Mac Framework builds). Users are either forced to ask the system administrator to install or update a package for them or to use one of the many workarounds like Virtual Python [1], Working Env [2] or Virtual Env [3]. It’s not the goal of the PEP to replace the tools or to implement isolated installations of Python. It only implements the most common use case of an additional site-packages directory for each user. The feature can’t be implemented using the environment variable PYTHONPATH. The env var just inserts a new directory to the beginning of sys.path but it doesn’t parse the pth files in the directory. A full blown site-packages path is required for several applications and Python eggs. Specificationsite directory (site-packages)
user site directory
user data directory
user base directory
user script directory
Windows NotesOn Windows the Application Data directory (aka The application data directory is part of the roaming profile. In networks with domain logins the application data may be copied from and to the a central server. This can slow down log-in and log-off. Users can keep the data on the server by e.g. setting PYTHONUSERBASE to the value “%HOMEDRIVE%%HOMEPATH%Applicata Data”. Users should consult their local administrator for more information. [13] Unix NotesOn Unix Mac OS X NotesOn Mac OS X Python uses ~/.local directory as well. [12] Framework builds
of Python include ImplementationThe site module gets a new method The user site directory is added before the system site directories
but after Python’s search paths and For security reasons the user site directory is not added to
The user site directory can be suppressed with a new option The path to the user base directory can be overwritten with the
environment variable
The
The Windows updater needs to be updated, too. It should create a menu item which opens the user site directory in a new explorer windows. Backwards CompatibilityTBD Reference ImplementationA reference implementation is available in the bug tracker. [4] CopyrightThis document has been placed in the public domain. References[6] Initial suggestion for a per user site-packages directory https://mail.python.org/archives/list/[email protected]/message/V23CUKRH3VCHFLV33ADMHJSM53STPA7I/ |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |