components/logilab-astng/Makefile
author John Beck <John.Beck@Oracle.COM>
Fri, 13 Jun 2014 12:36:52 -0700
changeset 1948 2d1537e7942d
parent 1907 446472de62e9
child 3817 30b42c38bbc4
permissions -rw-r--r--
18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
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
#
1907
446472de62e9 PSARC 2014/151 Python 3.4
John Beck <John.Beck@Oracle.COM>
parents: 1434
diff changeset
    23
# Copyright (c) 2011, 2014, 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)
1058
34d7aaa03423 15886624 Auto-generation of Userland gate list - Phase 3
Rich Burridge <rich.burridge@oracle.com>
parents: 1023
diff changeset
    36
COMPONENT_BUGDB=	python-mod/logilab-astng
114
6cc95ec7b1bb 7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    37
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1907
diff changeset
    38
TPNO=			8267
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1907
diff changeset
    39
1907
446472de62e9 PSARC 2014/151 Python 3.4
John Beck <John.Beck@Oracle.COM>
parents: 1434
diff changeset
    40
# logilab-astng depends on logilab-common, which is not Python 3 ready, so mark
446472de62e9 PSARC 2014/151 Python 3.4
John Beck <John.Beck@Oracle.COM>
parents: 1434
diff changeset
    41
# this likewise.
446472de62e9 PSARC 2014/151 Python 3.4
John Beck <John.Beck@Oracle.COM>
parents: 1434
diff changeset
    42
PYTHON_VERSIONS=	2.7 2.6
446472de62e9 PSARC 2014/151 Python 3.4
John Beck <John.Beck@Oracle.COM>
parents: 1434
diff changeset
    43
114
6cc95ec7b1bb 7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    44
include ../../make-rules/prep.mk
6cc95ec7b1bb 7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    45
include ../../make-rules/ips.mk
6cc95ec7b1bb 7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    46
include ../../make-rules/setup.py.mk
6cc95ec7b1bb 7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    47
1434
c782e620dd26 17296512 Add ASLR_NOT_APPLICABLE as an ASLR mode in Userland
Rich Burridge <rich.burridge@oracle.com>
parents: 1310
diff changeset
    48
ASLR_MODE = $(ASLR_NOT_APPLICABLE)
c782e620dd26 17296512 Add ASLR_NOT_APPLICABLE as an ASLR mode in Userland
Rich Burridge <rich.burridge@oracle.com>
parents: 1310
diff changeset
    49
114
6cc95ec7b1bb 7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    50
# common targets
6cc95ec7b1bb 7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    51
1310
ed3f9d06a78b 16828763 Pure python should build with its own macros, not _32/_64
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 1058
diff changeset
    52
build:		$(BUILD_NO_ARCH)
114
6cc95ec7b1bb 7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    53
1310
ed3f9d06a78b 16828763 Pure python should build with its own macros, not _32/_64
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 1058
diff changeset
    54
install:	$(INSTALL_NO_ARCH)
114
6cc95ec7b1bb 7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    55
1023
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    56
# 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
    57
# 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
    58
# 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
    59
# 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
    60
# 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
    61
# in the python2.6 package.
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    62
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    63
# 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
    64
test: PYTHON_VERSION=2.7
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    65
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    66
# 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
    67
# 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
    68
# 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
    69
# 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
    70
# before running logilab-astng tests.
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    71
COMPONENT_PRE_TEST_ACTION = ( $(GMAKE) -C \
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    72
	$(COMPONENT_DIR)/../logilab-common install )
247
c57f32335aee 7043992 move pylint from SFW to userland
April Chin <april.chin@oracle.com>
parents: 181
diff changeset
    73
1023
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    74
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
    75
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    76
# 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
    77
# 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
    78
# 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
    79
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
    80
COMPONENT_TEST_ARGS =
247
c57f32335aee 7043992 move pylint from SFW to userland
April Chin <april.chin@oracle.com>
parents: 181
diff changeset
    81
1023
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    82
# Expected failures for test target:
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    83
# sparc:
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    84
# 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
    85
# 8 modules OK (1 failed)
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    86
# failures: unittest_builder [2/55]
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    87
# x86:
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    88
# 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
    89
# 6 modules OK (3 failed)
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    90
# 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
    91
# unittest_inference [1/75]
d2db2bc970c3 7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    92
1310
ed3f9d06a78b 16828763 Pure python should build with its own macros, not _32/_64
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 1058
diff changeset
    93
test:		$(TEST_NO_ARCH)
114
6cc95ec7b1bb 7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    94
6cc95ec7b1bb 7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    95
BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
6cc95ec7b1bb 7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    96
6cc95ec7b1bb 7020818 move logilab-astng to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    97
include ../../make-rules/depend.mk