perl/Module-Build-Tiny: update to 0.051 for Perl 5.36 and 5.38
[oi-userland.git] / components / python / mysqlclient / Makefile
blobd723f2340c1653df57924f1cb2a95b6bf9b45ece
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
5 # 1.0 of the CDDL.
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
22 HUMAN_VERSION = 2.2.6
23 COMPONENT_SUMMARY = Python interface to MySQL
24 COMPONENT_ARCHIVE_HASH = \
25 sha256:c0b46d9b78b461dbb62482089ca8040fa916595b1b30f831ebbd1b0a82b43d53
26 COMPONENT_LICENSE = GPL-2.0-only
27 COMPONENT_LICENSE_FILE = LICENSE
29 TEST_STYLE = pytest
31 include $(WS_MAKE_RULES)/common.mk
33 # Force needed rpath
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
41 # Note:
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
51 # pkg mediator mysql
52 # svcs '*mariadb*'
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