Thomas, I don't care about unset either, but setting PYTHONHOME=
doesn't work -- it actually prevents the extensions from being built
properly.  So I'm changing the "sharedmods" target to what I presume
it was before:
	PYTHONPATH= ./$(PYTHON) $(srcdir)/setup.py build
diff --git a/Makefile.pre.in b/Makefile.pre.in
index a6448a9..dc63519 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -286,8 +286,7 @@
 
 # Build the shared modules
 sharedmods: $(PYTHON)
-	PYTHONPATH= PYTHONHOME= PYTHONSTARTUP= \
-		./$(PYTHON) $(srcdir)/setup.py build
+	PYTHONPATH= ./$(PYTHON) $(srcdir)/setup.py build
 
 # buildno should really depend on something like LIBRARY_SRC
 buildno: $(PARSER_OBJS) \