mirror of
https://github.com/python/cpython.git
synced 2025-09-28 19:25:27 +00:00
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)
This commit is contained in:
parent
3081421d9e
commit
0eb24d9328
1 changed files with 2 additions and 2 deletions
|
@ -281,7 +281,7 @@ platform: $(PYTHON)
|
||||||
|
|
||||||
# Build the shared modules
|
# Build the shared modules
|
||||||
sharedmods: $(PYTHON)
|
sharedmods: $(PYTHON)
|
||||||
./$(PYTHON) $(srcdir)/setup.py build
|
PYTHONPATH= ./$(PYTHON) $(srcdir)/setup.py build
|
||||||
|
|
||||||
# buildno should really depend on something like LIBRARY_SRC
|
# buildno should really depend on something like LIBRARY_SRC
|
||||||
buildno: $(PARSER_OBJS) \
|
buildno: $(PARSER_OBJS) \
|
||||||
|
@ -689,7 +689,7 @@ libainstall: all
|
||||||
# Install the dynamically loadable modules
|
# Install the dynamically loadable modules
|
||||||
# This goes into $(exec_prefix)
|
# This goes into $(exec_prefix)
|
||||||
sharedinstall:
|
sharedinstall:
|
||||||
./python$(EXEEXT) $(srcdir)/setup.py install \
|
PYTHONPATH= ./python$(EXEEXT) $(srcdir)/setup.py install \
|
||||||
--install-platlib=$(DESTSHARED)
|
--install-platlib=$(DESTSHARED)
|
||||||
|
|
||||||
# Build the toplevel Makefile
|
# Build the toplevel Makefile
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue