On 2008-05-04 18:14, Christian Heimes wrote: >> First, Skip, I *only* care about the default behavior. There's already >> a way to do it differently: PYTHONPATH. So, Fred, I think what you're >> arguing for is to drop this feature entirely. Or is there some other >> use for a new way to allow users to explicitly add something to >> sys.path, aside from PYTHONPATH? It seems that it would add more >> complexity and I can't see what the value would be. > > PYTHONPATH is lacking one feature which is important for lots of > packages and setuptools. The directories in PYTHONPATH are just added to > sys.path. But setuptools require a site package directory. Maybe a new > env var PYTHONSITEPATH could solve the problem. We don't need another setup variable for this. Just place a well-known module into the site-packages/ directory and then query it's __file__ attribute, e.g. site-packages/site_packages.py The module could even include a few helpers to query various settings which apply to the site packages directory, e.g. site_packages.get_dir() site_packages.list_packages() site_packages.list_modules() etc. >> As I've said a dozen times in this thread already, the feature I'd like >> to get from a per-user installation location is that 'setup.py install', >> or at least some completely canonical distutils incantation, should >> work, by default, for non-root users; ideally non-administrators on >> windows as well as non-root users on unixish platforms. > > The implementation of my PEP provides a new option for install: > > $ python setup.py install --user > > Is it sufficient for you? Just in case you don't know... python setup.py install --home=~ will install to ~/lib/python The problem is not getting the packages installed in a non-admin location. It's about Python looking in a non-admin location per default (as well as in the site-packages location). -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, May 04 2008) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ :::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,MacOSX for free ! :::: eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48 D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg Registered at Amtsgericht Duesseldorf: HRB 46611
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4