New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
archiver should use zipfile before zip #37482
Comments
The distutils archiver should attempt zipfile.py usage The current code in archive_util.py attempts to spawn an This bites folks who have 'old' or non-conforming zip Have had a conversation about this with thellar, and he Since this is my first bug report, I am attaching a I tested the attached file for with and w/o verbose, and |
Logged In: YES amk, you've been doing a lot of distutils stuff recently. |
Logged In: YES I have a meta comment: Ollie, thanks for your report. It would |
Logged In: YES attaching diff between archive_util.orig.py and modified |
Logged In: YES Good idea! Here's an updated patch against the CVS trunk. I've rearranged the code a bit to reduce the depth of indentation, but it still seems to work. Ollie, can you please scan the patch and see if I introduced any problems with the rearrangement? If you don't spot anything wrong, I'll check it in. |
Logged In: YES A.M. Yes. I had considered this type of change as well.
nit pick 1) Consider renaming new variable 'zipfile' to nit pick 2) You left the comment lines below: 'except nit pick 3) I re-worded the raise DistutilsExecError message... |
Logged In: YES On 1), zipfile is either the module object or None; it's not a Boolean, On 2), good point; edited down to On 3), another good point; fixed. |
Logged In: YES Checked in to CVS as rev. 1.15 of archive_util.py; thanks for your contribution! |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: