mirror of
https://github.com/openwrt/packages.git
synced 2025-12-23 12:24:32 +04:00
python: use command instead of 'ln -sf'
This commit is contained in:
@@ -192,8 +192,8 @@ define Build/InstallDev
|
|||||||
$(STAGING_DIR_HOST)/bin/python$(PYTHON_VERSION) \
|
$(STAGING_DIR_HOST)/bin/python$(PYTHON_VERSION) \
|
||||||
$(1)/usr/bin/hostpython
|
$(1)/usr/bin/hostpython
|
||||||
(cd $(2)/bin; \
|
(cd $(2)/bin; \
|
||||||
ln -sf ../../usr/bin/hostpython python$(PYTHON_VERSION); \
|
$(LN) ../../usr/bin/hostpython python$(PYTHON_VERSION); \
|
||||||
ln -sf python$(PYTHON_VERSION) python)
|
$(LN) python$(PYTHON_VERSION) python)
|
||||||
|
|
||||||
$(CP) \
|
$(CP) \
|
||||||
$(STAGING_DIR_HOST)/bin/python$(PYTHON_VERSION)-config \
|
$(STAGING_DIR_HOST)/bin/python$(PYTHON_VERSION)-config \
|
||||||
@@ -201,7 +201,7 @@ define Build/InstallDev
|
|||||||
$(SED) 's,^#!.*,#!/usr/bin/env python$(PYTHON_VERSION),g' $(2)/bin/python$(PYTHON_VERSION)-config
|
$(SED) 's,^#!.*,#!/usr/bin/env python$(PYTHON_VERSION),g' $(2)/bin/python$(PYTHON_VERSION)-config
|
||||||
|
|
||||||
(cd $(2)/bin; \
|
(cd $(2)/bin; \
|
||||||
ln -sf python$(PYTHON_VERSION)-config python-config;)
|
$(LN) python$(PYTHON_VERSION)-config python-config;)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define PyPackage/python-full/filespec
|
define PyPackage/python-full/filespec
|
||||||
@@ -410,7 +410,7 @@ define PyPackage/python/filespec
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
define PyPackage/python/install
|
define PyPackage/python/install
|
||||||
ln -sf python$(PYTHON_VERSION) $(1)/usr/bin/python
|
$(LN) python$(PYTHON_VERSION) $(1)/usr/bin/python
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define PyPackage/python-doc/filespec
|
define PyPackage/python-doc/filespec
|
||||||
|
|||||||
Reference in New Issue
Block a user