[Python-Dev] Re: [Zope3-dev] Zip import and sys.path manipulation (was Re: directory hierarchy proposal)
Barry A. Warsaw
barry@zope.com
Mon, 16 Dec 2002 11:16:19 -0500
>>>>> "GvR" == Guido van Rossum <guido@python.org> writes:
>> Random, harried thought: maybe we can use .pth files to extend
>> the __path__? IOW, something like the above would search
>> sys.path for zope.pth files, and do the equivalent to what
>> site.py already does.
GvR> That would be a useful addition to the pkgutil.py module that
GvR> I just proposed.
The nice thing is if we can localize things to pkgutil.py, we wouldn't
/have/ to release Python 2.2.3 to get backported support. Just
release pkgutil.py as its own distutils package which Zope3 could
"setup.py install" first thing. It lands in site-packages for older
Python's to use, but when it gets released with Python 2.3, it'll be
ignored in favor of the standard library version.
-Barry