mirror of
https://gitee.com/open-loongarch/buildroot-2024.08.git
synced 2026-10-27 21:47:12 +08:00
first commit: base 2024.08
Signed-off-by: maoxiaochuan <maoxiaochuan@loongson.cn>
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
################################################################################
|
||||
#
|
||||
# python-psycopg2
|
||||
#
|
||||
################################################################################
|
||||
|
||||
PYTHON_PSYCOPG2_VERSION = 2.9.9
|
||||
PYTHON_PSYCOPG2_SOURCE = psycopg2-$(PYTHON_PSYCOPG2_VERSION).tar.gz
|
||||
PYTHON_PSYCOPG2_SITE = https://files.pythonhosted.org/packages/c9/5e/dc6acaf46d78979d6b03458b7a1618a68e152a6776fce95daac5e0f0301b
|
||||
PYTHON_PSYCOPG2_SETUP_TYPE = setuptools
|
||||
PYTHON_PSYCOPG2_LICENSE = LGPL-3.0+
|
||||
PYTHON_PSYCOPG2_LICENSE_FILES = LICENSE
|
||||
PYTHON_PSYCOPG2_DEPENDENCIES = postgresql
|
||||
|
||||
# Force psycopg2 to use the Buildroot provided postgresql version
|
||||
# instead of the one from the host machine
|
||||
define PYTHON_PSYCOPG2_CREATE_SETUP_CFG
|
||||
printf "[build_ext]\ndefine=\npg_config=$(STAGING_DIR)/usr/bin/pg_config\n" > $(@D)/setup.cfg
|
||||
endef
|
||||
PYTHON_PSYCOPG2_PRE_CONFIGURE_HOOKS += PYTHON_PSYCOPG2_CREATE_SETUP_CFG
|
||||
|
||||
$(eval $(python-package))
|
||||
Reference in New Issue
Block a user