holger krekel <hol...@merlinux.eu> writes: > >> spurred by this discussion I'm now creating a single file py.test script >> which includes the whole py library. This would allow people to drop >> that script in ~/bin/ and run it with any virtualenv they are using >> *without* installing the py lib first (well strictly speaking it is >> installed as a single file). What do you think about that? > > Interesting. Curious how you approach this. Encoding a zip-file into > the single-file? There is the matter of startup-time because > there would be no sensible '.pyc' files. But OTOH distributing a > single script is useful enough to make up for this penalty. > If you try this and have issues feel free to drop by #pylib on freenode > or mail here for help.
it uses base64-encoded zlib-compressed pickled source code and a custom importer object. I've created a git repo on github: http://github.com/schmir/standalone-py.test You'll have to run the following commands in order to checkout and create a single file: ,---- | git clone git://github.com/schmir/standalone-py.test.git | python standalone-py.test/generate-single-file.py | cp standalone-py.test/py.test ~/bin/ `---- or you could download the script from: http://schmir.github.com/standalone-py.test/py.test I'm also attaching a patch against py-1.1.1. Regards, - Ralf
patch
Description: Binary data
_______________________________________________ py-dev mailing list py-dev@codespeak.net http://codespeak.net/mailman/listinfo/py-dev