2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # This file was automatically generated using the following command:
14 # $WS_TOOLS/python-integrate-project psycopg2
17 BUILD_STYLE
= setup.py
19 include ..
/..
/..
/make-rules
/shared-macros.mk
21 COMPONENT_NAME
= psycopg2
22 HUMAN_VERSION
= 2.9.10
23 COMPONENT_SUMMARY
= psycopg2
- Python-PostgreSQL Database Adapter
24 COMPONENT_PROJECT_URL
= https
://psycopg.org
/
25 COMPONENT_ARCHIVE_HASH
= \
26 sha256
:12ec0b40b0273f95296233e8750441339298e6a572f7039da5b260e3c8b60e11
27 COMPONENT_LICENSE
= LGPL-3.0
-only
29 # see doc/src/install.rst
32 include $(WS_MAKE_RULES
)/common.mk
34 # Do not depend on host default pg_config
35 PATH
:= $(PG_BINDIR
):$(PATH
)
38 LD_OPTIONS
+= -R
$(PG_LIBDIR
)
43 # To test we need to fulfill following prerequisites:
44 # 1) the default system postgres version must match the version we built
46 # 2) the postgresql service must be running,
47 # 3) the psycopg2_test database with plpgsql extension must exist.
49 # To check 1) and 2) you can run following commands:
50 # gmake print-value-PG_VERSION
51 # pkg mediator postgres
53 # To create the psycopg2_test database you could run:
55 # createdb psycopg2_test
56 # psql -c 'CREATE EXTENSION plpgsql;' psycopg2_test
58 # Testing will use the default 'postgres' user.
60 COMPONENT_TEST_ENV
+= PSYCOPG2_TESTDB_USER
=postgres
62 # Custom test style - see doc/src/install.rst
63 COMPONENT_TEST_CMD
= $(PYTHON
) -c
"import tests; tests.unittest.main(defaultTest='tests.test_suite')"
64 COMPONENT_TEST_ARGS
= --verbose
65 COMPONENT_TEST_TARGETS
=
67 # Manually added build and testing dependencies
68 REQUIRED_PACKAGES
+= $(PG_DEVELOPER_PKG
)
69 TEST_REQUIRED_PACKAGES
+= $(PG_SERVICE_PKG
)
71 # Auto-generated dependencies
72 PYTHON_REQUIRED_PACKAGES
+= runtime
/python
73 REQUIRED_PACKAGES
+= $(PG_LIBRARY_PKG
)
74 REQUIRED_PACKAGES
+= system
/library