Skip to content

Commit 9815b23

Browse files
committed
Fix python dependencies so that Python is not unpacked when not necessary.
1 parent ab5b1f2 commit 9815b23

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,9 @@ downloads/Python-$(PYTHON_VERSION).tgz:
9696
if [ ! -e downloads/Python-$(PYTHON_VERSION).tgz ]; then curl -L https://www.python.org/ftp/python/$(PYTHON_VERSION)/Python-$(PYTHON_VERSION).tgz > downloads/Python-$(PYTHON_VERSION).tgz; fi
9797

9898
PYTHON_DIR-host= build/Python-$(PYTHON_VERSION)-host
99+
PYTHON_HOST= $(PYTHON_DIR-host)/dist/bin/python$(PYTHON_VER)
99100

100-
Python-host: $(PYTHON_DIR-host)/dist/bin/python$(PYTHON_VER)
101+
Python-host: $(PYTHON_HOST)
101102

102103
# Unpack host Python
103104
$(PYTHON_DIR-host)/Makefile: downloads/Python-$(PYTHON_VERSION).tgz
@@ -167,7 +168,7 @@ $$(OPENSSL_DIR-$1)/libssl.a $$(OPENSSL_DIR-$1)/libcrypto.a: $$(OPENSSL_DIR-$1)/M
167168
make all
168169

169170
# Unpack Python
170-
$$(PYTHON_DIR-$1)/Makefile: downloads/Python-$(PYTHON_VERSION).tgz Python-host
171+
$$(PYTHON_DIR-$1)/Makefile: downloads/Python-$(PYTHON_VERSION).tgz $(PYTHON_HOST)
171172
# Unpack target Python
172173
mkdir -p $$(PYTHON_DIR-$1)
173174
tar zxf downloads/Python-$(PYTHON_VERSION).tgz --strip-components 1 -C $$(PYTHON_DIR-$1)

0 commit comments

Comments
 (0)