summaryrefslogtreecommitdiff
path: root/lang/python
diff options
context:
space:
mode:
authorAlexandru Ardelean <ardeleanalex@gmail.com>2017-07-04 23:02:56 +0300
committerAlexandru Ardelean <ardeleanalex@gmail.com>2017-07-07 18:14:22 +0300
commit316b41e856d424f2c8a84c13c92ec98fc52260e4 (patch)
treec8f5819c4f4c7e3488104dbcc058e6f2ac5c0797 /lang/python
parent2705d032bb61bb028575a86338b6d9f21230423b (diff)
pyodbc: fix python-pyodbc variant ; wasn't working
Python3 variant was working fine. Also add add PACKAGE_python-pyodbc conditional depend for python packages Otherwise, both Python & Python3 interpreters get built, even tho only one variant is selected. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Diffstat (limited to 'lang/python')
-rw-r--r--lang/python/pyodbc/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/lang/python/pyodbc/Makefile b/lang/python/pyodbc/Makefile
index c3feae87a..198dac71f 100644
--- a/lang/python/pyodbc/Makefile
+++ b/lang/python/pyodbc/Makefile
@@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=pyodbc
PKG_VERSION:=4.0.17
-PKG_RELEASE:=1
+PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://pypi.python.org/packages/ce/57/6b92aa5b3497dde6be55fd6fcb76c7db215ed1d56fde45c613add4a43095/
@@ -29,19 +29,22 @@ define Package/python-pyodbc/Default
CATEGORY:=Languages
SUBMENU:=Python
URL:=https://github.com/mkleehammer/pyodbc
+ DEPENDS:=+unixodbc +libstdcpp
endef
define Package/python-pyodbc
$(call Package/python-pyodbc/Default)
TITLE:=python-pyodbc
- DEPENDS:=+unixodbc +libstdcpp +python-light
+ DEPENDS+=+PACKAGE_python-pyodbc:python-light \
+ +PACKAGE_python-pyodbc:python-logging \
+ +PACKAGE_python-pyodbc:python-openssl
VARIANT:=python
endef
define Package/python3-pyodbc
$(call Package/python-pyodbc/Default)
TITLE:=python3-pyodbc
- DEPENDS:=+unixodbc +libstdcpp +python3-light
+ DEPENDS+=+PACKAGE_python3-pyodbc:python3-light
VARIANT:=python3
endef