Issue 13198: Remove duplicate definition of write_record_file (original) (raw)

Created on 2011-10-17 13:12 by eric.araujo, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
remove-duplicate-write_record_file.diff eric.araujo,2012-02-12 07:07 review
Messages (13)
msg145687 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2011-10-17 13:12
We have duplicate code to write a PEP 376 RECORD file in packaging.util and packaging.command.install_distinfo. The command should use the function from p7g.util. Tests would also be good: Currently, one function uses LF as end of line (change made by Tarek, so authoritative) but the other uses os.linesep.
msg147508 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2011-11-12 16:29
Here’s the patch produced by Mike and I so far.
msg153012 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2012-02-10 03:57
Mike, if you don’t have the time to finish this shortly, I will do it, as I need this fixed for another bug. Just let me know if you’d like to do it.
msg153077 - (view) Author: Mike Hoy (mikehoy) * Date: 2012-02-10 21:17
I am unable to work on this issue at this time. On Thu, Feb 9, 2012 at 8:57 PM, Éric Araujo <report@bugs.python.org> wrote: > > Éric Araujo <merwok@netwok.org> added the comment: > > Mike, if you don’t have the time to finish this shortly, I will do it, as > I need this fixed for another bug. Just let me know if you’d like to do it. > > ---------- > > _______________________________________ > Python tracker <report@bugs.python.org> > <http://bugs.python.org/issue13198> > _______________________________________ >
msg153104 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2012-02-11 05:45
OK. Thanks for your help!
msg153186 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2012-02-12 07:07
Patch attached. Adding people from #13175 for review/testing on Windows.
msg153214 - (view) Author: Paul Moore (paul.moore) * (Python committer) Date: 2012-02-12 18:31
Produces RECORD files with CR-CR-LF line endings (see ). This breaks pysetup remove. I can't tell if this patch is good otherwise - it's certainly no worse than the behaviour of the unpatched version, but that's not saying much :-)
msg153340 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2012-02-14 15:37
Damn, bitten by the use of universal newlines! I guess I should split on a literal '\n' instead of calling splitlines. Could you make that change in your clone and tell me if it does the trick?
msg153363 - (view) Author: Paul Moore (paul.moore) * (Python committer) Date: 2012-02-14 19:20
> Damn, bitten by the use of universal newlines!  I guess I should split on a literal '\n' instead of calling splitlines.  Could you make that change in your clone and tell me if it does the trick? Not for a few days, but I'll check when I'm back home
msg178248 - (view) Author: Andrew Svetlov (asvetlov) * (Python committer) Date: 2012-12-26 20:13
Close as out of date. Packaging has been removed from stdlib.
msg179342 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2013-01-08 12:11
Please don’t; distutils2 still exists and is mutating into one or more projects where these bug reports will be useful. If it bothers Python core devs to have the bugs in this tracker, they will be migrated, but for the moment please leave them open so they can be found.
msg179542 - (view) Author: Andrew Svetlov (asvetlov) * (Python committer) Date: 2013-01-10 13:34
Eric, if you want to keep distutils2 issues on the tracker for a while — I'm ok with that.
msg213231 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2014-03-12 09:41
wheel/distlib/pip don’t have the same code, and if they had the same issue it would probably be found by a user. Closing.
History
Date User Action Args
2022-04-11 14:57:22 admin set github: 57407
2014-03-12 09:41:37 eric.araujo set status: open -> closedresolution: out of datemessages: + stage: patch review -> resolved
2013-01-10 13:34:48 asvetlov set messages: +
2013-01-08 12:11:42 eric.araujo set status: closed -> openversions: - Python 3.3messages: + resolution: out of date -> (no value)stage: patch review
2012-12-26 20:13:10 asvetlov set status: open -> closednosy: + asvetlovmessages: + resolution: out of datestage: patch review -> (no value)
2012-10-21 21:06:29 paul.moore set nosy: - paul.moore
2012-10-21 20:33:03 mikehoy set nosy: - mikehoy
2012-02-14 19:20:22 paul.moore set messages: +
2012-02-14 15:37:41 eric.araujo set messages: +
2012-02-12 18:31:33 paul.moore set messages: +
2012-02-12 07:07:14 eric.araujo set files: + remove-duplicate-write_record_file.diffnosy: + paul.moore, vinay.sajip, tarekmessages: + keywords: + needs reviewstage: test needed -> patch review
2012-02-12 04:42:53 eric.araujo set files: - remove-duplicate-write_record_file.diff
2012-02-11 05:45:04 eric.araujo set messages: +
2012-02-10 21:17:45 mikehoy set messages: +
2012-02-10 03:57:29 eric.araujo set messages: +
2011-11-12 16:29:27 eric.araujo set files: + remove-duplicate-write_record_file.diffkeywords: + patchmessages: +
2011-10-21 16:28:25 mikehoy set nosy: + mikehoy
2011-10-17 13:15:11 eric.araujo link issue13175 dependencies
2011-10-17 13:12:33 eric.araujo create