Makefile revision 3735
744N/A#
744N/A# CDDL HEADER START
744N/A#
744N/A# The contents of this file are subject to the terms of the
744N/A# Common Development and Distribution License (the "License").
744N/A# You may not use this file except in compliance with the License.
744N/A#
744N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
744N/A# or http://www.opensolaris.org/os/licensing.
744N/A# See the License for the specific language governing permissions
744N/A# and limitations under the License.
744N/A#
744N/A# When distributing Covered Code, include this CDDL HEADER in each
744N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
744N/A# If applicable, add the following below this CDDL HEADER, with the
744N/A# fields enclosed by brackets "[]" replaced with your own identifying
744N/A# information: Portions Copyright [yyyy] [name of copyright owner]
744N/A#
744N/A# CDDL HEADER END
744N/A#
744N/A
744N/A#
3735N/A# Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
744N/A#
744N/A
744N/Ainclude ../../../make-rules/shared-macros.mk
744N/A
744N/ACOMPONENT_NAME= nose
3045N/ACOMPONENT_VERSION= 1.3.3
744N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
1569N/ACOMPONENT_PROJECT_URL= https://github.com/nose-devs/nose
749N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
844N/ACOMPONENT_ARCHIVE_HASH= \
3045N/A sha256:b40c2ff268beb85356ada25f626ca0dabc89705f31051649772cf00fc9510326
749N/ACOMPONENT_ARCHIVE_URL= http://pypi.python.org/packages/source/n/nose/$(COMPONENT_ARCHIVE)
1289N/ACOMPONENT_BUGDB= python-mod/nose
744N/A
3045N/ATPNO= 18083
2899N/A
744N/Ainclude $(WS_TOP)/make-rules/prep.mk
744N/Ainclude $(WS_TOP)/make-rules/setup.py.mk
744N/Ainclude $(WS_TOP)/make-rules/ips.mk
744N/A
1938N/AASLR_MODE = $(ASLR_NOT_APPLICABLE)
1938N/A
2790N/ACOMPONENT_TEST_DIR = $(SOURCE_DIR)
3045N/ACOMPONENT_TEST_ARGS = selftest.py
3045N/A
3045N/A# Used to automatically run the Python 2.6 nose tests even though there was
3045N/A# an error found when running one of the Python 2.7 ones.
3045N/ACOMPONENT_TEST_ARGS += || true
3045N/A
3045N/A# Save an original copy of the test script to be able to edit it correctly
3045N/A# for each version of Python and build the tests once.
3045N/ACOMPONENT_POST_UNPACK_ACTION += \
3045N/A ($(CP) $(SOURCE_DIR)/selftest.py $(SOURCE_DIR)/selftest.py.orig ; \
3045N/A cd $(COMPONENT_TEST_DIR); $(COMPONENT_TEST_ENV_CMD) \
3045N/A $(COMPONENT_TEST_ENV) \
3045N/A $(COMPONENT_TEST_CMD) setup.py build_tests)
3045N/A
3045N/A# We need to adjust the script that is used to run the tests, to pick the
3045N/A# appropriate nose in the proto area depending upon which version of Python
3045N/A# we are running the tests against.
3045N/ACOMPONENT_PRE_TEST_ACTION = \
3045N/A $(GSED) -e "s|'build', 'lib\*'|'..', 'build', 'prototype', '$(MACH)', 'usr', 'lib', 'python$(PYTHON_VERSION)', 'vendor-packages\*'|" \
3045N/A $(SOURCE_DIR)/selftest.py.orig > $(SOURCE_DIR)/selftest.py
2790N/A
744N/A# common targets
1716N/Abuild: $(BUILD_NO_ARCH)
744N/A
1716N/Ainstall: $(INSTALL_NO_ARCH)
744N/A
3735N/A# Note that it is currently not feasible to add master test file(s) for this
3735N/A# component because "chances are you will experience odd, intermittent and
3735N/A# unexplainable failures and errors" when using the multiprocess plug. See:
3735N/A# http://nose.readthedocs.org/en/latest/plugins/multiprocess.html
3735N/A# CR #20470423 has been filed to investigate these failures.
3735N/A
2790N/Atest: $(TEST_NO_ARCH)
744N/A
744N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
744N/A
744N/Ainclude $(WS_TOP)/make-rules/depend.mk