15 # If applicable, add the following below this CDDL HEADER, with the |
15 # If applicable, add the following below this CDDL HEADER, with the |
16 # fields enclosed by brackets "[]" replaced with your own identifying |
16 # fields enclosed by brackets "[]" replaced with your own identifying |
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
18 # |
18 # |
19 # CDDL HEADER END |
19 # CDDL HEADER END |
|
20 # |
20 |
21 |
21 # |
22 # |
22 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. |
23 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. |
23 # |
24 # |
24 |
25 BUILD_BITS= NO_ARCH |
25 include ../../../make-rules/shared-macros.mk |
26 include ../../../make-rules/shared-macros.mk |
26 |
27 |
27 COMPONENT_NAME= pylint |
28 COMPONENT_NAME= pylint |
28 COMPONENT_VERSION= 1.4.3 |
29 COMPONENT_VERSION= 1.4.3 |
29 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
|
30 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
|
31 COMPONENT_ARCHIVE_HASH= \ |
30 COMPONENT_ARCHIVE_HASH= \ |
32 sha256:1dce8c143a5aa15e0638887c2b395e2e823223c63ebaf8d5f432a99e44b29f60 |
31 sha256:1dce8c143a5aa15e0638887c2b395e2e823223c63ebaf8d5f432a99e44b29f60 |
33 COMPONENT_ARCHIVE_URL= $(call pypi_url) |
32 COMPONENT_ARCHIVE_URL= $(call pypi_url) |
34 COMPONENT_PROJECT_URL= https://bitbucket.org/logilab/pylint |
33 COMPONENT_PROJECT_URL= https://bitbucket.org/logilab/pylint |
35 COMPONENT_BUGDB= utility/pylint |
|
36 |
34 |
37 TPNO= 22903 |
35 TPNO= 22903 |
38 |
36 |
39 # Since Pylint 1.4, it only supports Python 2.7+ and Python 3.3+. |
37 # Since Pylint 1.4, it only supports Python 2.7+ and Python 3.3+. |
40 PYTHON_VERSIONS= 2.7 |
38 PYTHON_VERSIONS= 2.7 |
41 |
39 |
42 include $(WS_MAKE_RULES)/prep.mk |
40 BUILD_STYLE= setup.py |
43 include $(WS_MAKE_RULES)/setup.py.mk |
41 include $(WS_MAKE_RULES)/common.mk |
44 include $(WS_MAKE_RULES)/ips.mk |
|
45 |
42 |
46 # There are several pylint documentation files that setup.py isn't installing |
43 # There are several pylint documentation files that setup.py isn't installing |
47 # but are present in the pylint package on other distributions. Copy them into |
44 # but are present in the pylint package on other distributions. Copy them into |
48 # the proto area "manually", so they can be included in the package. |
45 # the proto area "manually", so they can be included in the package. |
49 PDOC = $(PROTO_DIR)/usr/share/doc |
46 PDOC_PYLINT = $(PROTOUSRSHAREDOCDIR)/pylint |
50 PDOC_PYLINT = $(PDOC)/pylint |
|
51 PDOC_PYLINT_EXAMPLES = $(PDOC_PYLINT)/examples |
47 PDOC_PYLINT_EXAMPLES = $(PDOC_PYLINT)/examples |
52 |
48 |
53 COMPONENT_POST_INSTALL_ACTION += \ |
49 COMPONENT_POST_INSTALL_ACTION += \ |
54 $(MKDIR) $(PDOC_PYLINT) ; |
50 $(MKDIR) $(PDOC_PYLINT) ; |
55 COMPONENT_POST_INSTALL_ACTION += \ |
51 COMPONENT_POST_INSTALL_ACTION += \ |
80 COMPONENT_POST_INSTALL_ACTION += \ |
76 COMPONENT_POST_INSTALL_ACTION += \ |
81 (cd $(PROTO_DIR)/usr/bin; $(MV) symilar symilar-$(PYTHON_VERSION)) ; |
77 (cd $(PROTO_DIR)/usr/bin; $(MV) symilar symilar-$(PYTHON_VERSION)) ; |
82 |
78 |
83 ASLR_MODE = $(ASLR_NOT_APPLICABLE) |
79 ASLR_MODE = $(ASLR_NOT_APPLICABLE) |
84 |
80 |
85 # common targets |
81 COMPONENT_POST_INSTALL_ACTION += \ |
86 |
82 $(PYTHON.2.7.32) -m py_compile $(PROTOUSRLIBDIR)/python2.7/vendor-packages/pylint/testutils.py |
87 build: $(BUILD_NO_ARCH) |
|
88 |
|
89 install: $(INSTALL_NO_ARCH) |
|
90 $(PYTHON.2.7.32) -m py_compile $(PROTO_DIR)/usr/lib/python2.7/vendor-packages/pylint/testutils.py |
|
91 |
83 |
92 # The tests are run using python 2.7 only and require that |
84 # The tests are run using python 2.7 only and require that |
93 # the python-27 package is installed (does not have to be the default python). |
85 # the python-27 package is installed (does not have to be the default python). |
94 |
86 |
95 # Use the python 2.7 libraries for testing. |
87 # Use the python 2.7 libraries for testing. |
116 |
108 |
117 |
109 |
118 COMPONENT_SYSTEM_TEST_CMD = /usr/bin/pytest-$(PYTHON_VERSION) |
110 COMPONENT_SYSTEM_TEST_CMD = /usr/bin/pytest-$(PYTHON_VERSION) |
119 COMPONENT_SYSTEM_TEST_ARGS = |
111 COMPONENT_SYSTEM_TEST_ARGS = |
120 |
112 |
121 test: $(TEST_NO_ARCH) |
|
122 |
|
123 system-test: $(SYSTEM_TEST_NO_ARCH) |
|
124 |
|
125 REQUIRED_PACKAGES += library/python/logilab-common-27 |
113 REQUIRED_PACKAGES += library/python/logilab-common-27 |
126 REQUIRED_PACKAGES += library/python/astroid-27 |
114 REQUIRED_PACKAGES += library/python/astroid-27 |
127 REQUIRED_PACKAGES += library/python/six-27 |
115 REQUIRED_PACKAGES += library/python/six-27 |