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
Permit to easily use distutils "--formats=tar,gztar,bztar" on all systems #46194
Comments
Currently creating tar, gztar, bztar source distributions using the I discussed this on distutils mailing list [1] and tried to fix this [1] http://mail.python.org/pipermail/distutils-sig/2008-January/008654.html |
On systems where the gzip or bz2 modules aren't installed, this patch Other than those two points, the patch looks great. |
Both things fixed. The new patch is in attachment. Just one thing: I tried a diff between a tar.gz file generated by |
I just did some tests and could not find any major difference. Which are BTW, in your patch the "dist" directory is not automatically created. |
diff utility doesn't provide any output since the compared files are dist (directory) -> archive_name.tar -> archive_name (directory) -> ...while the archive generated with the UNIX tar utility looks like this: archive_name.tar -> archive_name (directory) -> other subfiles
You're right. patch2.zip file in attachment fixes that. |
Hm, on my Linux box both files are more or less identical. Sorry, I |
I attach an improved patch1886.use.tarfile.module.diff that fixes all It also removes second call to compression program leaving that
This bug is illustrated and patched (not released yet as somebody needs |
Oh, my mistake - the bug with extra dir component in archive is in bpo-4750 Second shell call to compression program is removed only for the case |
about patch1886.use.tarfile.module.diff - the original tar don't support |
What are the systems where does this original tar still exist as a If there is no tarfile module on this systems and "tar" version is so But the true reason why I won't revert the part where command line "tar" |
Did I misunderstood something about -j -z -Z flags ? |
Roumen, could you be more specific about what are you trying to say with |
distutils in 2.7 and 3.1 use tarfile. |
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: