components/logilab-common/Makefile
changeset 1023 d2db2bc970c3
parent 800 2ad056ed89ec
child 1058 34d7aaa03423
equal deleted inserted replaced
1022:6291fa546414 1023:d2db2bc970c3
    24 #
    24 #
    25 
    25 
    26 include ../../make-rules/shared-macros.mk
    26 include ../../make-rules/shared-macros.mk
    27 
    27 
    28 COMPONENT_NAME=		logilab-common
    28 COMPONENT_NAME=		logilab-common
    29 COMPONENT_VERSION=	0.40.0
    29 COMPONENT_VERSION=	0.58.2
    30 COMPONENT_PROJECT_URL=	http://www.logilab.org/project/logilab-common/
    30 COMPONENT_PROJECT_URL=	http://www.logilab.org/project/logilab-common/
    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:0529201ad23ea4a57e72a4d4e6607cc440b5086b25c69d01db8ef6d1c9cc9c57
    34 	sha256:c92db7d6bbac880969a439027a8239827a02a90815dbfba6bd4c031d85f4cd61
    35 COMPONENT_ARCHIVE_URL=	http://ftp.logilab.org/pub/common/$(COMPONENT_ARCHIVE)
    35 COMPONENT_ARCHIVE_URL=	http://download.logilab.org/pub/common/$(COMPONENT_ARCHIVE)
    36 
    36 
    37 include ../../make-rules/prep.mk
    37 include ../../make-rules/prep.mk
    38 include ../../make-rules/ips.mk
    38 include ../../make-rules/ips.mk
    39 include ../../make-rules/setup.py.mk
    39 include ../../make-rules/setup.py.mk
       
    40 
       
    41 # rename pytest to its versioned name; mediated links (depending on
       
    42 # the python version) in the manifest will create the link from pytest
       
    43 # to the correct pytest-${PYTHON_VERSION}
       
    44 COMPONENT_POST_INSTALL_ACTION = \
       
    45 	(cd $(PROTO_DIR)/usr/bin ; $(MV) -f pytest pytest-$(PYTHON_VERSION))
       
    46 
    40 
    47 
    41 # common targets
    48 # common targets
    42 
    49 
    43 build:		$(BUILD_32)
    50 build:		$(BUILD_32)
    44 
    51 
    45 install:	$(INSTALL_32)
    52 install:	$(INSTALL_32)
    46 	$(PYTHON.2.6.32) -m compileall $(PROTO_DIR)/usr/lib/python2.6/vendor-packages
    53 	$(PYTHON.2.6.32) -m compileall $(PROTO_DIR)/usr/lib/python2.6/vendor-packages
    47 	$(PYTHON.2.7.32) -m compileall $(PROTO_DIR)/usr/lib/python2.7/vendor-packages
    54 	$(PYTHON.2.7.32) -m compileall $(PROTO_DIR)/usr/lib/python2.7/vendor-packages
    48 	
    55 	
       
    56 # The tests are run using python 2.7 only and require that the
       
    57 # python-27 package is installed (does not have to be the default python). 
       
    58 # Testing using python-26 is done manually, since it requires
       
    59 # downloading and installing the unittest2 component (not part of Solaris).
       
    60 # which provides python 2.7 functionality to the unittest python library
       
    61 # in the python2.6 package.
       
    62 
       
    63 # Use the python 2.7 libraries (via PYTHONPATH setting) for testing.
       
    64 test: PYTHON_VERSION=2.7
       
    65 
       
    66 COMPONENT_TEST_CMD = $(PROTOUSRBINDIR)/pytest-2.7
       
    67 COMPONENT_TEST_ARGS =
    49 
    68 
    50 # Expected failures for test target:
    69 # Expected failures for test target:
    51 # 722 test cases, 17 errors, 5 failures, 56 skipped
    70 # 413 test cases, 1 error, 1 failures, 22 skipped
    52 # 43 modules OK (7 failed)
    71 # 21 modules OK (2 failed)
    53 COMPONENT_TEST_DIR = $(COMPONENT_SRC)
    72 # failures: unittest_shellutils [1/23], unittest_date [1/45]
    54 COMPONENT_TEST_CMD = bin/pytest
       
    55 COMPONENT_TEST_ARGS = test
       
    56 
    73 
    57 test:	$(TEST_32)
    74 test:	$(TEST_32)
    58 
    75 
    59 BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
    76 BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
    60 
    77