From: Alexandru Ardelean Date: Tue, 1 Dec 2015 16:16:49 +0000 (+0200) Subject: python-psycopg2: fix build X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=a4356a222bdd1a154da57c8b4f63d40fd6f850ef;p=openwrt-packages.git python-psycopg2: fix build Signed-off-by: Alexandru Ardelean --- diff --git a/lang/python-psycopg2/Makefile b/lang/python-psycopg2/Makefile index b55eb001e..5b0b6aa3b 100644 --- a/lang/python-psycopg2/Makefile +++ b/lang/python-psycopg2/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=python-psycopg2 PKG_VERSION:=2.6.1 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_MAINTAINER:=Dmitry Trefilov PKG_LICENSE:=LGPL-3.0+ PKG_LICENSE_FILES:=LICENSE @@ -39,9 +39,10 @@ define Package/python-psycopg2/description endef define Build/Compile - $(call Build/Compile/PyMod,.,build_py) - $(call Build/Compile/PyMod,,build_ext --pg-config="$(STAGING_DIR)/usr/bin/pg_config") - $(call Build/Compile/PyMod,.,install --prefix=/usr --root=$(PKG_INSTALL_DIR)) + # The PATH var is required so that psycopg2's setup.py script finds pg_config + $(call Build/Compile/PyMod,., \ + install --prefix=/usr --root=$(PKG_INSTALL_DIR), \ + PATH=$(STAGING_DIR)/usr/bin:$(PATH)) endef define Package/python-psycopg2/install