xref: /OK3568_Linux_fs/buildroot/package/python-psycopg2/python-psycopg2.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1################################################################################
2#
3# python-psycopg2
4#
5################################################################################
6
7PYTHON_PSYCOPG2_VERSION = 2.9.1
8PYTHON_PSYCOPG2_SOURCE = psycopg2-$(PYTHON_PSYCOPG2_VERSION).tar.gz
9PYTHON_PSYCOPG2_SITE = https://files.pythonhosted.org/packages/aa/8a/7c80e7e44fb1b4277e89bd9ca509aefdd4dd1b2c547c6f293afe9f7ffd04
10PYTHON_PSYCOPG2_SETUP_TYPE = setuptools
11PYTHON_PSYCOPG2_LICENSE = LGPL-3.0+
12PYTHON_PSYCOPG2_LICENSE_FILES = LICENSE
13PYTHON_PSYCOPG2_DEPENDENCIES = postgresql
14# Force psycopg2 to use the Buildroot provided postgresql version
15# instead of the one from the host machine
16PYTHON_PSYCOPG2_BUILD_OPTS = build_ext --pg-config=$(STAGING_DIR)/usr/bin/pg_config
17PYTHON_PSYCOPG2_INSTALL_TARGET_OPTS = build_ext --pg-config=$(STAGING_DIR)/usr/bin/pg_config
18
19$(eval $(python-package))
20