Makefile revision 4812
4812N/A#
4812N/A# CDDL HEADER START
4812N/A#
4812N/A# The contents of this file are subject to the terms of the
4812N/A# Common Development and Distribution License (the "License").
4812N/A# You may not use this file except in compliance with the License.
4812N/A#
4812N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4812N/A# or http://www.opensolaris.org/os/licensing.
4812N/A# See the License for the specific language governing permissions
4812N/A# and limitations under the License.
4812N/A#
4812N/A# When distributing Covered Code, include this CDDL HEADER in each
4812N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4812N/A# If applicable, add the following below this CDDL HEADER, with the
4812N/A# fields enclosed by brackets "[]" replaced with your own identifying
4812N/A# information: Portions Copyright [yyyy] [name of copyright owner]
4812N/A#
4812N/A# CDDL HEADER END
4812N/A#
4812N/A
4812N/A#
4812N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4812N/A#
4812N/A
4812N/Ainclude ../../../make-rules/shared-macros.mk
4812N/A
4812N/ACOMPONENT_NAME= logilab-common
4812N/ACOMPONENT_VERSION= 0.63.2
4812N/ACOMPONENT_PROJECT_URL= http://www.logilab.org/project/logilab-common/
4812N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
4812N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
4812N/ACOMPONENT_ARCHIVE_HASH= \
4812N/A sha256:603ba00c9bb09219a3bd2906c214d9455481110dacc472f450b53d5ae90f28e7
4812N/ACOMPONENT_ARCHIVE_URL= $(call pypi_url)
4812N/ACOMPONENT_BUGDB= python-mod/logilab-common
4812N/A
4812N/ATPNO= 22842
4812N/A
4812N/A# Syntax issues: not Python 3 ready. pyorbit not 3.4 ready.
4812N/APYTHON_VERSIONS= 2.7
4812N/A
4812N/Ainclude $(WS_MAKE_RULES)/prep.mk
4812N/Ainclude $(WS_MAKE_RULES)/ips.mk
4812N/Ainclude $(WS_MAKE_RULES)/setup.py.mk
4812N/A
4812N/A# rename pytest to its versioned name; mediated links (depending on
4812N/A# the python version) in the manifest will create the link from pytest
4812N/A# to the correct pytest-${PYTHON_VERSION}
4812N/A# compile all of the python .py files in the proto area since setup.py doesn't
4812N/A# seem to be doing it for this component.
4812N/ACOMPONENT_POST_INSTALL_ACTION = \
4812N/A (cd $(PROTO_DIR)/usr/bin ; $(MV) -f pytest pytest-$(PYTHON_VERSION)) ; \
4812N/A ($(PYTHON) -m compileall $(PROTO_DIR)$(PYTHON_VENDOR_PACKAGES))
4812N/A
4812N/AASLR_MODE = $(ASLR_NOT_APPLICABLE)
4812N/A
4812N/A# common targets
4812N/A
4812N/Abuild: $(BUILD_NO_ARCH)
4812N/A
4812N/Ainstall: $(INSTALL_NO_ARCH)
4812N/A
4812N/A# The tests are run using python 2.7 only and require that the
4812N/A# python-27 package is installed (does not have to be the default python).
4812N/A
4812N/A# Use the python 2.7 libraries (via PYTHONPATH setting) for testing.
4812N/Atest: PYTHON_VERSION=2.7
4812N/A
4812N/A# The test output contains details from each test, in whatever order they
4812N/A# complete. Use nawk to extract just the sections that summarizes the test result.
4812N/ACOMPONENT_TEST_CMD = $(PROTOUSRBINDIR)/pytest-2.7
4812N/ACOMPONENT_TEST_ARGS =
4812N/ACOMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
4812N/ACOMPONENT_TEST_TRANSFORMER = $(NAWK)
4812N/ACOMPONENT_TEST_TRANSFORMS = "'/Ran (.+) test cases/{ sub(/in(.+)\)/, \"\"); print }/(.+) modules OK/'"
4812N/A
4812N/A# Expected failures for test target:
4812N/A# 425 test cases, 2 error, 1 failures, 23 skipped
4812N/A# 19 modules OK (3 failed)
4812N/A# failures: unittest_shellutils [1/23], unittest_date [1/48], unittest_decorators[1/13]
4812N/A
4812N/Atest: $(TEST_NO_ARCH)
4812N/A
4812N/Asystem-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED)
4812N/A
4812N/AREQUIRED_PACKAGES += library/python/pyorbit-27
4812N/AREQUIRED_PACKAGES += library/python/six-27