components/python/pylxml/Makefile
changeset 7809 85e8894d1fc6
parent 7687 1093e2a9adbd
equal deleted inserted replaced
7808:81d1e03a6070 7809:85e8894d1fc6
    24 #
    24 #
    25 
    25 
    26 include ../../../make-rules/shared-macros.mk
    26 include ../../../make-rules/shared-macros.mk
    27 
    27 
    28 COMPONENT_NAME=		lxml
    28 COMPONENT_NAME=		lxml
    29 COMPONENT_VERSION=	2.3.3
    29 COMPONENT_VERSION=	3.6.4
    30 COMPONENT_PROJECT_URL=	http://lxml.de/
    30 COMPONENT_PROJECT_URL=	http://lxml.de/
    31 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
    31 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
    32 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
    32 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
    33 COMPONENT_ARCHIVE_HASH=	\
    33 COMPONENT_ARCHIVE_HASH=	\
    34     sha256:2a3ca34f63b062ee8e059ca2460ac18040ec9622f0a31e143383f0db944ceb36
    34     sha256:61d5d3e00b5821e6cda099b3b4ccfea4527bf7c595e0fb3a7a760490cedd6172
    35 COMPONENT_ARCHIVE_URL=	$(call pypi_url)
    35 COMPONENT_ARCHIVE_URL=	$(call pypi_url)
    36 COMPONENT_BUGDB=	python-mod/lxml
    36 COMPONENT_BUGDB=	python-mod/lxml
    37 COMPONENT_ANITYA_ID=	3914
    37 COMPONENT_ANITYA_ID=	3914
    38 
    38 
    39 TPNO=			17146
    39 TPNO=			31680
    40 
    40 
    41 # disable optimization to prevent the Studio compilers from spinning
    41 # disable optimization to prevent the Studio compilers from spinning
    42 studio_OPT.i386.32 =
    42 studio_OPT.i386.32 =
    43 studio_OPT.i386.64 =
    43 studio_OPT.i386.64 =
    44 
    44 
    48 
    48 
    49 ASLR_MODE = $(ASLR_NOT_APPLICABLE)
    49 ASLR_MODE = $(ASLR_NOT_APPLICABLE)
    50 
    50 
    51 COMPONENT_TEST_ARGS=	test
    51 COMPONENT_TEST_ARGS=	test
    52 COMPONENT_TEST_CMD=	$(MAKE) -i
    52 COMPONENT_TEST_CMD=	$(MAKE) -i
    53 COMPONENT_TEST_DIR=	$(SOURCE_DIR)
    53 COMPONENT_TEST_DIR=	$(COMPONENT_SRC)
    54 COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
    54 
       
    55 # Prevent errors like: 'UnicodeEncodeError: 'ascii' codec can't encode
       
    56 # characters in position 5-18: ordinal not in range(128)'
       
    57 # Taken from https://illumos.org/issues/6538
       
    58 COMPONENT_TEST_ENV+=	LC_ALL=en_US.UTF-8
       
    59 
       
    60 # Prevent errors like: OSError: Error reading file 'http://127.0.0.1:59951/':
       
    61 # failed to load HTTP resource
       
    62 COMPONENT_TEST_ENV+=	http_proxy=
       
    63 COMPONENT_TEST_ENV+=	https_proxy=
       
    64 COMPONENT_TEST_ENV+=	HTTP_PROXY=
       
    65 COMPONENT_TEST_ENV+=	HTTPS_PROXY=
       
    66 
       
    67 # Use the correct version of Python each time.
       
    68 COMPONENT_TEST_ENV+=	PYTHON=$(PYTHON)
       
    69 
    55 COMPONENT_TEST_TRANSFORMS += \
    70 COMPONENT_TEST_TRANSFORMS += \
    56 	'-e "/\(cc\).*/d" ' \
    71 	'-e "/\(cc\).*/d" ' \
    57 	'-e "/\(PYTHONPATH\).*/d" ' \
    72 	'-e "/\(PYTHONPATH\).*/d" ' \
    58 	'-e "/\(Doctest\).*/d" ' \
    73 	'-e "/\(Doctest\).*/d" ' \
    59 	'-e "/\(Building\).*/d" ' \
    74 	'-e "/\(Building\).*/d" ' \
    60 	'-e "/\(building\).*/d" ' \
    75 	'-e "/\(building\).*/d" ' \
       
    76 	'-e "/\(Compiling\).*/d" ' \
       
    77 	'-e "/\(Cythonizing\).*/d" ' \
    61         '-e "/\(copying\).*/d" ' \
    78         '-e "/\(copying\).*/d" ' \
    62 	'-e "/\(creating\).*/d" ' \
    79 	'-e "/\(creating\).*/d" ' \
    63 	'-e "s|\(Ran 1368 tests\).*|\1|" '
    80 	'-e "/\(prototype:\).*/d" ' \
       
    81 	'-e "/\(warning:\).*/d" ' \
       
    82 	'-e "/\(ignored\).*/d" ' \
       
    83 	'-e "/\(argument :\).*/d" ' \
       
    84 	'-e "/\(cannot find\).*/d" ' \
       
    85 	'-e "s|\(Ran [0-9][0-9]* tests\).*|\1|" '
    64 
    86 
    65 # common targets
       
    66 build:		$(BUILD_32_and_64)
    87 build:		$(BUILD_32_and_64)
    67 
    88 
    68 install:	$(INSTALL_32_and_64)
    89 install:	$(INSTALL_32_and_64)
    69 
    90 
    70 test:		$(TEST_32_and_64)
    91 test:		$(TEST_32_and_64)