summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--package/python/python.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/package/python/python.mk b/package/python/python.mk
index 919c932ac..af8069c0c 100644
--- a/package/python/python.mk
+++ b/package/python/python.mk
@@ -132,7 +132,8 @@ endif
PYTHON_MODULES_LIB=$(STAGING_DIR)/lib \
PYTHON_DISABLE_MODULES="$(BR2_PYTHON_DISABLED_MODULES)" \
HOSTPYTHON=./hostpython HOSTPGEN=./Parser/hostpgen && \
- rm $(TARGET_DIR)/usr/bin/python?.? && \
+ rm $(TARGET_DIR)/usr/bin/python && \
+ ln -s python$(PYTHON_VERSION_SHORT) $(TARGET_DIR)/usr/bin/python && \
rm $(TARGET_DIR)/usr/bin/idle && \
rm $(TARGET_DIR)/usr/bin/pydoc && \
find $(TARGET_DIR)/usr/lib/ -name '*.pyo' -exec rm {} \; && \