distributing python software in jar like fashion

Colin J. Williams cjw at sympatico.ca
Sat Mar 17 16:26:55 EDT 2007


ce wrote:
> On Mar 15, 10:23 am, alf <ask at me> wrote:
>> Hi,
>>
>> I have a small app which consist of a few .py files. Is there any way to
>> distribute it in jar like fashion as a single file I can just run python
>> on. I obviously look for platform independent solution.
>>
>> Thx in advance, A.
> 
> You can import from zip achieves as PEP 273, but to execute in the
> same mechanism as the jar files, recently there is no way afaik.
You could treat the collection of files as a Python package.  You would 
then add an __init__.py file to your collection and, in that __init__.py 
arrange to initiate main.py (or  whatever you call your initiator program).

Colin W.
> 
> ce (pain n d'ass)
> 




More information about the Python-list mailing list