aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-04-05 17:38:26 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-04-05 17:38:26 +0200
commit6251ccf03254f832c6e6ba0203ad46c18f217ca9 (patch)
treeb66063487b2ce7ec813df4c91e1538fdfccc1e5a
parent23dfff36f062944e61254dd1426e256cc2d46aee (diff)
downloadbuildroot-6251ccf03254f832c6e6ba0203ad46c18f217ca9.tar.gz
buildroot-6251ccf03254f832c6e6ba0203ad46c18f217ca9.tar.bz2
python3: fix the value of PYTHON3_PATH
The PYTHON3_PATH was incorrectly referencing the site-packages of Python 2 packages, due to the usage of PYTHON_VERSION_MAJOR, instead of PYTHON3_VERSION_MAJOR. This commit fixes that by using the correct variable, which in our testing fixed the build of python-pyasn against python3. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/python3/python3.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/python3/python3.mk b/package/python3/python3.mk
index 542f2c954a..8c5024ba9f 100644
--- a/package/python3/python3.mk
+++ b/package/python3/python3.mk
@@ -169,7 +169,7 @@ HOST_PYTHON3_POST_INSTALL_HOOKS += HOST_PYTHON3_INSTALL_SYMLINK
endif
# Provided to other packages
-PYTHON3_PATH = $(TARGET_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)/sysconfigdata/:$(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages/
+PYTHON3_PATH = $(TARGET_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)/sysconfigdata/:$(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION3_MAJOR)/site-packages/
$(eval $(autotools-package))
$(eval $(host-autotools-package))