This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: distutils and python 1.5.2
Type: Stage:
Components: Distutils Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: alberanid, dairiki, loewis
Priority: normal Keywords: patch

Created on 2004-11-09 12:40 by alberanid, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
distutils-cvs_py152-20041109.patch.gz alberanid, 2004-11-09 12:40 python1.5.2 compatible
Messages (4)
msg47278 - (view) Author: Davide Alberani (alberanid) Date: 2004-11-09 12:40
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?)
msg47279 - (view) Author: Geoffrey T. Dairiki (dairiki) Date: 2004-11-09 15:50
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
msg47280 - (view) Author: Davide Alberani (alberanid) Date: 2004-11-09 18:04
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!
msg47281 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2004-11-10 22:24
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.
History
Date User Action Args
2022-04-11 14:56:08adminsetgithub: 41155
2004-11-09 12:40:58alberanidcreate