[issue22322] Zip files created by `git archive` result in a SyntaxError (due to comment?)
Peter Wu
report at bugs.python.org
Mon Sep 1 17:11:58 CEST 2014
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 <report at bugs.python.org>
<http://bugs.python.org/issue22322>
_______________________________________
More information about the Python-bugs-list
mailing list