Browse Source

python3: add python3 symlink to python exec as per PEP394

Alexandru Ardelean 10 years ago
parent
commit
a964feec68
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      lang/python3/Makefile

+ 1
- 2
lang/python3/Makefile View File

@@ -99,8 +99,6 @@ endif
99 99
 define Build/Configure
100 100
 	-$(MAKE) -C $(PKG_BUILD_DIR) distclean
101 101
 	(cd $(PKG_BUILD_DIR); autoreconf --force --install || exit 0)
102
-	# The python executable needs to stay in the rootdir since its location will
103
-	# be used to compute the path of the config files.
104 102
 	$(CP) ./files/config.site $(PKG_BUILD_DIR)
105 103
 	$(call Build/Configure/Default, \
106 104
 		--sysconfdir=/etc \
@@ -158,6 +156,7 @@ endef
158 156
 define Py3Package/python3/install
159 157
 	# Adding the lib-dynload folder (even just empty) suppresses 2 warnings when starting Python
160 158
 	$(INSTALL_DIR) $(1)/usr/lib/python$(PYTHON_VERSION)/lib-dynload/
159
+	$(LN) python$(PYTHON_VERSION) $(1)/usr/bin/python3
161 160
 endef
162 161
 
163 162
 define Host/Configure