Re: [Python-Dev] python-dev sprint at PyCon

At 11:14 AM 11/1/2005 -0700, Guido van Rossum wrote:
Well, it's not trivial if you're (in my case) trying to support 2.3 and 2.4 with the same code base. It'd be nice to have some other advice to offer people besides, "go edit your code". Of course, if the feature hadn't already existed, I suppose a PEP to add it would have been shot down, so it's a reasonable decision.
Yeah, Bob Ippolito and I batted around a few ideas about how to implement simultaneous multi-version imports for Python Eggs, some of which relied on the relative/absolute ambiguity, but I think the main subtleties have to do with dynamic imports (including pickling) and the use of __name__. Of course, since we never actually implemented it, I don't know what other subtleties could potentially exist. Python Eggs currently allow you to install multiple versions of a package, but at runtime you can only import one of them, and you get a runtime VersionConflict exception if two eggs' version criteria are incompatible.

On 11/1/05, Phillip J. Eby <pje@telecommunity.com> wrote:
You should just bite the bullet and make a privatized copy of the package(s) on which you depend part of your own distributions.
I agree it would be nice if we could do something about deep version issues. But it's hard, and using the absolute/relative ambiguity isn't a solution but a nasty hack. I don't have a solution either except copying code (which IMO is a *fine* solution in most cases as long as copyright issues don't prevent you). -- --Guido van Rossum (home page: http://www.python.org/~guido/)

On 11/1/05, Phillip J. Eby <pje@telecommunity.com> wrote:
You should just bite the bullet and make a privatized copy of the package(s) on which you depend part of your own distributions.
I agree it would be nice if we could do something about deep version issues. But it's hard, and using the absolute/relative ambiguity isn't a solution but a nasty hack. I don't have a solution either except copying code (which IMO is a *fine* solution in most cases as long as copyright issues don't prevent you). -- --Guido van Rossum (home page: http://www.python.org/~guido/)
participants (3)
-
Guido van Rossum
-
Neal Norwitz
-
Phillip J. Eby