Paul Moore added the comment:

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)

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue23491>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to