Message236745
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) |
|
Date |
User |
Action |
Args |
2015-02-27 13:33:23 | paul.moore | set | recipients:
+ paul.moore, dholth, ethan.furman, Jim.Jewett, serhiy.storchaka, steve.dower |
2015-02-27 13:33:23 | paul.moore | set | messageid: <1425044003.82.0.0774563301554.issue23491@psf.upfronthosting.co.za> |
2015-02-27 13:33:23 | paul.moore | link | issue23491 messages |
2015-02-27 13:33:23 | paul.moore | create | |
|