New submission from Peter Wu: Files created by `git archive` are not understood by the Python interpreter. This could be caused by the additional comment (for the commit hash) in the file.
echo 'print(1)' > __main__.py git init && git add __main__.py && git commit -m init git archive --format=zip HEAD > y.zip python y.zip Packing it with `zip x.zip __main__.py && python x.zip` works. ---------- components: Extension Modules messages: 226230 nosy: lekensteyn priority: normal severity: normal status: open title: Zip files created by `git archive` result in a SyntaxError (due to comment?) type: behavior versions: Python 2.7, Python 3.4 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22322> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com