Skip to content

Remove duplicate definition of write_record_file #57407

Closed

Description

@merwok
BPO 13198
Nosy @vsajip, @tarekziade, @merwok, @asvetlov
Files
  • remove-duplicate-write_record_file.diff
  • 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:

    assignee = 'https://github.com/merwok'
    closed_at = <Date 2014-03-12.09:41:37.139>
    created_at = <Date 2011-10-17.13:12:33.949>
    labels = ['easy']
    title = 'Remove duplicate definition of write_record_file'
    updated_at = <Date 2014-03-12.09:41:37.138>
    user = 'https://github.com/merwok'

    bugs.python.org fields:

    activity = <Date 2014-03-12.09:41:37.138>
    actor = 'eric.araujo'
    assignee = 'eric.araujo'
    closed = True
    closed_date = <Date 2014-03-12.09:41:37.139>
    closer = 'eric.araujo'
    components = ['Distutils2']
    creation = <Date 2011-10-17.13:12:33.949>
    creator = 'eric.araujo'
    dependencies = []
    files = ['24494']
    hgrepos = []
    issue_num = 13198
    keywords = ['patch', 'easy', 'needs review']
    message_count = 13.0
    messages = ['145687', '147508', '153012', '153077', '153104', '153186', '153214', '153340', '153363', '178248', '179342', '179542', '213231']
    nosy_count = 5.0
    nosy_names = ['vinay.sajip', 'tarek', 'eric.araujo', 'asvetlov', 'alexis']
    pr_nums = []
    priority = 'normal'
    resolution = 'out of date'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue13198'
    versions = ['3rd party']

    Activity

    1. merwok commented on Oct 17, 2011

      @merwok
      MemberAuthor

      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.

    2. self-assigned this
      on Oct 17, 2011
    3. merwok commented on Nov 12, 2011

      @merwok
      MemberAuthor

      Here’s the patch produced by Mike and I so far.

    4. merwok commented on Feb 10, 2012

      @merwok
      MemberAuthor

      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.

    5. mikehoy commented on Feb 10, 2012

      mikehoymannequin
      Mannequin

      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\>


    6. merwok commented on Feb 11, 2012

      @merwok
      MemberAuthor

      OK. Thanks for your help!

    7. merwok commented on Feb 12, 2012

      @merwok
      MemberAuthor

      Patch attached. Adding people from bpo-13175 for review/testing on Windows.

    8. pfmoore commented on Feb 12, 2012

      @pfmoore
      Member

      Produces RECORD files with CR-CR-LF line endings (see bpo-13175). 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 :-)

    9. merwok commented on Feb 14, 2012

      @merwok
      MemberAuthor

      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?

    10. pfmoore commented on Feb 14, 2012

      @pfmoore
      Member

      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

    11. asvetlov commented on Dec 26, 2012

      @asvetlov
      Contributor

      Close as out of date. Packaging has been removed from stdlib.

    12. merwok commented on Jan 8, 2013

      @merwok
      MemberAuthor

      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.

    13. reopened this on Jan 8, 2013
    14. asvetlov commented on Jan 10, 2013

      @asvetlov
      Contributor

      Eric, if you want to keep distutils2 issues on the tracker for a while — I'm ok with that.

    15. merwok commented on Mar 12, 2014

      @merwok
      MemberAuthor

      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.

    16. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions