components/python/astroid/Makefile
changeset 5682 94c0ca64c022
parent 5107 b5545e1bba48
child 6938 64f04bb4c3c3
equal deleted inserted replaced
5681:b8fe51f35344 5682:94c0ca64c022
    18 #
    18 #
    19 # CDDL HEADER END
    19 # CDDL HEADER END
    20 #
    20 #
    21 
    21 
    22 #
    22 #
    23 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
    23 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
    24 #
    24 #
    25 
    25 BUILD_BITS= NO_ARCH
    26 include ../../../make-rules/shared-macros.mk
    26 include ../../../make-rules/shared-macros.mk
    27 
    27 
    28 COMPONENT_NAME=		astroid
    28 COMPONENT_NAME=		astroid
    29 COMPONENT_VERSION=	1.3.6
    29 COMPONENT_VERSION=	1.3.6
    30 COMPONENT_PROJECT_URL=	http://bitbucket.org/logilab/$(COMPONENT_NAME)
    30 COMPONENT_PROJECT_URL=	http://bitbucket.org/logilab/$(COMPONENT_NAME)
    31 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
       
    32 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
       
    33 COMPONENT_ARCHIVE_HASH=	\
    31 COMPONENT_ARCHIVE_HASH=	\
    34 	sha256:1241ef961448c57b4616beb8dcc959724641dca1e22914663f79d67fec26f854
    32 	sha256:1241ef961448c57b4616beb8dcc959724641dca1e22914663f79d67fec26f854
    35 COMPONENT_ARCHIVE_URL=	$(call pypi_url)
    33 COMPONENT_ARCHIVE_URL=	$(call pypi_url)
    36 COMPONENT_BUGDB=	python-mod/astroid
    34 COMPONENT_BUGDB=	python-mod/astroid
    37 
    35 
    39 
    37 
    40 # astroid depends on logilab-common, which is not Python 3 ready, so mark
    38 # astroid depends on logilab-common, which is not Python 3 ready, so mark
    41 # this likewise. And astroid only supports 2.7+ now.
    39 # this likewise. And astroid only supports 2.7+ now.
    42 PYTHON_VERSIONS=	2.7
    40 PYTHON_VERSIONS=	2.7
    43 
    41 
    44 include $(WS_MAKE_RULES)/prep.mk
    42 BUILD_STYLE= setup.py
    45 include $(WS_MAKE_RULES)/ips.mk
    43 SYSTEM_TEST_TARGET= $(SYSTEM_TEST_NO_ARCH)
    46 include $(WS_MAKE_RULES)/setup.py.mk
    44 include $(WS_MAKE_RULES)/common.mk
    47 
    45 
    48 ASLR_MODE = $(ASLR_NOT_APPLICABLE)
    46 ASLR_MODE = $(ASLR_NOT_APPLICABLE)
    49 
    47 
    50 # common targets
    48 # common targets
    51 
       
    52 build:		$(BUILD_NO_ARCH)
       
    53 
       
    54 install:	$(INSTALL_NO_ARCH)
       
    55 
    49 
    56 # The tests are run using python 2.7 only and require that
    50 # The tests are run using python 2.7 only and require that
    57 # the python-27 package is installed (does not have to be the default python). 
    51 # the python-27 package is installed (does not have to be the default python). 
    58 
    52 
    59 # Use the python 2.7 libraries for testing.
    53 # Use the python 2.7 libraries for testing.
    94 COMPONENT_SYSTEM_TEST_CMD = /usr/bin/pytest-$(PYTHON_VERSION)
    88 COMPONENT_SYSTEM_TEST_CMD = /usr/bin/pytest-$(PYTHON_VERSION)
    95 COMPONENT_SYSTEM_TEST_ARGS =
    89 COMPONENT_SYSTEM_TEST_ARGS =
    96 COMPONENT_POST_SYSTEM_TEST_ACTION += \
    90 COMPONENT_POST_SYSTEM_TEST_ACTION += \
    97 	$(MV) $(COMPONENT_SRC)/astroid/tests/unittest_modutils.py-orig $(COMPONENT_SRC)/astroid/tests/unittest_modutils.py
    91 	$(MV) $(COMPONENT_SRC)/astroid/tests/unittest_modutils.py-orig $(COMPONENT_SRC)/astroid/tests/unittest_modutils.py
    98 
    92 
    99 test:		$(TEST_NO_ARCH)
       
   100 
       
   101 system-test:    $(SYSTEM_TEST_NO_ARCH)
       
   102 
       
   103 REQUIRED_PACKAGES += library/python/logilab-common-27
    93 REQUIRED_PACKAGES += library/python/logilab-common-27
   104 REQUIRED_PACKAGES += library/python/six-27
    94 REQUIRED_PACKAGES += library/python/six-27