Merge pull request #2061 from commodo/python-psycopg2-fix
python-psycopg2: fix build
This commit is contained in:
commit
5351a1c740
1 changed files with 5 additions and 4 deletions
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=python-psycopg2
|
PKG_NAME:=python-psycopg2
|
||||||
PKG_VERSION:=2.6.1
|
PKG_VERSION:=2.6.1
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
PKG_MAINTAINER:=Dmitry Trefilov <the-alien@live.ru>
|
PKG_MAINTAINER:=Dmitry Trefilov <the-alien@live.ru>
|
||||||
PKG_LICENSE:=LGPL-3.0+
|
PKG_LICENSE:=LGPL-3.0+
|
||||||
PKG_LICENSE_FILES:=LICENSE
|
PKG_LICENSE_FILES:=LICENSE
|
||||||
|
@ -39,9 +39,10 @@ define Package/python-psycopg2/description
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/Compile
|
define Build/Compile
|
||||||
$(call Build/Compile/PyMod,.,build_py)
|
# The PATH var is required so that psycopg2's setup.py script finds pg_config
|
||||||
$(call Build/Compile/PyMod,,build_ext --pg-config="$(STAGING_DIR)/usr/bin/pg_config")
|
$(call Build/Compile/PyMod,., \
|
||||||
$(call Build/Compile/PyMod,.,install --prefix=/usr --root=$(PKG_INSTALL_DIR))
|
install --prefix=/usr --root=$(PKG_INSTALL_DIR), \
|
||||||
|
PATH=$(STAGING_DIR)/usr/bin:$(PATH))
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/python-psycopg2/install
|
define Package/python-psycopg2/install
|
||||||
|
|
Loading…
Reference in a new issue