CVS configure failure

Started by Bruce Momjianover 21 years ago10 messageshackers
Jump to latest
#1Bruce Momjian
bruce@momjian.us

I get this failure on current CVS running configure --with-python:

checking for python... /usr/local/bin/python
checking for Python distutils module... no
configure: error: distutils module not found
gmake: *** [config.status] Error 1

I have python 1.5(1.5.2?).

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#2Peter Eisentraut
peter_e@gmx.net
In reply to: Bruce Momjian (#1)
Re: CVS configure failure

Bruce Momjian wrote:

I get this failure on current CVS running configure --with-python:

checking for python... /usr/local/bin/python
checking for Python distutils module... no
configure: error: distutils module not found
gmake: *** [config.status] Error 1

What part of the error message is giving you trouble? :)

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

#3Gaetano Mendola
mendola@bigfoot.com
In reply to: Bruce Momjian (#1)
Re: CVS configure failure

Bruce Momjian wrote:

I get this failure on current CVS running configure --with-python:

checking for python... /usr/local/bin/python
checking for Python distutils module... no
configure: error: distutils module not found
gmake: *** [config.status] Error 1

I have python 1.5(1.5.2?).

This is the check that I suggest to add recently :-(
See the thread "x86_64 configure problem" on hackers

You need to install the distutils, and how I wrote in that thread, it's
not clear that that module is installed by default when you install
python.

Regards
Gaetano Mendola

#4Gaetano Mendola
mendola@bigfoot.com
In reply to: Bruce Momjian (#1)
Re: CVS configure failure

Bruce Momjian wrote:

I get this failure on current CVS running configure --with-python:

checking for python... /usr/local/bin/python
checking for Python distutils module... no
configure: error: distutils module not found
gmake: *** [config.status] Error 1

I have python 1.5(1.5.2?).

This is the check that I suggest to add recently :-(
See the thread "x86_64 configure problem" on hackers

You need to install the distutils, and how I wrote in that thread, it's
not clear that that module is installed by default when you install
python.

Regards
Gaetano Mendola

#5Bruce Momjian
bruce@momjian.us
In reply to: Gaetano Mendola (#4)
Re: CVS configure failure

Gaetano Mendola wrote:

Bruce Momjian wrote:

I get this failure on current CVS running configure --with-python:

checking for python... /usr/local/bin/python
checking for Python distutils module... no
configure: error: distutils module not found
gmake: *** [config.status] Error 1

I have python 1.5(1.5.2?).

This is the check that I suggest to add recently :-(
See the thread "x86_64 configure problem" on hackers

You need to install the distutils, and how I wrote in that thread, it's
not clear that that module is installed by default when you install
python.

So distutils is now required to build python? If that is intended, I
will just skip building python. I didn't realize we had new
requirements for python, but that is fine.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
#6Joe Conway
mail@joeconway.com
In reply to: Bruce Momjian (#5)
Re: CVS configure failure

Bruce Momjian wrote:

So distutils is now required to build python? If that is intended, I
will just skip building python. I didn't realize we had new
requirements for python, but that is fine.

Yes, the python docs imply that it is a reasonable expectation. Here's a
snippet from the thread a week or two ago:

Joe Conway wrote:

What version of python comes with RH2.1?

1.5.2

In any case, the online documentation for python suggests that it
is reasonable to expect that distutils is already installed (by
default for python >= 1.6, and by the user for python 1.5.2). See:
http://www.python.org/doc/2.2.3/dist/intro.html

If there are no other objections, I'll commit the attached in about
24 hours.

And at the reference URL is this:

"This document only covers using the Distutils to distribute your Python
modules. Using the Distutils does not tie you to Python 1.6, though: the
Distutils work just fine with Python 1.5.2, and it is reasonable (and
expected to become commonplace) to expect users of Python 1.5.2 to
download and install the Distutils separately before they can install
your modules. Python 1.6 (or later) users, of course, won't have to add
anything to their Python installation in order to use the Distutils to
install third-party modules."

Without distutils there is no way to find the config Makefile on 64 bit
architectures.

Joe

#7Tom Lane
tgl@sss.pgh.pa.us
In reply to: Joe Conway (#6)
Re: CVS configure failure

Joe Conway <mail@joeconway.com> writes:

Bruce Momjian wrote:

So distutils is now required to build python?

Yes, the python docs imply that it is a reasonable expectation.

FWIW, CVS tip still builds --with-python on my pretty-nearly-stock
RHL 8.0 box, so distutils was standard a couple years ago ...

regards, tom lane

#8Neil Conway
neilc@samurai.com
In reply to: Bruce Momjian (#5)
Re: CVS configure failure

On Wed, 2004-09-22 at 00:16, Bruce Momjian wrote:

So distutils is now required to build python? If that is intended, I
will just skip building python. I didn't realize we had new
requirements for python, but that is fine.

Should this be documented in the installation instructions?

-Neil

#9James William Pye
flaw@rhid.com
In reply to: Neil Conway (#8)
Re: CVS configure failure

On Tue, 2004-09-21 at 17:13, Neil Conway wrote:

Should this be documented in the installation instructions?

I think so.

I figure just a mention should be enough.
(Also add some productname tags around 'Python'.)

--
Regards,
James William Pye

Attachments:

pginstal.difftext/x-patch; charset=UTF-8; name=pginstal.diffDownload+6-6
#10Neil Conway
neilc@samurai.com
In reply to: James William Pye (#9)
Re: CVS configure failure

On Wed, 2004-09-22 at 15:29, James William Pye wrote:

I think so.

Patch applied with some additional fixes -- the patch as I applied it is
attached. Thanks!

-Neil

Attachments:

python-install-docs-1.patchtext/x-patch; charset=iso-8859-1; name=python-install-docs-1.patchDownload+41-41