[issue10932] distutils.core.setup - data_files misbehaviour ?
Prashant Kumar
report at bugs.python.org
Sun Apr 17 20:03:26 CEST 2011
Prashant Kumar <contactprashantat at gmail.com> added the comment:
I made changes in manifest.py which can be viewed here: https://bitbucket.org/pkumar/distutils2_bugs/changeset/111c1253ea7a
I'm not sure if I should modify test_command_sdist.py for the failing tests of manifest contents(since it is mentioned not to edit).
msg133834:
>> I don’t understand this comment: “Though, inside zip-file we get files without its parent dir, nothing changes in manifest file(should it change?)
code from test_command_sdist.py:
zip_file = zipfile.ZipFile(join(dist_folder, 'fake-1.0.zip'))
try:
content = zip_file.namelist()
finally:
zip_file.close()
after the change as mentioned in msg127191, the value of content changed, i.e. 'fake-1.0/some/other_file.txt' was changed to 'fake-1.0/other_file.txt'.But modifications were still required for the manifest. Above change should serve the purpose, I guess.
----------
hgrepos: +20
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10932>
_______________________________________
More information about the Python-bugs-list
mailing list