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 mysqlclient
17 BUILD_STYLE
= pyproject
19 include ..
/..
/..
/make-rules
/shared-macros.mk
21 COMPONENT_NAME
= mysqlclient
23 COMPONENT_SUMMARY
= Python interface to MySQL
24 COMPONENT_ARCHIVE_HASH
= \
25 sha256
:add8643c32f738014d252d2bdebb478623b04802e8396d5903905db36474d3ff
26 COMPONENT_LICENSE
= GPL-2.0
-only
27 COMPONENT_LICENSE_FILE
= LICENSE
31 include $(WS_MAKE_RULES
)/common.mk
34 LD_OPTIONS
+= -R
$(MYSQL_LIBDIR
)
36 # We need to make sure Python will not found modules distributed with source
37 # package because there is missing compiled library.
38 COMPONENT_TEST_DIR
= $(@D
)/tests
43 # To test we need to fulfill following prerequisites:
44 # 1) the default system mysql/mariadb version must match the version we
45 # built mysqlclient for,
46 # 2) the mariadb service must be running,
47 # 3) the (default) test database must exist.
49 # To check 1) and 2) you can run following commands:
50 # gmake print-value-MYSQL_VERSION
55 # Manually added build and testing dependencies
56 REQUIRED_PACKAGES
+= $(MYSQL_CLIENT_PKG
)
57 TEST_REQUIRED_PACKAGES
+= $(MYSQL_BASEPKG
)
59 # Auto-generated dependencies
60 PYTHON_REQUIRED_PACKAGES
+= library
/python
/setuptools
61 PYTHON_REQUIRED_PACKAGES
+= runtime
/python
62 REQUIRED_PACKAGES
+= $(MYSQL_LIBRARY_PKG
)
63 REQUIRED_PACKAGES
+= system
/library