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

M.-A. Lemburg mal@lemburg.com
Thu, 12 Dec 2002 17:27:42 +0100


Martin v. L=F6wis wrote:
>>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.
>=20
>=20
> There is a third option:
>=20
> 3. Document that the proper build procedure is "configure;make;make
> install"

That's what I did. It still fails: 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'm +1 on option 2.

> Actually, that is documented, so I'd vote "pilot error".
>=20
> That said, I'm always in favour of making more modules builtin again, a=
s
> this simplifies the build process and may slightly improve performance
> if the module is imported.

--=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/