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 lekensteyn
Recipients lekensteyn
Date 2014-09-01.15:11:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1409584318.1.0.656275318382.issue22322@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-09-01 15:11:58lekensteynsetrecipients: + lekensteyn
2014-09-01 15:11:58lekensteynsetmessageid: <1409584318.1.0.656275318382.issue22322@psf.upfronthosting.co.za>
2014-09-01 15:11:58lekensteynlinkissue22322 messages
2014-09-01 15:11:57lekensteyncreate