Redhat and Python 2.x.x
sholden at holdenweb.com
Tue Jan 22 16:41:12 CET 2002
"Gordon McMillan" <gmcm at hypernet.com> wrote in message
news:Xns919E62109CF6Bgmcmhypernetcom at 18.104.22.168...
> Steve Holden wrote:
> > It would be useful to define some sort of "shared" area into which
> > modules/packages acceptable to several different distributions could be
> > installed once. However, extending this to mutliple versions would get
> > confusing: a directory for 1.5.2 and 2.0 packages, a directory for 2.0,
> > 2.1 and 2.2 packages, etc.
> While the source might be the same, the .pycs aren't, so somebody
> would suffer greatly.
Indeed, I wasn't thinking about writing .pyc's. However, this optimization
gains so much it would clearly not be an effective solution to deny the
interpreter that possibility (though this often happens on web servers, for
example, particularly during development).
To avoid a loss of efficiency I guess the compiled files would need to be
written into a different directory from the source, which would be picked up
from the PYTHONPATH before the source directory. This would also need to be
version-dependent so the different versions didn't conflict. Hmm, this is
getting a bit too much like hackery. Oh, well.
Consulting, training, speaking: http://www.holdenweb.com/
Python Web Programming: http://pydish.holdenweb.com/pwp/
More information about the Python-list