Makefile revision 3661
a8dda281113c5038945423320d8c9b42e3d1ddb1jwoolley#
6a82dfd37385024d0e94e71edd2f46b609796cfdwrowe# CDDL HEADER START
a250599aab6669d5877edf158032efd2538e5820trawick#
a250599aab6669d5877edf158032efd2538e5820trawick# The contents of this file are subject to the terms of the
a250599aab6669d5877edf158032efd2538e5820trawick# Common Development and Distribution License (the "License").
a250599aab6669d5877edf158032efd2538e5820trawick# You may not use this file except in compliance with the License.
41338e6ead3fa8d60ad3841d069f4b47e71d9177wrowe#
41338e6ead3fa8d60ad3841d069f4b47e71d9177wrowe# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
41338e6ead3fa8d60ad3841d069f4b47e71d9177wrowe# or http://www.opensolaris.org/os/licensing.
41338e6ead3fa8d60ad3841d069f4b47e71d9177wrowe# See the License for the specific language governing permissions
92b0ffb9cbc04b3d9c7ce6becadc0c3d88dea2d9wrowe# and limitations under the License.
92b0ffb9cbc04b3d9c7ce6becadc0c3d88dea2d9wrowe#
92b0ffb9cbc04b3d9c7ce6becadc0c3d88dea2d9wrowe# When distributing Covered Code, include this CDDL HEADER in each
961ff00a8f1fe79a8ac8b18617b40a404e28cb35brianp# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
961ff00a8f1fe79a8ac8b18617b40a404e28cb35brianp# If applicable, add the following below this CDDL HEADER, with the
961ff00a8f1fe79a8ac8b18617b40a404e28cb35brianp# fields enclosed by brackets "[]" replaced with your own identifying
92b0ffb9cbc04b3d9c7ce6becadc0c3d88dea2d9wrowe# information: Portions Copyright [yyyy] [name of copyright owner]
6a82dfd37385024d0e94e71edd2f46b609796cfdwrowe#
6a82dfd37385024d0e94e71edd2f46b609796cfdwrowe# CDDL HEADER END
6a82dfd37385024d0e94e71edd2f46b609796cfdwrowe#
6a82dfd37385024d0e94e71edd2f46b609796cfdwrowe
6a82dfd37385024d0e94e71edd2f46b609796cfdwrowe#
6a82dfd37385024d0e94e71edd2f46b609796cfdwrowe# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
6a82dfd37385024d0e94e71edd2f46b609796cfdwrowe#
6a82dfd37385024d0e94e71edd2f46b609796cfdwrowe
c43fd8f8f90a7549bffe1e581eedbd087db1163estoddardinclude ../../make-rules/shared-macros.mk
c43fd8f8f90a7549bffe1e581eedbd087db1163estoddard
c43fd8f8f90a7549bffe1e581eedbd087db1163estoddardCOMPONENT_NAME= logilab-common
a8dda281113c5038945423320d8c9b42e3d1ddb1jwoolleyCOMPONENT_VERSION= 0.58.2
854cc4d3451547c2359c27870a3c354ad385a49bianhCOMPONENT_PROJECT_URL= http://www.logilab.org/project/logilab-common/
854cc4d3451547c2359c27870a3c354ad385a49bianhCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
854cc4d3451547c2359c27870a3c354ad385a49bianhCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
02ec77ed8e15b4b601de98a322e4bd8d7d3e1ec2trawickCOMPONENT_ARCHIVE_HASH= \
02ec77ed8e15b4b601de98a322e4bd8d7d3e1ec2trawick sha256:c92db7d6bbac880969a439027a8239827a02a90815dbfba6bd4c031d85f4cd61
02ec77ed8e15b4b601de98a322e4bd8d7d3e1ec2trawickCOMPONENT_ARCHIVE_URL= http://download.logilab.org/pub/common/$(COMPONENT_ARCHIVE)
49ada1eac7c4cae429ba193273b7f40f355d9c7ejwoolleyCOMPONENT_BUGDB= python-mod/logilab-common
49ada1eac7c4cae429ba193273b7f40f355d9c7ejwoolley
49ada1eac7c4cae429ba193273b7f40f355d9c7ejwoolleyTPNO= 8268
88425bd3442321915195ac9dfa9a80ffcd968fa4brianp
88425bd3442321915195ac9dfa9a80ffcd968fa4brianpinclude ../../make-rules/prep.mk
88425bd3442321915195ac9dfa9a80ffcd968fa4brianpinclude ../../make-rules/ips.mk
88425bd3442321915195ac9dfa9a80ffcd968fa4brianpinclude ../../make-rules/setup.py.mk
a8dda281113c5038945423320d8c9b42e3d1ddb1jwoolley
a8dda281113c5038945423320d8c9b42e3d1ddb1jwoolley# rename pytest to its versioned name; mediated links (depending on
a8dda281113c5038945423320d8c9b42e3d1ddb1jwoolley# the python version) in the manifest will create the link from pytest
a8dda281113c5038945423320d8c9b42e3d1ddb1jwoolley# to the correct pytest-${PYTHON_VERSION}
37b8494ffaeb4ee9a9a2f9917d334078c16d4212jwoolley# compile all of the python .py files in the proto area since setup.py doesn't
37b8494ffaeb4ee9a9a2f9917d334078c16d4212jwoolley# seem to be doing it for this component.
bf3d1782a29630335a1df535eb395355ab1cd154jwoolleyCOMPONENT_POST_INSTALL_ACTION = \
bf3d1782a29630335a1df535eb395355ab1cd154jwoolley (cd $(PROTO_DIR)/usr/bin ; $(MV) -f pytest pytest-$(PYTHON_VERSION)) ; \
37b8494ffaeb4ee9a9a2f9917d334078c16d4212jwoolley ($(PYTHON) -m compileall $(PROTO_DIR)$(PYTHON_VENDOR_PACKAGES))
da16bea08c6ff10ceb8d250ff23e8e81a372cef8jwoolley
da16bea08c6ff10ceb8d250ff23e8e81a372cef8jwoolley
99f692732327e0c200fd639105dbf9940bd229f1rbb# common targets
99f692732327e0c200fd639105dbf9940bd229f1rbb
99f692732327e0c200fd639105dbf9940bd229f1rbbbuild: $(BUILD_NO_ARCH)
80f73246cc14f02d50bfac5306c079464c2dd1c6rbb
80f73246cc14f02d50bfac5306c079464c2dd1c6rbbinstall: $(INSTALL_NO_ARCH)
80f73246cc14f02d50bfac5306c079464c2dd1c6rbb
80f73246cc14f02d50bfac5306c079464c2dd1c6rbb# The tests are run using python 2.7 only and require that the
80f73246cc14f02d50bfac5306c079464c2dd1c6rbb# python-27 package is installed (does not have to be the default python).
dcdc78fce34f06533df4829abbc726f7fbf207fejwoolley# Testing using python-26 is done manually, since it requires
dcdc78fce34f06533df4829abbc726f7fbf207fejwoolley# downloading and installing the unittest2 component (not part of Solaris).
dcdc78fce34f06533df4829abbc726f7fbf207fejwoolley# which provides python 2.7 functionality to the unittest python library
d4a93d608a28bf331625544a2896fa20bef4a2b4rbb# in the python2.6 package.
d4a93d608a28bf331625544a2896fa20bef4a2b4rbb
d4a93d608a28bf331625544a2896fa20bef4a2b4rbb# Use the python 2.7 libraries (via PYTHONPATH setting) for testing.
d4a93d608a28bf331625544a2896fa20bef4a2b4rbbtest: PYTHON_VERSION=2.7
d4a93d608a28bf331625544a2896fa20bef4a2b4rbb
36fcd3d96b9bf9a2d4af424e64584b5dede3e3e6brianpCOMPONENT_TEST_CMD = $(PROTOUSRBINDIR)/pytest-2.7
36fcd3d96b9bf9a2d4af424e64584b5dede3e3e6brianpCOMPONENT_TEST_ARGS =
36fcd3d96b9bf9a2d4af424e64584b5dede3e3e6brianp
4b34d6a5b70303010612df6c87da3ee91ae86078rbb# Expected failures for test target:
4b34d6a5b70303010612df6c87da3ee91ae86078rbb# 413 test cases, 1 error, 1 failures, 22 skipped
4b34d6a5b70303010612df6c87da3ee91ae86078rbb# 21 modules OK (2 failed)
4b34d6a5b70303010612df6c87da3ee91ae86078rbb# failures: unittest_shellutils [1/23], unittest_date [1/45]
4b34d6a5b70303010612df6c87da3ee91ae86078rbb
4b34d6a5b70303010612df6c87da3ee91ae86078rbbtest: $(TEST_NO_ARCH)
4b34d6a5b70303010612df6c87da3ee91ae86078rbb
44d971eef4337ad80ba3d360c84ffa8188d50325trawickBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
84bdb86d57d2a2f828b17e77ac2379fed551c2adtrawick
84bdb86d57d2a2f828b17e77ac2379fed551c2adtrawickinclude ../../make-rules/depend.mk
84bdb86d57d2a2f828b17e77ac2379fed551c2adtrawick