mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Merge from bittboy/buildroot@db180c0
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
config BR2_PACKAGE_PYTHON_PSYCOPG2
|
||||
bool "python-psycopg2"
|
||||
depends on BR2_USE_WCHAR # postgresql
|
||||
select BR2_PACKAGE_POSTGRESQL
|
||||
help
|
||||
Psycopg is the most popular PostgreSQL database adapter for
|
||||
the Python programming language. Its main features are the
|
||||
complete implementation of the Python DB API 2.0 specification
|
||||
and the thread safety (several threads can share the same
|
||||
connection). It was designed for heavily multi-threaded
|
||||
applications that create and destroy lots of cursors and make
|
||||
a large number of concurrent INSERTs or UPDATEs.
|
||||
|
||||
Psycopg 2 is mostly implemented in C as a libpq wrapper,
|
||||
resulting in being both efficient and secure. It features
|
||||
client-side and server-side cursors, asynchronous
|
||||
communication and notifications, COPY support. Many Python
|
||||
types are supported out-of-the-box and adapted to matching
|
||||
PostgreSQL data types; adaptation can be extended and
|
||||
customized thanks to a flexible objects adaptation system.
|
||||
Psycopg 2 is both Unicode and Python 3 friendly.
|
||||
|
||||
http://initd.org/psycopg/
|
||||
comment "python-psycopg2 needs a toolchain w/ wchar"
|
||||
depends on !BR2_USE_WCHAR
|
||||
@@ -0,0 +1,5 @@
|
||||
# md5, sha256 from https://pypi.org/pypi/psycopg2/json
|
||||
md5 bc00aa77595c03af7d68876ceb74ef77 psycopg2-2.8.3.tar.gz
|
||||
sha256 897a6e838319b4bf648a574afb6cabcb17d0488f8c7195100d48d872419f4457 psycopg2-2.8.3.tar.gz
|
||||
# Locally computed sha256 checksums
|
||||
sha256 9614b85dfc9a72c5b2ca33144c1d7e1ed3b1c297459d9fb28a6a5762c2e8d71b LICENSE
|
||||
@@ -0,0 +1,19 @@
|
||||
################################################################################
|
||||
#
|
||||
# python-psycopg2
|
||||
#
|
||||
################################################################################
|
||||
|
||||
PYTHON_PSYCOPG2_VERSION = 2.8.3
|
||||
PYTHON_PSYCOPG2_SOURCE = psycopg2-$(PYTHON_PSYCOPG2_VERSION).tar.gz
|
||||
PYTHON_PSYCOPG2_SITE = https://files.pythonhosted.org/packages/5c/1c/6997288da181277a0c29bc39a5f9143ff20b8c99f2a7d059cfb55163e165
|
||||
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
|
||||
PYTHON_PSYCOPG2_BUILD_OPTS = build_ext --pg-config=$(STAGING_DIR)/usr/bin/pg_config
|
||||
PYTHON_PSYCOPG2_INSTALL_TARGET_OPTS = build_ext --pg-config=$(STAGING_DIR)/usr/bin/pg_config
|
||||
|
||||
$(eval $(python-package))
|
||||
Reference in New Issue
Block a user