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