text_combined: phillip j eby moetelecommunitycom 0540 pm 342008 0300 oleg broytmann wrote wed mar 05 2008 121404am 1000 nick coghlan wrote helpful answer zip spec allows additional data included file zip header common way using add zip file end elf executable still using normal zipfile utilities read data zip file section ignore executable part turns actually use trick prepend shebang line like usrbinenv python newline character thats thought whole zip file still binary file doesnt prevent shell reading first line text handing file python execution unix doesnt distinguish text binary files fact actually works also news issue linked previous post first brought attention really works amazing setuptools distributed way time httppypipythonorgpypisetuptoolscygwinmacosxlinuxother actually contains entire shell script prefix launches python invokes entry point inside egg new interpreter capability wouldve lot simpler implement _______________________________________________ pythondev mailing list zvlllneumpythonorg httpmailpythonorgmailmanlistinfopythondev unsubscribe httpmailpythonorgmailmanoptionspythondevpythondev40tangomucom tue 05 aug 2008 214622 0500 pythondev documentation ability execute zipfiles directories