[Python-Dev] make install fails with current Python CVS

M.-A. Lemburg mal@lemburg.com
Thu, 12 Dec 2002 18:32:41 +0100


M.-A. Lemburg wrote:
> Martin v. L=F6wis wrote:
>=20
>>> Ok, I've narrowed down the problem to the missing shared mods
>>> struct and _codecs. It seems that the distutils setup.py is
>>> not run before installing and compiling the .py files.
>>>
>>> There are two options:
>>> 1. tweak the Makefile targets
>>> 2. make struct and _codecs built-in modules
>>>
>>> I think the second option is more attractive.
>>
>> There is a third option:
>>
>> 3. Document that the proper build procedure is "configure;make;make
>> install"
>=20
> That's what I did. It still fails:=20

Ah, didn't see the separate "make;" in there. You're right, Martin,
I ran "./configure; make install" using a script. The analysis
below applies to this way of invoking the make process.

> the reason is that shared mods
> are built *after* python itself is built and since struct and
> _codecs are shared mods, compiling the .py files doesn't work
> since that's done when building the python target (before building
> the shared mods).

I'll check in a fix which makes _codecs a builtin and removes the
struct dependency from codecs.py.

--=20
Marc-Andre Lemburg
CEO eGenix.com Software GmbH
_______________________________________________________________________
eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,...
Python Consulting:                               http://www.egenix.com/
Python Software:                    http://www.egenix.com/files/python/