Makefile revision 4337
5403N/A#
5403N/A# CDDL HEADER START
5403N/A#
5403N/A# The contents of this file are subject to the terms of the
5403N/A# Common Development and Distribution License (the "License").
5403N/A# You may not use this file except in compliance with the License.
5403N/A#
5403N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5403N/A# or http://www.opensolaris.org/os/licensing.
5403N/A# See the License for the specific language governing permissions
5403N/A# and limitations under the License.
5403N/A#
5403N/A# When distributing Covered Code, include this CDDL HEADER in each
5403N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5403N/A# If applicable, add the following below this CDDL HEADER, with the
5403N/A# fields enclosed by brackets "[]" replaced with your own identifying
5403N/A# information: Portions Copyright [yyyy] [name of copyright owner]
5403N/A#
5403N/A# CDDL HEADER END
5403N/A#
5403N/A
5403N/A#
5403N/A# Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
5403N/A#
5403N/A
5403N/Ainclude ../../../make-rules/shared-macros.mk
5403N/A
5403N/ACOMPONENT_NAME= nose
5403N/ACOMPONENT_VERSION= 1.3.6
5403N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
5403N/ACOMPONENT_PROJECT_URL= https://github.com/nose-devs/nose
5403N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
5403N/ACOMPONENT_ARCHIVE_HASH= \
5403N/A sha256:f61e0909a743eed37b1207e38a8e7b4a2fe0a82185e36f2be252ef1b3f901758
5403N/ACOMPONENT_ARCHIVE_URL= https://pypi.python.org/packages/source/n/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
5403N/ACOMPONENT_BUGDB= python-mod/nose
5403N/A
5403N/ATPNO= 22206
5403N/A
5403N/Ainclude $(WS_MAKE_RULES)/prep.mk
5403N/Ainclude $(WS_MAKE_RULES)/setup.py.mk
5403N/Ainclude $(WS_MAKE_RULES)/ips.mk
5403N/A
5403N/AASLR_MODE = $(ASLR_NOT_APPLICABLE)
5403N/A
5403N/A$(SOURCE_DIR)/.prep: PYTHON_VERSION=3.4
5403N/A
5403N/ACOMPONENT_TEST_DIR = $(SOURCE_DIR)
5403N/ACOMPONENT_TEST_ARGS = selftest.py
5403N/A
5403N/A# Used to automatically run the Python 2.6 nose tests even though there was
5403N/A# an error found when running one of the Python 2.7 ones.
5403N/ACOMPONENT_TEST_ARGS += || true
5403N/A
# Save an original copy of the test script to be able to edit it correctly
# for each version of Python and build the tests once.
COMPONENT_POST_UNPACK_ACTION += \
($(CP) $(SOURCE_DIR)/selftest.py $(SOURCE_DIR)/selftest.py.orig ; \
cd $(COMPONENT_TEST_DIR); $(COMPONENT_TEST_ENV_CMD) \
$(COMPONENT_TEST_ENV) \
$(COMPONENT_TEST_CMD) setup.py build_tests)
# We need to adjust the script that is used to run the tests, to pick the
# appropriate nose in the proto area depending upon which version of Python
# we are running the tests against.
COMPONENT_PRE_TEST_ACTION = \
$(GSED) -e "s|'build', 'lib\*'|'..', 'build', 'prototype', '$(MACH)', 'usr', 'lib', 'python$(PYTHON_VERSION)', 'vendor-packages\*'|" \
$(SOURCE_DIR)/selftest.py.orig > $(SOURCE_DIR)/selftest.py
# The test output can contain non-deterministic results because "chances are
# you will experience odd, intermittent and unexplainable failures and errors"
# when using the multiprocess plug. See:
# http://nose.readthedocs.org/en/latest/plugins/multiprocess.html
# CR #20470423 has been filed to investigate these failures.
#
# Because of this we use nawk to just extract lines starting with:
# ERROR: ...
# Ran 3XX tests in ...
# FAILED ...
# OK
# stripping out the random portions (like time to complete the tests).
COMPONENT_TEST_TRANSFORMER = $(NAWK)
COMPONENT_TEST_TRANSFORMS = "'/^ERROR: / { print }; /^Ran / { sub(\" tests in .+s\", \" tests in\"); print }; /^FAILED / { print }; /^OK / { print };'"
build: $(BUILD_NO_ARCH)
install: $(INSTALL_NO_ARCH)
test: $(TEST_NO_ARCH)
system-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED)
REQUIRED_PACKAGES += library/python/setuptools-26
REQUIRED_PACKAGES += library/python/setuptools-27
REQUIRED_PACKAGES += library/python/setuptools-34