round-trip from egg to code and back to egg
Bruno Desthuilliers
bdesth.quelquechose at free.quelquepart.fr
Mon Aug 20 13:25:19 EDT 2007
Catherine a écrit :
> I'd like to use Scriptaculous with TurboGears on Python 2.5.
> Unfortunately, Scriptaculous is currently in the Cheese Shop only as a
> Python 2.4 egg.
>
> If I had the setup.py that was used to generate the egg, I think it
> would be really easy to generate a new Python 2.5 egg from the
> existing 2.4 egg. In fact, it would be gruntwork we could easily
> offload from the package authors.
>
> The trouble is, an egg doesn't include setup.py. Is there any direct
> way to round-trip a Python package from egg to installed code and into
> a new egg?
>
> I might be able to mine enough information from the files
> in EGG-INFO to reconstruct setup.py - reverse-engineering - but that
> seems unnervingly like work.
>
> Three possibilities come to mind -
>
> 1. I'm missing something simple
Probably. I'd say, something like unzip <your-egg-file>.egg !-)
More information about the Python-list
mailing list