components/logilab-astng/Makefile
author April Chin <april.chin@oracle.com>
Mon, 22 Oct 2012 10:02:22 -0700
changeset 1023 d2db2bc970c3
parent 800 2ad056ed89ec
child 1058 34d7aaa03423
permissions -rw-r--r--
7040357 update pylint to 0.25.2 7161180 update logilab-common to 0.58.2 or later 7161182 update logilab-astng to 0.24.0 or later
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
114
6cc95ec7b1bb 7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     1
#
6cc95ec7b1bb 7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
6cc95ec7b1bb 7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     3
#
6cc95ec7b1bb 7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
6cc95ec7b1bb 7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
6cc95ec7b1bb 7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
6cc95ec7b1bb 7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     7
#
6cc95ec7b1bb 7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6cc95ec7b1bb 7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
6cc95ec7b1bb 7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
6cc95ec7b1bb 7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
6cc95ec7b1bb 7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    12
#
6cc95ec7b1bb 7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
6cc95ec7b1bb 7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6cc95ec7b1bb 7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
6cc95ec7b1bb 7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
6cc95ec7b1bb 7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
6cc95ec7b1bb 7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    18
#
6cc95ec7b1bb 7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
6cc95ec7b1bb 7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    20
#
6cc95ec7b1bb 7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    21
6cc95ec7b1bb 7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    22
#
800
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 609
diff changeset
    23
# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
114
6cc95ec7b1bb 7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    24
#
6cc95ec7b1bb 7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    25
6cc95ec7b1bb 7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    26
include ../../make-rules/shared-macros.mk
6cc95ec7b1bb 7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    27
6cc95ec7b1bb 7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    28
COMPONENT_NAME=		logilab-astng
1023
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    29
COMPONENT_VERSION=	0.24.0
609
775168282b2f 7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents: 247
diff changeset
    30
COMPONENT_PROJECT_URL=	http://www.logilab.org/project/logilab-astng/
114
6cc95ec7b1bb 7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    31
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
6cc95ec7b1bb 7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    32
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
800
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 609
diff changeset
    33
COMPONENT_ARCHIVE_HASH=	\
1023
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    34
	sha256:2d9413fa338ccf8b3f4b86520b385e9d35e848117dc7602b3994972a3163647f
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    35
COMPONENT_ARCHIVE_URL=	http://download.logilab.org/pub/astng/$(COMPONENT_ARCHIVE)
114
6cc95ec7b1bb 7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    36
6cc95ec7b1bb 7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    37
include ../../make-rules/prep.mk
6cc95ec7b1bb 7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    38
include ../../make-rules/ips.mk
6cc95ec7b1bb 7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    39
include ../../make-rules/setup.py.mk
6cc95ec7b1bb 7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    40
6cc95ec7b1bb 7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    41
# common targets
6cc95ec7b1bb 7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    42
6cc95ec7b1bb 7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    43
build:		$(BUILD_32)
6cc95ec7b1bb 7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    44
6cc95ec7b1bb 7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    45
install:	$(INSTALL_32)
6cc95ec7b1bb 7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    46
1023
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    47
# The tests are run using python 2.7 only and require that
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    48
# the python-27 package is installed (does not have to be the default python). 
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    49
# Testing using python-26 is done manually, since it requires
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    50
# downloading and installing the unittest2 component (not part of Solaris).
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    51
# which provides python 2.7 functionality to the unittest python library
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    52
# in the python2.6 package.
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    53
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    54
# Use the python 2.7 libraries for testing.
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    55
test: PYTHON_VERSION=2.7
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    56
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    57
# logilab-common is a runtime dependency of logilab-astng,
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    58
# and we need to use its latest version from the workspace.
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    59
# We can't just add its install target as a dependency here,
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    60
# so just run "gmake install" in the logilab-common component directory
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    61
# before running logilab-astng tests.
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    62
COMPONENT_PRE_TEST_ACTION = ( $(GMAKE) -C \
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    63
	$(COMPONENT_DIR)/../logilab-common install )
247
c57f32335aee 7043992 move pylint from SFW to userland
April Chin <april.chin@oracle.com>
parents: 181
diff changeset
    64
1023
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    65
COMPONENT_TEST_ENV = PYTHONPATH=$(COMPONENT_DIR)/../logilab-common/build/prototype/$(MACH)$(PYTHON_VENDOR_PACKAGES):$(PROTO_DIR)$(PYTHON_VENDOR_PACKAGES)
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    66
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    67
# Run pytest-2.7 from logilab-common's proto area for now, until the 
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    68
# new version of logilab-common containing pytest is in CBE.
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    69
# Then we can change it to /usr/bin/pytest-$(PYTHON_VERSION).
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    70
COMPONENT_TEST_CMD = $(COMPONENT_DIR)/../logilab-common/build/prototype/$(MACH)/usr/bin/pytest-$(PYTHON_VERSION)
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    71
COMPONENT_TEST_ARGS =
247
c57f32335aee 7043992 move pylint from SFW to userland
April Chin <april.chin@oracle.com>
parents: 181
diff changeset
    72
1023
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    73
# Expected failures for test target:
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    74
# sparc:
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    75
# 242 test cases, 2 failures, 6 skipped
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    76
# 8 modules OK (1 failed)
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    77
# failures: unittest_builder [2/55]
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    78
# x86:
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    79
# 242 test cases, 4 failures, 8 skipped
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    80
# 6 modules OK (3 failed)
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    81
# failures: unittest_builder [2/55], unittest_lookup [1/21], 
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    82
# unittest_inference [1/75]
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    83
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    84
test:		$(TEST_32)
114
6cc95ec7b1bb 7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    85
6cc95ec7b1bb 7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    86
BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
6cc95ec7b1bb 7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    87
6cc95ec7b1bb 7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    88
include ../../make-rules/depend.mk