Initial Commit
- initial default booting image
This commit is contained in:
37
package/python-psycopg2/Config.in
Normal file
37
package/python-psycopg2/Config.in
Normal file
@@ -0,0 +1,37 @@
|
||||
config BR2_PACKAGE_PYTHON_PSYCOPG2
|
||||
bool "python-psycopg2"
|
||||
depends on BR2_USE_MMU # postgresql
|
||||
depends on !BR2_sparc # postgresql
|
||||
depends on BR2_USE_WCHAR # postgresql
|
||||
depends on BR2_ENABLE_LOCALE # postgresql
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # postgresql
|
||||
depends on !BR2_STATIC_LIBS # postgresql
|
||||
depends on !BR2_OPTIMIZE_FAST # 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.
|
||||
|
||||
https://github.com/psycopg/psycopg2/
|
||||
|
||||
comment "python-psycopg2 needs a toolchain w/ dynamic library, wchar"
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_sparc
|
||||
depends on BR2_STATIC_LIBS || !BR2_USE_WCHAR
|
||||
|
||||
comment "python-psycopg2 can't be built with Optimize for fast"
|
||||
depends on BR2_OPTIMIZE_FAST
|
||||
5
package/python-psycopg2/python-psycopg2.hash
Normal file
5
package/python-psycopg2/python-psycopg2.hash
Normal file
@@ -0,0 +1,5 @@
|
||||
# md5, sha256 from https://pypi.org/pypi/psycopg2/json
|
||||
md5 ea0f76b3d0358db5d8ff84e18c4a7252 psycopg2-2.9.11.tar.gz
|
||||
sha256 964d31caf728e217c697ff77ea69c2ba0865fa41ec20bb00f0977e62fdcc52e3 psycopg2-2.9.11.tar.gz
|
||||
# Locally computed sha256 checksums
|
||||
sha256 9614b85dfc9a72c5b2ca33144c1d7e1ed3b1c297459d9fb28a6a5762c2e8d71b LICENSE
|
||||
22
package/python-psycopg2/python-psycopg2.mk
Normal file
22
package/python-psycopg2/python-psycopg2.mk
Normal file
@@ -0,0 +1,22 @@
|
||||
################################################################################
|
||||
#
|
||||
# python-psycopg2
|
||||
#
|
||||
################################################################################
|
||||
|
||||
PYTHON_PSYCOPG2_VERSION = 2.9.11
|
||||
PYTHON_PSYCOPG2_SOURCE = psycopg2-$(PYTHON_PSYCOPG2_VERSION).tar.gz
|
||||
PYTHON_PSYCOPG2_SITE = https://files.pythonhosted.org/packages/89/8d/9d12bc8677c24dad342ec777529bce705b3e785fa05d85122b5502b9ab55
|
||||
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