components/logilab-common/Makefile
author John Beck <John.Beck@Oracle.COM>
Mon, 27 Mar 2017 15:35:14 -0700
branchs11u3-sru
changeset 7811 9126e6f58cd8
parent 4563 5d3e1ffc1ae1
permissions -rw-r--r--
PSARC 2014/190 Python 2.6 EOF 21136303 Python 2.6 EOF 25552242 downrevved cherrypy-26 package in s12 will block update from s11.3 25552335 library/python/idna-26 (only in s11.3 SRU14+) prevents upgrade to S12 25552353 library/python/ipaddress-26 (only in s11.3 SRU14+) prevents upgrade to S12
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
106
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     1
#
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     3
#
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     7
#
15c2a44d66c6 7020816 move logilab-common 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
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    12
#
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    18
#
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    20
#
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    21
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    22
#
7811
9126e6f58cd8 PSARC 2014/190 Python 2.6 EOF
John Beck <John.Beck@Oracle.COM>
parents: 4563
diff changeset
    23
# Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
106
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    24
#
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    25
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    26
include ../../make-rules/shared-macros.mk
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    27
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    28
COMPONENT_NAME=		logilab-common
2424
4dacf13d67f7 15712303 SUNBT7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    29
COMPONENT_VERSION=	0.58.2
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-common/
106
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    31
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
15c2a44d66c6 7020816 move logilab-common 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: 706
diff changeset
    33
COMPONENT_ARCHIVE_HASH=	\
2424
4dacf13d67f7 15712303 SUNBT7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    34
	sha256:c92db7d6bbac880969a439027a8239827a02a90815dbfba6bd4c031d85f4cd61
4dacf13d67f7 15712303 SUNBT7040357 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/common/$(COMPONENT_ARCHIVE)
2434
6c9bb5cf5610 15930486 - Auto-generation of Userland gate list for the Solaris 11 Update Release
Rich Burridge <rich.burridge@oracle.com>
parents: 2424
diff changeset
    36
COMPONENT_BUGDB=	python-mod/logilab-common
106
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    37
3661
47545fb8aed4 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 2693
diff changeset
    38
TPNO=			8268
47545fb8aed4 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 2693
diff changeset
    39
3778
35735ffdda43 PSARC 2014/151 Python 3.4
John Beck <John.Beck@Oracle.COM>
parents: 3661
diff changeset
    40
# Syntax issues: not Python 3 ready.
7811
9126e6f58cd8 PSARC 2014/190 Python 2.6 EOF
John Beck <John.Beck@Oracle.COM>
parents: 4563
diff changeset
    41
PYTHON_VERSIONS=	$(PYTHON2_VERSIONS)
3778
35735ffdda43 PSARC 2014/151 Python 3.4
John Beck <John.Beck@Oracle.COM>
parents: 3661
diff changeset
    42
3996
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3778
diff changeset
    43
include $(WS_MAKE_RULES)/prep.mk
4563
5d3e1ffc1ae1 21344772 updates for evaluation packages
John Beck <John.Beck@Oracle.COM>
parents: 4239
diff changeset
    44
5d3e1ffc1ae1 21344772 updates for evaluation packages
John Beck <John.Beck@Oracle.COM>
parents: 4239
diff changeset
    45
# pyorbit-27 is only available on S11.3 and later
5d3e1ffc1ae1 21344772 updates for evaluation packages
John Beck <John.Beck@Oracle.COM>
parents: 4239
diff changeset
    46
ifeq ($(BUILD_TYPE), evaluation)
5d3e1ffc1ae1 21344772 updates for evaluation packages
John Beck <John.Beck@Oracle.COM>
parents: 4239
diff changeset
    47
BUILD_NO_ARCH=
5d3e1ffc1ae1 21344772 updates for evaluation packages
John Beck <John.Beck@Oracle.COM>
parents: 4239
diff changeset
    48
INSTALL_NO_ARCH=
5d3e1ffc1ae1 21344772 updates for evaluation packages
John Beck <John.Beck@Oracle.COM>
parents: 4239
diff changeset
    49
PUBLISH_STAMP=
5d3e1ffc1ae1 21344772 updates for evaluation packages
John Beck <John.Beck@Oracle.COM>
parents: 4239
diff changeset
    50
