summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2001-02-17 05:33:50 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2001-02-17 05:33:50 (GMT)
commit0eb24d9328ae71d2954ee05b1f43b250c055086b (patch)
treea85b35a21378255747b6ac993e805dfe1e03ce8f
parent3081421d9e7456f4c3078ec40ee445751c5c5a07 (diff)
downloadcpython-0eb24d9328ae71d2954ee05b1f43b250c055086b.zip
cpython-0eb24d9328ae71d2954ee05b1f43b250c055086b.tar.gz
cpython-0eb24d9328ae71d2954ee05b1f43b250c055086b.tar.bz2
Set PYTHONPATH when running setup.py in order to override any ambient
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)
-rw-r--r--Makefile.pre.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in
index c1279f4..c08c475 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -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