python-lxml: override PyBuild/Compile & Py3Build/Compile rules
And depend on python-light only if python-lxml is selected. Same thing for python3-lxml. Otherwise, this builds both Python & Python3 intepreters. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
This commit is contained in:
parent
4333d1dcbf
commit
f9dddb6bb0
1 changed files with 4 additions and 4 deletions
|
@ -37,14 +37,14 @@ endef
|
||||||
define Package/python-lxml
|
define Package/python-lxml
|
||||||
$(call Package/python-lxml/Default)
|
$(call Package/python-lxml/Default)
|
||||||
TITLE:=python-lxml
|
TITLE:=python-lxml
|
||||||
DEPENDS+=+python-light +python-codecs
|
DEPENDS+=+PACKAGE_python-lxml:python-light +PACKAGE_python-lxml:python-codecs
|
||||||
VARIANT:=python
|
VARIANT:=python
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/python3-lxml
|
define Package/python3-lxml
|
||||||
$(call Package/python-lxml/Default)
|
$(call Package/python-lxml/Default)
|
||||||
TITLE:=python3-lxml
|
TITLE:=python3-lxml
|
||||||
DEPENDS+=+python3-light
|
DEPENDS+=+PACKAGE_python3-lxml:python3-light
|
||||||
VARIANT:=python3
|
VARIANT:=python3
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@ endef
|
||||||
|
|
||||||
TARGET_LDFLAGS += -lxml2 -lxslt -lexslt
|
TARGET_LDFLAGS += -lxml2 -lxslt -lexslt
|
||||||
|
|
||||||
define PyBuild/Compile/Default
|
define PyBuild/Compile
|
||||||
$(call Build/Compile/PyMod,, \
|
$(call Build/Compile/PyMod,, \
|
||||||
install --prefix="/usr" --root="$(PKG_INSTALL_DIR)" \
|
install --prefix="/usr" --root="$(PKG_INSTALL_DIR)" \
|
||||||
--static \
|
--static \
|
||||||
|
@ -74,7 +74,7 @@ define PyBuild/Compile/Default
|
||||||
)
|
)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Py3Build/Compile/Default
|
define Py3Build/Compile
|
||||||
$(call Build/Compile/Py3Mod,, \
|
$(call Build/Compile/Py3Mod,, \
|
||||||
install --prefix="/usr" --root="$(PKG_INSTALL_DIR)" \
|
install --prefix="/usr" --root="$(PKG_INSTALL_DIR)" \
|
||||||
--static \
|
--static \
|
||||||
|
|
Loading…
Reference in a new issue