endif
5d3e1ffc1ae1 21344772 updates for evaluation packages
John Beck <John.Beck@Oracle.COM>
parents: 4239
diff changeset
    51
3996
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3778
diff changeset
    52
include $(WS_MAKE_RULES)/ips.mk
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3778
diff changeset
    53
include $(WS_MAKE_RULES)/setup.py.mk
106
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    54
2424
4dacf13d67f7 15712303 SUNBT7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    55
# rename pytest to its versioned name; mediated links (depending on
4dacf13d67f7 15712303 SUNBT7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    56
# the python version) in the manifest will create the link from pytest
4dacf13d67f7 15712303 SUNBT7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    57
# to the correct pytest-${PYTHON_VERSION}
2693
2aa48dc32866 16828763 Pure python should build with its own macros, not _32/_64
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 2434
diff changeset
    58
# compile all of the python .py files in the proto area since setup.py doesn't
2aa48dc32866 16828763 Pure python should build with its own macros, not _32/_64
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 2434
diff changeset
    59
# seem to be doing it for this component.
2424
4dacf13d67f7 15712303 SUNBT7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    60
COMPONENT_POST_INSTALL_ACTION = \
2693
2aa48dc32866 16828763 Pure python should build with its own macros, not _32/_64
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 2434
diff changeset
    61
	(cd $(PROTO_DIR)/usr/bin ; $(MV) -f pytest pytest-$(PYTHON_VERSION)) ; \
2aa48dc32866 16828763 Pure python should build with its own macros, not _32/_64
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 2434
diff changeset
    62
	($(PYTHON) -m compileall $(PROTO_DIR)$(PYTHON_VENDOR_PACKAGES))
2424
4dacf13d67f7 15712303 SUNBT7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    63
4dacf13d67f7 15712303 SUNBT7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    64
106
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    65
# common targets
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    66
2693
2aa48dc32866 16828763 Pure python should build with its own macros, not _32/_64
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 2434
diff changeset
    67
build:		$(BUILD_NO_ARCH)
106
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    68
2693
2aa48dc32866 16828763 Pure python should build with its own macros, not _32/_64
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 2434
diff changeset
    69
install:	$(INSTALL_NO_ARCH)
706
6e61f0012046 7108059 Userland should have python2.7 version of its python modules
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 609
diff changeset
    70
	
2424
4dacf13d67f7 15712303 SUNBT7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    71
# Use the python 2.7 libraries (via PYTHONPATH setting) for testing.
4dacf13d67f7 15712303 SUNBT7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    72
test: PYTHON_VERSION=2.7
4dacf13d67f7 15712303 SUNBT7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    73
4dacf13d67f7 15712303 SUNBT7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    74
COMPONENT_TEST_CMD = $(PROTOUSRBINDIR)/pytest-2.7
4dacf13d67f7 15712303 SUNBT7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    75
COMPONENT_TEST_ARGS =
106
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    76
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    77
# Expected failures for test target:
2424
4dacf13d67f7 15712303 SUNBT7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    78
# 413 test cases, 1 error, 1 failures, 22 skipped
4dacf13d67f7 15712303 SUNBT7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    79
# 21 modules OK (2 failed)
4dacf13d67f7 15712303 SUNBT7040357 update pylint to 0.25.2
April Chin <april.chin@oracle.com>
parents: 800
diff changeset
    80
# failures: unittest_shellutils [1/23], unittest_date [1/45]
247
c57f32335aee 7043992 move pylint from SFW to userland
April Chin <april.chin@oracle.com>
parents: 181
diff changeset
    81
2693
2aa48dc32866 16828763 Pure python should build with its own macros, not _32/_64
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 2434
diff changeset
    82
test:	$(TEST_NO_ARCH)
106
15c2a44d66c6 7020816 move logilab-common to userland
April Chin <april.chin@oracle.com>
parents:
diff changeset
    83
4239
b0b944824f84 20995319 logilab-common update for pyorbit-27
John Beck <John.Beck@Oracle.COM>
parents: 3996
diff changeset
    84
REQUIRED_PACKAGES += library/python/pyorbit-27