]> granicus.if.org Git - python/commitdiff
Set PYTHONPATH when running setup.py in order to override any ambient
authorAndrew M. Kuchling <amk@amk.ca>
Sat, 17 Feb 2001 05:33:50 +0000 (05:33 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Sat, 17 Feb 2001 05:33:50 +0000 (05:33 +0000)
    value for it, as suggested in bug #129854.  This prevents an old
    PYTHONPATH confusing setup.py (say, if it results in Python finding
    an old version of the Distutils)

Makefile.pre.in

index c1279f47fe4142363a5458d1181da5e10f8cd2e0..c08c4756bb2363d098bf483ae21ce7f68027d2cb 100644 (file)
@@ -281,7 +281,7 @@ platform: $(PYTHON)
 
 # Build the shared modules
 sharedmods: $(PYTHON)
-       ./$(PYTHON) $(srcdir)/setup.py build
+       PYTHONPATH= ./$(PYTHON) $(srcdir)/setup.py build
 
 # buildno should really depend on something like LIBRARY_SRC
 buildno: $(PARSER_OBJS) \
@@ -689,7 +689,7 @@ libainstall:        all
 # Install the dynamically loadable modules
 # This goes into $(exec_prefix)
 sharedinstall:
-       ./python$(EXEEXT) $(srcdir)/setup.py install \
+       PYTHONPATH= ./python$(EXEEXT) $(srcdir)/setup.py install \
                --install-platlib=$(DESTSHARED)
 
 # Build the toplevel Makefile