Makefile revision 6936
0N/A#
2362N/A# CDDL HEADER START
0N/A#
0N/A# The contents of this file are subject to the terms of the
0N/A# Common Development and Distribution License (the "License").
0N/A# You may not use this file except in compliance with the License.
2362N/A#
0N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2362N/A# or http://www.opensolaris.org/os/licensing.
0N/A# See the License for the specific language governing permissions
0N/A# and limitations under the License.
0N/A#
0N/A# When distributing Covered Code, include this CDDL HEADER in each
0N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A# If applicable, add the following below this CDDL HEADER, with the
0N/A# fields enclosed by brackets "[]" replaced with your own identifying
0N/A# information: Portions Copyright [yyyy] [name of copyright owner]
0N/A#
0N/A# CDDL HEADER END
0N/A#
2362N/A
2362N/A#
2362N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
0N/A#
0N/ABUILD_BITS= NO_ARCH
0N/Ainclude ../../../make-rules/shared-macros.mk
0N/A
0N/ACOMPONENT_NAME= pylint
0N/ACOMPONENT_VERSION= 1.6.4
0N/ACOMPONENT_ARCHIVE_HASH= \
0N/A sha256:ef901a34b62ed7a734370ba5b162d890231ba8822abe88c6dda1268e2575f5f1
0N/ACOMPONENT_ARCHIVE_URL= $(call pypi_url)
0N/ACOMPONENT_PROJECT_URL= https://bitbucket.org/logilab/pylint
0N/A
0N/ATPNO= 31351
0N/A
0N/ABUILD_STYLE= setup.py
0N/Ainclude $(WS_MAKE_RULES)/common.mk
0N/A
0N/AASLR_MODE = $(ASLR_NOT_APPLICABLE)
0N/A
0N/A# Use the logilab-common, lazy-object-proxy, astroid and isort that are in the
0N/A# gate until the new versions are on the Userland build machines.
0N/ALLC = $(WS_COMPONENTS)/python/logilab-common/build/prototype/$(MACH)/$(PYTHON_LIB)
0N/ALOP = $(WS_COMPONENTS)/python/lazy-object-proxy/build/prototype/$(MACH)/$(PYTHON_LIB)
0N/AASTROID = $(WS_COMPONENTS)/python/astroid/build/prototype/$(MACH)/$(PYTHON_LIB)
0N/AISORT = $(WS_COMPONENTS)/python/isort/build/prototype/$(MACH)/$(PYTHON_LIB)
0N/A
0N/ACOMPONENT_BUILD_ENV += PYTHONPATH=$(LLC):$(LOP):$(ASTROID):$(ISORT)
0N/ACOMPONENT_INSTALL_ENV += PYTHONPATH=$(LLC):$(LOP):$(ASTROID):$(ISORT)
0N/A
0N/A# There are several pylint documentation files that setup.py isn't installing
0N/A# but are present in the pylint package on other distributions. Copy them into
0N/A# the proto area "manually", so they can be included in the package.
0N/APDOC_PYLINT = $(PROTOUSRSHAREDOCDIR)/pylint
0N/APDOC_PYLINT_EXAMPLES = $(PDOC_PYLINT)/examples
0N/A
0N/ACOMPONENT_POST_INSTALL_ACTION += \
0N/A $(MKDIR) $(PDOC_PYLINT) ;
0N/ACOMPONENT_POST_INSTALL_ACTION += \
0N/A $(CP) $(COMPONENT_SRC)/README.rst $(PDOC_PYLINT) ;
0N/A
0N/ACOMPONENT_POST_INSTALL_ACTION += \
0N/A $(MKDIR) $(PDOC_PYLINT_EXAMPLES) ;
0N/ACOMPONENT_POST_INSTALL_ACTION += \
0N/A $(CP) $(COMPONENT_SRC)/examples/custom.py $(PDOC_PYLINT_EXAMPLES) ;
0N/ACOMPONENT_POST_INSTALL_ACTION += \
0N/A $(CP) $(COMPONENT_SRC)/examples/custom_raw.py $(PDOC_PYLINT_EXAMPLES) ;
0N/ACOMPONENT_POST_INSTALL_ACTION += \
0N/A $(CP) $(COMPONENT_SRC)/elisp/pylint.el $(PDOC_PYLINT_EXAMPLES) ;
0N/ACOMPONENT_POST_INSTALL_ACTION += \
0N/A $(CP) $(COMPONENT_SRC)/examples/pylintrc_camelcase $(PDOC_PYLINT_EXAMPLES) ;
0N/ACOMPONENT_POST_INSTALL_ACTION += \
0N/A $(CP) $(COMPONENT_SRC)/examples/pylintrc $(PDOC_PYLINT_EXAMPLES) ;
0N/ACOMPONENT_POST_INSTALL_ACTION += \
0N/A (cd $(PROTO_DIR)/usr/bin; $(MV) epylint epylint-$(PYTHON_VERSION)) ;
0N/ACOMPONENT_POST_INSTALL_ACTION += \
0N/A (cd $(PROTO_DIR)/usr/bin; $(MV) pylint pylint-$(PYTHON_VERSION)) ;
0N/ACOMPONENT_POST_INSTALL_ACTION += \
0N/A (cd $(PROTO_DIR)/usr/bin; $(MV) pylint-gui pylint-gui-$(PYTHON_VERSION)) ;
0N/ACOMPONENT_POST_INSTALL_ACTION += \
0N/A (cd $(PROTO_DIR)/usr/bin; $(MV) pyreverse pyreverse-$(PYTHON_VERSION)) ;
0N/ACOMPONENT_POST_INSTALL_ACTION += \
0N/A (cd $(PROTO_DIR)/usr/bin; $(MV) symilar symilar-$(PYTHON_VERSION)) ;
0N/A
0N/ACOMPONENT_POST_INSTALL_ACTION += \
0N/A $(PYTHON) -m py_compile $(PROTOUSRLIBDIR)/python$(PYTHON_VERSION)/vendor-packages/pylint/testutils.py
0N/A
0N/ACOMPONENT_TEST_ENV = PYTHONPATH=$(LLC):$(LOP):$(ASTROID):$(ISORT):$(PROTO_DIR)$(PYTHON_VENDOR_PACKAGES)
0N/A
0N/ACOMPONENT_TEST_CMD = $(LLC)/../../../bin/pytest-$(PYTHON_VERSION)
0N/ACOMPONENT_TEST_ARGS =
0N/A
0N/A# The test output contains details from each test, in whatever order they
0N/A# complete. Use nawk to extract just the sections that summarizes the test
0N/A# result.
0N/ACOMPONENT_TEST_TRANSFORMER = $(NAWK)
0N/ACOMPONENT_TEST_TRANSFORMS = "'/Ran (.+) test cases/{ sub(/in(.+)\)/, \"\"); print }/All (.+) modules OK/'"
0N/A
0N/ACOMPONENT_SYSTEM_TEST_CMD = /usr/bin/pytest-$(PYTHON_VERSION)
0N/ACOMPONENT_SYSTEM_TEST_ARGS =
0N/A