Re: generating .zip including __main__.py file in top root using distutils

2011-02-15 Thread alain.spineux
I answer myself to put my question on top of the list again. On Feb 12, 7:47 pm, aspineux wrote: > Python 2.6 can run a zip file, searching for __main__.py in the root > of the zip archive and running it. > How can I create such an archive using distutils (and not > setuptools) ? > > If I use >

generating .zip including __main__.py file in top root using distutils

2011-02-12 Thread aspineux
Python 2.6 can run a zip file, searching for __main__.py in the root of the zip archive and running it. How can I create such an archive using distutils (and not setuptools) ? If I use # python setup.py bdist --format=zip I get a "dumb" zip file with a deep tree structure from "/" and I cannot put