Skip to content

Commit

Permalink
MAINT use the correct version of Python in the cpython makefile
Browse files Browse the repository at this point in the history
Sometimes outside of a virtual environment `python` still refers to
Python 2.7 which makes the build fail here.
  • Loading branch information
hoodmane committed Sep 23, 2023
1 parent 13d5e0d commit ef84d2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpython/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ $(INSTALL)/lib/$(LIB): $(BUILD)/$(LIB)
_PYTHON_SYSCONFIGDATA_NAME=$(SYSCONFIG_NAME) _PYTHON_PROJECT_BASE=$(BUILD) $(HOSTPYTHON) -m sysconfig --generate-posix-vars

$(eval PYBUILDDIR=`cat pybuilddir.txt`)
PYTHONPATH=$(PYBUILDDIR) python adjust_sysconfig.py
PYTHONPATH=$(PYBUILDDIR) python$(PYMAJOR).$(PYMINOR) adjust_sysconfig.py
cp $(PYBUILDDIR)/$(SYSCONFIG_NAME).py $(INSTALL)/lib/python$(PYMAJOR).$(PYMINOR)/
mkdir -p $(SYSCONFIGDATA_DIR)
cp $(PYBUILDDIR)/$(SYSCONFIG_NAME).py $(SYSCONFIGDATA_DIR)
Expand Down

0 comments on commit ef84d2d

Please sign in to comment.