[Zope] - Installation Problem

Gregor Hoffleit flight@mathi.uni-heidelberg.de
Thu, 10 Dec 1998 15:25:09 +0100


On Thu, Dec 10, 1998 at 02:02:51AM +0300, pashah@spb.sitek.net wrote:
> Thank you a lot, Jim!
> this should be added in a FAQ (%
> ExtensionClass.h is included in python-extclass package.
> soo if Zope is to be installed on a Debian box, this package should be
> removed.
> 
> On Wed, Dec 09, 1998 at 08:57:27AM -0500, Jim Fulton wrote:
> > Have you, by any chance, installed ExtensionClass 1.0
> > in the past and copied the ExtensionClass.h file to the Python include
> > directories?

You could also upgrade to the python-extclass package from slink
(slink is the not yet released Debian 2.1), which is
python-extclass_1.2-1.

But IMHO, this problem really reveals an annoyance in Python's
makesetup. makesetup puts the global include directories "$(INCLUDEPY)
$(EXECINCLUDEPY)" in front of the directories defined by the module in
Setup. Therefore global (potentially older) header files are preferred
over the ones set by the module, which makes it hard to compile new
versions of modules when the old versions are installed. AFAIK, the
other way around is common practice for most other software.

This patch to makesetup would be an potential fix for this problem,
though I don't know if it breaks anything else.

	Gregor


--- /usr/lib/python1.5/config/makesetup Mon Nov  2 19:33:03 1998
+++ makesetup   Thu Dec 10 15:09:19 1998
@@ -183,7 +183,7 @@
                        case $doconfig in
                        no)     cc="$cc \$(CCSHARED)";;
                        esac
-                       rule="$obj: $src; $cc \$(CFLAGS) $cpps -c $src"
+                       rule="$obj: $src; $cc $cpps \$(CFLAGS) -c $src"
                        echo "$rule" >>$rulesf
                done
                case $doconfig in