distutils + CVS Python prob. -- or is my installation broken?
I'm running into an odd problem with CVS Python: running build_ext Traceback (most recent call last): [ ... ] File "/usr/local/lib/python2.2/distutils/sysconfig.py", line 434, in get_config_vars func() File "/usr/local/lib/python2.2/distutils/sysconfig.py", line 322, in _init_posix raise DistutilsPlatformError(my_msg) distutils.errors.DistutilsPlatformError: invalid Python installation: unable to open /usr/local/lib/python2.3/config/Makefile (No such file or directory) This is my Python version, freshly checked out from CVS: Python 2.3a0 (#22, Feb 11 2002, 16:05:10) So distutils is looking for /usr/local/lib/python2.3, whereas the lib is still in /usr/local/lib/python2.2. Is my install broken or is distutils confused? Thanks, Just
I guess you have to reinstall Python. The version number changed from 2.2 to 2.3a0 a few days ago. And you have to call distutils with the Python 2.3a0 version, of course. Could also be that distutils doesn't like the "2.3a0" version number; I remember some problems with this in the 2.2 cycle. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH ______________________________________________________________________ Company & Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/
M.-A. Lemburg wrote:
I guess you have to reinstall Python.
That's what I did, (after I deleted the build dir and did "make clean", and ran ./configure again), but the Python lib still installs in /usr/lib/local/python2.2/.
The version number changed from 2.2 to 2.3a0 a few days ago. And you have to call distutils with the Python 2.3a0 version, of course.
Could also be that distutils doesn't like the "2.3a0" version number; I remember some problems with this in the 2.2 cycle.
Just
Just van Rossum wrote:
M.-A. Lemburg wrote:
I guess you have to reinstall Python.
That's what I did, (after I deleted the build dir and did "make clean", and ran ./configure again), but the Python lib still installs in /usr/lib/local/python2.2/.
Hmm, that's strange. Looking in configure, I see: """ # Set VERSION so we only need to edit in one place (i.e., here) VERSION=2.2 """ Someone obviously forgot to change the version number in configure. I'll fix that.
The version number changed from 2.2 to 2.3a0 a few days ago. And you have to call distutils with the Python 2.3a0 version, of course.
Could also be that distutils doesn't like the "2.3a0" version number; I remember some problems with this in the 2.2 cycle.
Just
-- Marc-Andre Lemburg CEO eGenix.com Software GmbH ______________________________________________________________________ Company & Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/
I think this is the result of a recent checkin that replaced "2.2+" with "2.3a0" in the version string. But: that fix was especially done for distutils, if I remember the checkin message corretly... On Monday, February 11, 2002, at 04:47 , Just van Rossum wrote:
I'm running into an odd problem with CVS Python:
running build_ext Traceback (most recent call last): [ ... ] File "/usr/local/lib/python2.2/distutils/sysconfig.py", line 434, in get_config_vars func() File "/usr/local/lib/python2.2/distutils/sysconfig.py", line 322, in _init_posix raise DistutilsPlatformError(my_msg) distutils.errors.DistutilsPlatformError: invalid Python installation: unable to open /usr/local/lib/python2.3/config/Makefile (No such file or directory)
This is my Python version, freshly checked out from CVS: Python 2.3a0 (#22, Feb 11 2002, 16:05:10)
So distutils is looking for /usr/local/lib/python2.3, whereas the lib is still in /usr/local/lib/python2.2. Is my install broken or is distutils confused?
Thanks,
Just
_______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig
--
- Jack Jansen
[Jack Jansen]
I think this is the result of a recent checkin that replaced "2.2+" with "2.3a0" in the version string.
Yes: yell at me if I screwed someone here!
But: that fix was especially done for distutils, if I remember the checkin message corretly...
Well, it was especially done for me <wink>, because it was impossible to use distutils to build concurrent 2.2 and 2.3 versions so long as CVS Python still had a version string starting with "2.2". BTW, distutils should define and use a common utility function to find the Python version, instead of slicing a hard-coded three characters off of sys.version in multiple places.
On Mon, Feb 11, 2002 at 04:47:38PM +0100, Just van Rossum wrote:
So distutils is looking for /usr/local/lib/python2.3, whereas the lib is still in /usr/local/lib/python2.2. Is my install broken or is distutils confused?
The configure.in has an outdated version number. Does the patch below help? (I'll go ahead and check it in no matter what.) --amk Index: configure.in =================================================================== RCS file: /cvsroot/python/python/dist/src/configure.in,v retrieving revision 1.289 diff -u -r1.289 configure.in --- configure.in 1 Jan 2002 18:41:32 -0000 1.289 +++ configure.in 11 Feb 2002 16:25:10 -0000 @@ -6,7 +6,7 @@ # Set VERSION so we only need to edit in one place (i.e., here) AC_SUBST(VERSION) -VERSION=2.2 +VERSION=2.3 # Arguments passed to configure. AC_SUBST(CONFIG_ARGS)
participants (5)
-
Andrew Kuchling
-
Jack Jansen
-
Just van Rossum
-
M.-A. Lemburg
-
Tim Peters