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 lxml
17 BUILD_STYLE
= pyproject
19 include ..
/..
/..
/make-rules
/shared-macros.mk
23 COMPONENT_SUMMARY
= Powerful and Pythonic XML processing library combining libxml2
/libxslt with the ElementTree API.
24 COMPONENT_PROJECT_URL
= https
://lxml.de
/
25 COMPONENT_ARCHIVE_HASH
= \
26 sha256
:4e109ca30d1edec1ac60cdbe341905dc3b8f55b16855e03a54aaf59e51ec8c6f
27 COMPONENT_LICENSE
= BSD-3-Clause
28 COMPONENT_LICENSE_FILE
= LICENSE.txt
30 # This project uses custom test style.
31 # See project's Makefile.
35 # Following dependency loops were detected (where 'A --> B' means 'A needs B to
36 # run tests', and 'A ==> B' means 'A needs B for build and/or run'):
38 # lxml --> lxml_html_clean ==> lxml
40 # To break loops we need to allow this project to integrate without testing in
41 # a case the required projects are not available yet (bootstrap).
43 PYTHON_TEST_BOOTSTRAP
= yes
45 include $(WS_MAKE_RULES
)/common.mk
47 # This project uses custom test style.
48 # See project's Makefile.
49 COMPONENT_TEST_CMD
= $(PYTHON
) test.py
50 COMPONENT_TEST_ARGS
= -vv
51 COMPONENT_TEST_TARGETS
=
53 # The test.py uses modules from the src subdirectory, but compiled dynamic
54 # libraries are not available there.
56 # To workaround this we copy .so files from proto area back to build dir before
58 COMPONENT_PRE_TEST_ACTION
+= \
59 $(CP
) $(PROTO_DIR
)/$(PYTHON_LIB
)/$(COMPONENT_NAME
)/*.so
$(@D
)/src
/$(COMPONENT_NAME
) ;
62 COMPONENT_TEST_TRANSFORMS
+= \
64 $(GSED) -u -e '/^$$/Q' | $(SORT) | $(NAWK) '{print}END{if(NR>0)printf(\"\\\\n\")}' ; \
68 # This project does not support tox so we need to provide test requirements
70 TEST_REQUIREMENTS_EXTRAS
+= html-clean
72 # Auto-generated dependencies
73 PYTHON_REQUIRED_PACKAGES
+= library
/python
/cython
74 PYTHON_REQUIRED_PACKAGES
+= library
/python
/setuptools
75 PYTHON_REQUIRED_PACKAGES
+= library
/python
/wheel
76 PYTHON_REQUIRED_PACKAGES
+= runtime
/python
77 REQUIRED_PACKAGES
+= library
/libxml2
78 REQUIRED_PACKAGES
+= library
/libxslt
79 REQUIRED_PACKAGES
+= system
/library
80 TEST_REQUIRED_PACKAGES.python
+= library
/python
/lxml-html-clean