This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author paul.moore
Recipients Jim.Jewett, dholth, ethan.furman, paul.moore, serhiy.storchaka, steve.dower
Date 2015-02-27.13:33:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1425044003.82.0.0774563301554.issue23491@psf.upfronthosting.co.za>
In-reply-to
Content
I'm -1 on this. The whole point of having a .pyz extension is so that you don't need to use an extension that's for files containing text to hold binary data.

If you want to do this, use zipapp and specify no interpreter line, then add the @python line yourself. Or just use a zip utility. Or build your own command line app. With the ability to supply an open file to create_archive, it's a 3-liner:

with open(dest_filename, 'wb') as f:
    f.write(b'@python -x %0 %*\n')
    zipapp.create_archive(source_dir, f)
History
Date User Action Args
2015-02-27 13:33:23paul.mooresetrecipients: + paul.moore, dholth, ethan.furman, Jim.Jewett, serhiy.storchaka, steve.dower
2015-02-27 13:33:23paul.mooresetmessageid: <1425044003.82.0.0774563301554.issue23491@psf.upfronthosting.co.za>
2015-02-27 13:33:23paul.moorelinkissue23491 messages
2015-02-27 13:33:23paul.moorecreate