4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
23 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
26 include ..
/..
/..
/make-rules
/shared-macros.mk
28 COMPONENT_NAME
= logilab-common
29 COMPONENT_VERSION
= 0.63.2
30 COMPONENT_PROJECT_URL
= http
://www.logilab.org
/project
/logilab-common
/
31 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
32 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
33 COMPONENT_ARCHIVE_HASH
= \
34 sha256
:603ba00c9bb09219a3bd2906c214d9455481110dacc472f450b53d5ae90f28e7
35 COMPONENT_ARCHIVE_URL
= https
://pypi.python.org
/packages
/1f
/36/70463859e7bd8c37c84f1180da665c2ed394dffd22fc696b70681d871380
/$(COMPONENT_ARCHIVE
)
36 COMPONENT_BUGDB
= python-mod
/logilab-common
38 include $(WS_MAKE_RULES
)/prep.mk
39 include $(WS_MAKE_RULES
)/ips.mk
40 include $(WS_MAKE_RULES
)/setup.py.mk
44 # rename pytest to its versioned name; mediated links (depending on
45 # the python version) in the manifest will create the link from pytest
46 # to the correct pytest-${PYTHON_VERSION}
47 # compile all of the python .py files in the proto area since setup.py doesn't
48 # seem to be doing it for this component.
49 COMPONENT_POST_INSTALL_ACTION
= \
50 (cd
$(PROTO_DIR
)/usr
/bin
; $(MV
) -f pytest pytest-
$(PYTHON_VERSION
)) ; \
51 ($(PYTHON
) -m compileall
$(PROTO_DIR
)$(PYTHON_VENDOR_PACKAGES
))
56 build
: $(BUILD_NO_ARCH
)
58 install: $(INSTALL_NO_ARCH
)
60 # The tests are run using python 2.7 only and require that the
61 # python-27 package is installed (does not have to be the default python).
63 # Use the python 2.7 libraries (via PYTHONPATH setting) for testing.
64 test: PYTHON_VERSION
=2.7
66 COMPONENT_TEST_CMD
= $(PROTOUSRBINDIR
)/pytest-2.7
69 # Expected failures for test target:
70 # 425 test cases, 1 errors, 23 skipped
71 # 21 modules OK (1 failed)
72 # failures: test_locked_for_one_hour
76 REQUIRED_PACKAGES
+= library
/python
/pyorbit-27
77 REQUIRED_PACKAGES
+= runtime
/python-27