author | John Beck <John.Beck@Oracle.COM> |
Tue, 20 Oct 2015 15:05:05 -0700 | |
changeset 4984 | 7145b15b7f0d |
parent 4847 | 05ee227964f9 |
child 7687 | 1093e2a9adbd |
permissions | -rw-r--r-- |
1104
c62d7e76bc87
15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
1 |
# |
c62d7e76bc87
15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
2 |
# CDDL HEADER START |
c62d7e76bc87
15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
3 |
# |
c62d7e76bc87
15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
4 |
# The contents of this file are subject to the terms of the |
c62d7e76bc87
15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
5 |
# Common Development and Distribution License (the "License"). |
c62d7e76bc87
15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
6 |
# You may not use this file except in compliance with the License. |
c62d7e76bc87
15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
7 |
# |
c62d7e76bc87
15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
c62d7e76bc87
15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
9 |
# or http://www.opensolaris.org/os/licensing. |
c62d7e76bc87
15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
10 |
# See the License for the specific language governing permissions |
c62d7e76bc87
15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
11 |
# and limitations under the License. |
c62d7e76bc87
15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
12 |
# |
c62d7e76bc87
15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
c62d7e76bc87
15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
c62d7e76bc87
15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
c62d7e76bc87
15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
c62d7e76bc87
15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
c62d7e76bc87
15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
18 |
# |
c62d7e76bc87
15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
19 |
# CDDL HEADER END |
c62d7e76bc87
15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
20 |
# |
c62d7e76bc87
15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
21 |
|
c62d7e76bc87
15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
22 |
# |
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
1948
diff
changeset
|
23 |
# Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved. |
1104
c62d7e76bc87
15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
24 |
# |
c62d7e76bc87
15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
25 |
|
c62d7e76bc87
15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
26 |
include ../../../make-rules/shared-macros.mk |
c62d7e76bc87
15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
27 |
|
c62d7e76bc87
15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
28 |
COMPONENT_NAME= ipython |
c62d7e76bc87
15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
29 |
COMPONENT_VERSION= 0.10 |
c62d7e76bc87
15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
30 |
COMPONENT_PROJECT_URL= http://ipython.org/ |
c62d7e76bc87
15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
31 |
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
c62d7e76bc87
15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
32 |
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
c62d7e76bc87
15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
33 |
COMPONENT_ARCHIVE_HASH= \ |
c62d7e76bc87
15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
34 |
sha256:60d602637dc5f078b083a4ca5ab64364ba816bd72439844012ed11a30f88228c |
4847
05ee227964f9
21810533 Improve various Python module download locations
Rich Burridge <rich.burridge@oracle.com>
parents:
4663
diff
changeset
|
35 |
COMPONENT_ARCHIVE_URL= $(call pypi_url) |
1104
c62d7e76bc87
15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
36 |
COMPONENT_BUGDB= python-mod/ipython |
c62d7e76bc87
15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
37 |
|
1948
2d1537e7942d
18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents:
1907
diff
changeset
|
38 |
TPNO= 9640 |
2d1537e7942d
18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents:
1907
diff
changeset
|
39 |
|
1907
446472de62e9
PSARC 2014/151 Python 3.4
John Beck <John.Beck@Oracle.COM>
parents:
1434
diff
changeset
|
40 |
# Syntax issues: not Python 3 ready. |
3936
c344422ee38b
20674483 change Userland Python default version from 2.6 to 2.7
John Beck <John.Beck@Oracle.COM>
parents:
3817
diff
changeset
|
41 |
PYTHON_VERSIONS = $(PYTHON2_VERSIONS) |
1907
446472de62e9
PSARC 2014/151 Python 3.4
John Beck <John.Beck@Oracle.COM>
parents:
1434
diff
changeset
|
42 |
|
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
1948
diff
changeset
|
43 |
include $(WS_MAKE_RULES)/prep.mk |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
1948
diff
changeset
|
44 |
include $(WS_MAKE_RULES)/setup.py.mk |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
1948
diff
changeset
|
45 |
include $(WS_MAKE_RULES)/ips.mk |
1104
c62d7e76bc87
15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
46 |
|
c62d7e76bc87
15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
47 |
# Unpack the ipython man pages. |
c62d7e76bc87
15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
48 |
COMPONENT_POST_UNPACK_ACTION = \ |
c62d7e76bc87
15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
49 |
(cd $(SOURCE_DIR)/docs/man; /usr/bin/gunzip * ) |
c62d7e76bc87
15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
50 |
|
3936
c344422ee38b
20674483 change Userland Python default version from 2.6 to 2.7
John Beck <John.Beck@Oracle.COM>
parents:
3817
diff
changeset
|
51 |
# Replace "#!/usr/bin/env ..." shebang lines with properly versioned ones. |
c344422ee38b
20674483 change Userland Python default version from 2.6 to 2.7
John Beck <John.Beck@Oracle.COM>
parents:
3817
diff
changeset
|
52 |
COMPONENT_POST_INSTALL_ACTION = \ |
c344422ee38b
20674483 change Userland Python default version from 2.6 to 2.7
John Beck <John.Beck@Oracle.COM>
parents:
3817
diff
changeset
|
53 |
/usr/bin/find $(PROTOUSRLIBDIR)/python$(PYTHON_VERSION) -name *.py \ |
c344422ee38b
20674483 change Userland Python default version from 2.6 to 2.7
John Beck <John.Beck@Oracle.COM>
parents:
3817
diff
changeset
|
54 |
-exec $(GSED) -i -e 's|env python|python$(PYTHON_VERSION)|' "{}" \; ; |
c344422ee38b
20674483 change Userland Python default version from 2.6 to 2.7
John Beck <John.Beck@Oracle.COM>
parents:
3817
diff
changeset
|
55 |
|
4663
ab6b84c05705
20224689 need to investigate if python/ipython tests can be added to Makefile test target
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
56 |
COMPONENT_TEST_ARGS= ../scripts/iptest |
ab6b84c05705
20224689 need to investigate if python/ipython tests can be added to Makefile test target
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
57 |
|
ab6b84c05705
20224689 need to investigate if python/ipython tests can be added to Makefile test target
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
58 |
# We don't want anything created in the home directory. |
ab6b84c05705
20224689 need to investigate if python/ipython tests can be added to Makefile test target
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
59 |
COMPONENT_TEST_ENV+= IPYTHONDIR=$(BUILD_DIR) |
ab6b84c05705
20224689 need to investigate if python/ipython tests can be added to Makefile test target
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
60 |
|
ab6b84c05705
20224689 need to investigate if python/ipython tests can be added to Makefile test target
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
61 |
# Different amount of tests are run for sparc and x86 |
ab6b84c05705
20224689 need to investigate if python/ipython tests can be added to Makefile test target
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
62 |
COMPONENT_TEST_MASTER = \ |
ab6b84c05705
20224689 need to investigate if python/ipython tests can be added to Makefile test target
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
63 |
$(COMPONENT_TEST_RESULTS_DIR)/results-$(PYTHON_VERSION)-$(MACH)-$(BITS).master |
ab6b84c05705
20224689 need to investigate if python/ipython tests can be added to Makefile test target
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
64 |
|
ab6b84c05705
20224689 need to investigate if python/ipython tests can be added to Makefile test target
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
65 |
# Touching up test results |
ab6b84c05705
20224689 need to investigate if python/ipython tests can be added to Makefile test target
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
66 |
COMPONENT_TEST_TRANSFORMS += \ |
ab6b84c05705
20224689 need to investigate if python/ipython tests can be added to Makefile test target
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
67 |
'-e "s|\(^Ran [0-9][0-9]* tests* \).*|\1|" ' \ |
ab6b84c05705
20224689 need to investigate if python/ipython tests can be added to Makefile test target
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
68 |
'-e "/tmp.*/d" ' \ |
ab6b84c05705
20224689 need to investigate if python/ipython tests can be added to Makefile test target
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
69 |
'-e "/fakemodule.*/d" ' \ |
ab6b84c05705
20224689 need to investigate if python/ipython tests can be added to Makefile test target
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
70 |
'-e "/builds.*/d" ' \ |
ab6b84c05705
20224689 need to investigate if python/ipython tests can be added to Makefile test target
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
71 |
'-e "/home.*/d" ' |
ab6b84c05705
20224689 need to investigate if python/ipython tests can be added to Makefile test target
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
72 |
|
1434
c782e620dd26
17296512 Add ASLR_NOT_APPLICABLE as an ASLR mode in Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
1104
diff
changeset
|
73 |
ASLR_MODE = $(ASLR_NOT_APPLICABLE) |
c782e620dd26
17296512 Add ASLR_NOT_APPLICABLE as an ASLR mode in Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
1104
diff
changeset
|
74 |
|
1104
c62d7e76bc87
15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
75 |
build: $(BUILD_32) |
c62d7e76bc87
15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
76 |
|
c62d7e76bc87
15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
77 |
install: $(INSTALL_32) |
c62d7e76bc87
15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
78 |
|
4663
ab6b84c05705
20224689 need to investigate if python/ipython tests can be added to Makefile test target
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
79 |
test: $(TEST_NO_ARCH) |
1104
c62d7e76bc87
15820218 SUNBT7202658 Move python/ipython from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
80 |
|
4339
6501cf9c29f9
21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents:
3936
diff
changeset
|
81 |
system-test: $(NO_TESTS) |
6501cf9c29f9
21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents:
3936
diff
changeset
|
82 |
|
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
1948
diff
changeset
|
83 |
REQUIRED_PACKAGES += library/python/python-twisted-27 |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
1948
diff
changeset
|
84 |
REQUIRED_PACKAGES += library/python/setuptools-27 |
4663
ab6b84c05705
20224689 need to investigate if python/ipython tests can be added to Makefile test target
James Chang <james.c.chang@Oracle.COM>
parents:
4339
diff
changeset
|
85 |