Skip to content
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

distutils and python 1.5.2 #41155

Closed
alberanid mannequin opened this issue Nov 9, 2004 · 4 comments
Closed

distutils and python 1.5.2 #41155

alberanid mannequin opened this issue Nov 9, 2004 · 4 comments
Labels
stdlib Python modules in the Lib dir

Comments

@alberanid
Copy link
Mannequin

alberanid mannequin commented Nov 9, 2004

BPO 1063059
Nosy @loewis
Files
  • distutils-cvs_py152-20041109.patch.gz: python1.5.2 compatible
  • 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 = None
    closed_at = <Date 2004-11-10.22:24:37.000>
    created_at = <Date 2004-11-09.12:40:58.000>
    labels = ['library']
    title = 'distutils and python 1.5.2'
    updated_at = <Date 2004-11-10.22:24:37.000>
    user = 'https://bugs.python.org/alberanid'

    bugs.python.org fields:

    activity = <Date 2004-11-10.22:24:37.000>
    actor = 'loewis'
    assignee = 'none'
    closed = True
    closed_date = None
    closer = None
    components = ['Distutils']
    creation = <Date 2004-11-09.12:40:58.000>
    creator = 'alberanid'
    dependencies = []
    files = ['6360']
    hgrepos = []
    issue_num = 1063059
    keywords = ['patch']
    message_count = 4.0
    messages = ['47278', '47279', '47280', '47281']
    nosy_count = 3.0
    nosy_names = ['loewis', 'dairiki', 'alberanid']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue1063059'
    versions = []

    @alberanid
    Copy link
    Mannequin Author

    alberanid mannequin commented Nov 9, 2004

    distutils is supposed to be compatible with
    Python 1.5.2.

    In the attachment there's a small patch, against the
    current CVS, that fixes some incompatibilities.

    Changes:

    • install_lib.py: reference to os.extsep
    • build_py.py: unrolled three list comprehensions to loops
    • build_py.py: modified a funct(*seq) to apply(funct, seq)
    • bdist_rpm.py: string.replace() instead of
      strObject.replace()

    I've tried the patch with some _simple_ packages, and
    it seems to work correctly, but I've not a great knowledge
    of the distutils internals, so _double check everything_,
    especially the loops I've written in the place of list
    comprehensions.

    Known issues:

    • command/register.py could not be ported to 1.5.2
      because it uses modules like "urllib2"; for this reason
      running python1.5 ./setup.py --help-commands
      fails.
      I'm not sure what should be done (remove the
      "register" command if python version < 2.0?)

    @alberanid alberanid mannequin closed this as completed Nov 9, 2004
    @alberanid alberanid mannequin added the stdlib Python modules in the Lib dir label Nov 9, 2004
    @alberanid alberanid mannequin closed this as completed Nov 9, 2004
    @alberanid alberanid mannequin added the stdlib Python modules in the Lib dir label Nov 9, 2004
    @dairiki
    Copy link
    Mannequin

    dairiki mannequin commented Nov 9, 2004

    Logged In: YES
    user_id=45814

    I don't know how correct it is, but according to the
    following post,
    http://mail.python.org/pipermail/distutils-sig/2004-September/004168.html
    the compatibility target for the current distutils is Python
    2.1, not Python 1.5.

    (The install_lib.py reference to os.extsep needs to be
    fixing in any case, since os.extsep only exists in Pythons

    = 2.3.)

    Other References:

    http://sourceforge.net/tracker/index.php?func=detail&aid=1058960&group_id=5470&atid=105470
    http://sourceforge.net/tracker/index.php?func=detail&aid=1058937&group_id=5470&atid=105470

    @alberanid
    Copy link
    Mannequin Author

    alberanid mannequin commented Nov 9, 2004

    Logged In: YES
    user_id=170840

    Wooops, someone should remove all these "this file
    should be compatible with 1.5.2" notes. :-)

    Anyway (even if I'm glad that 1.5 is gone ;-) I'll
    make my patches available though my home page.

    Thank you for your note!

    @loewis
    Copy link
    Mannequin

    loewis mannequin commented Nov 10, 2004

    Logged In: YES
    user_id=21627

    This is now fixed in PEP-291 1.13, which lists 2.1 as the
    backwards compatibility target; the HEAD CVS has been
    updated accordingly.

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    stdlib Python modules in the Lib dir
    Projects
    None yet
    Development

    No branches or pull requests

    0 participants