perl/Module-Build-Tiny: update to 0.051 for Perl 5.36 and 5.38
[oi-userland.git] / components / python / multidict / Makefile
blob81dda96c242fddfd9d56bb5cd468ebca2191d04c
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 multidict
17 BUILD_STYLE = pyproject
19 include ../../../make-rules/shared-macros.mk
21 COMPONENT_NAME = multidict
22 HUMAN_VERSION = 6.1.0
23 COMPONENT_SUMMARY = multidict implementation
24 COMPONENT_PROJECT_URL = https://github.com/aio-libs/multidict
25 COMPONENT_ARCHIVE_HASH = \
26 sha256:22ae2ebf9b0c69d206c003e2f6a914ea33f0a932d4aa16f236afc049d9958f4a
27 COMPONENT_LICENSE = Apache-2.0
28 COMPONENT_LICENSE_FILE = LICENSE
30 TEST_STYLE = pytest
32 include $(WS_MAKE_RULES)/common.mk
35 # Tests are run from build directory that contains cloned copy of sdist. We
36 # try to ask Python to find tested modules in the proto area (the PYTHONPATH is
37 # set accordingly), but Python (< 3.11) always adds the current directory to
38 # sys.path and there is no known (simple) way how to avoid that. Except -I,
39 # but that would cause Python to ignore PYTHONPATH too so we would not have
40 # access to the proto area either. The -P option together with PYTHONSAFEPATH
41 # environment variable were added to Python 3.11 only so we cannot use them yet
42 # for all Python versions we support.
44 # Since sdist for this project contains the main module in the top-level
45 # directory we cannot force Python to skip it. But, unfortunately, this module
46 # does not contain built dynamic libraries, so Python cannot find them while
47 # testing.
49 # To workaround this we rename the main module in the build directory during
50 # testing so Python will need to defer to PYTHONPATH.
52 COMPONENT_PRE_TEST_ACTION += $(MV) $(@D)/multidict $(@D)/multidict-RENAMED ;
53 COMPONENT_POST_TEST_ACTION += $(MV) $(@D)/multidict-RENAMED $(@D)/multidict ;
55 # Auto-generated dependencies
56 PYTHON_REQUIRED_PACKAGES += library/python/setuptools
57 PYTHON_REQUIRED_PACKAGES += library/python/typing-extensions
58 PYTHON_REQUIRED_PACKAGES += runtime/python
59 REQUIRED_PACKAGES += system/library