Browse Source

python3: add python3 symlink to python exec as per PEP394

lilik-openwrt-22.03
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
define Build/Configure define Build/Configure
-$(MAKE) -C $(PKG_BUILD_DIR) distclean -$(MAKE) -C $(PKG_BUILD_DIR) distclean
(cd $(PKG_BUILD_DIR); autoreconf --force --install || exit 0) (cd $(PKG_BUILD_DIR); autoreconf --force --install || exit 0)
# The python executable needs to stay in the rootdir since its location will
# be used to compute the path of the config files.
$(CP) ./files/config.site $(PKG_BUILD_DIR) $(CP) ./files/config.site $(PKG_BUILD_DIR)
$(call Build/Configure/Default, \ $(call Build/Configure/Default, \
--sysconfdir=/etc \ --sysconfdir=/etc \
@ -158,6 +156,7 @@ endef
define Py3Package/python3/install define Py3Package/python3/install
# Adding the lib-dynload folder (even just empty) suppresses 2 warnings when starting Python # Adding the lib-dynload folder (even just empty) suppresses 2 warnings when starting Python
$(INSTALL_DIR) $(1)/usr/lib/python$(PYTHON_VERSION)/lib-dynload/ $(INSTALL_DIR) $(1)/usr/lib/python$(PYTHON_VERSION)/lib-dynload/
$(LN) python$(PYTHON_VERSION) $(1)/usr/bin/python3
endef endef
define Host/Configure define Host/Configure


Loading…
Cancel
Save