Skip to content

Commit 9ddcc1c

Browse files
committed
added quotes when setting path so as to not choke on paths with spaces
1 parent 9a1498b commit 9ddcc1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ ifeq ($2,macOS)
286286
--without-doc-strings --enable-ipv6 --without-ensurepip \
287287
$$(PYTHON_CONFIGURE-$2)
288288
else
289-
cd $$(PYTHON_DIR-$1) && PATH=$(PROJECT_DIR)/build/macOS/python/bin:$(PATH) ./configure \
289+
cd $$(PYTHON_DIR-$1) && PATH="$(PROJECT_DIR)/build/macOS/python/bin:$(PATH)" ./configure \
290290
CC="$$(CC-$1)" LD="$$(CC-$1)" \
291291
--host=$$(MACHINE_DETAILED-$1)-apple-$(shell echo $2 | tr '[:upper:]' '[:lower:]') \
292292
--build=x86_64-apple-darwin$(shell uname -r) \
@@ -299,7 +299,7 @@ endif
299299
# Build Python
300300
$$(PYTHON_DIR-$1)/dist/lib/libpython$(PYTHON_VER)m.a: build/$2/Support/OpenSSL build/$2/Support/BZip2 build/$2/Support/XZ $$(PYTHON_DIR-$1)/Makefile
301301
# Build target Python
302-
cd $$(PYTHON_DIR-$1) && PATH=$(PROJECT_DIR)/$(PYTHON_DIR-macOS)/dist/bin:$(PATH) make all install
302+
cd $$(PYTHON_DIR-$1) && PATH="$(PROJECT_DIR)/$(PYTHON_DIR-macOS)/dist/bin:$(PATH)" make all install
303303

304304
build/$2/$$(pyconfig.h-$1): $$(PYTHON_DIR-$1)/dist/include/python$(PYTHON_VER)m/pyconfig.h
305305
cp -f $$^ $$@

0 commit comments

Comments
 (0)