├── .gitignore
├── .python.metadata
├── DESCRIPTION
├── Makefile
├── bootstrap.sh
├── graphs
└── default
│ └── python.xml
├── manifest
├── nodes
└── opt-python.xml
├── src
├── Makefile
├── dateutil
│ ├── Makefile
│ └── version.mk
├── linux.mk
├── numpy
│ ├── Makefile
│ └── version.mk
├── opt-python-modules
│ ├── Makefile
│ ├── opt-python.in
│ └── version.mk
├── pip
│ ├── Makefile
│ └── version.mk
├── python-2
│ ├── Makefile
│ ├── filter_python_requires.sh
│ ├── rocks-python.csh
│ ├── rocks-python.sh
│ └── version.mk
├── python-3
│ ├── Makefile
│ └── version.mk
├── setuptools
│ ├── Makefile
│ └── version.mk
├── sunos.mk
├── usersguide
│ ├── Makefile
│ ├── copyrights.sgml
│ ├── images
│ │ └── i-01.png
│ ├── index.sgml
│ ├── installing.sgml
│ ├── preface.sgml
│ ├── using.sgml
│ └── version.mk
└── virtualenv
│ ├── Makefile
│ └── version.mk
└── version.mk
/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | # build directory
3 | BUILD/
4 | RPMS/
5 | SOURCES/
6 | SPECS/
7 |
8 | bootstrap.py
9 |
10 | *.pyc
11 |
12 | _os
13 | _arch
14 | _distribution
15 |
16 | # ignore version.mk
17 | rocks-version.mk
18 | rocks-version-common.mk
19 |
20 | # ignore python.mk
21 | python.mk
22 |
23 | # ignore Rules files
24 | Rules-install.mk
25 | Rules-linux-centos.mk
26 | Rules-linux.mk
27 | Rules-rcfiles.mk
28 | Rules-scripts.mk
29 | Rules.mk
30 | Rolls.mk
31 |
32 | # --- BEGIN --- binaries files
33 | src/numpy/numpy-*gz
34 | src/dateutil/python-dateutil*gz
35 | src/python-2/Python-2*gz
36 | src/python-3/Python-3*gz
37 | src/setuptools/setuptools-*gz
38 | src/setuptools3/setuptools-*gz
39 |
40 | # --- END ---
41 |
--------------------------------------------------------------------------------
/.python.metadata:
--------------------------------------------------------------------------------
1 | a2c02c5fb2ab8cf630982cddc6821e74f5769974 src/numpy/numpy-1.8.0.tar.gz 0B0LD0shfkvCReS1NQmFhenBOeFU
2 | 7a191bcccb598ccbf2fa6a0edce24a97df3fc0ad src/python-2/Python-2.7.9.tgz 0B0LD0shfkvCRNkJPM3JZeURHdTQ
3 | a4d96b5cad5ed04cf02c9fcedaaaab3491bc885f src/python-3/Python-3.3.6.tgz 0B0LD0shfkvCRN2lwYkpWbVg2VVE
4 | dce2b862a30099ee48c19a7c34e2d7c2eeff5670 src/python-2/Python-2.7.13.tgz 0B0LD0shfkvCRMnZJTUg2ZFNNRkE
5 | b157ed490a453387874b354b743d1ae656680403 src/python-3/Python-3.6.2.tgz 0B0LD0shfkvCRSWFXbkR3ajdBcDQ
6 | c674f97b46fa01317e4fd2050622ece0fe5bd7f0 src/numpy/numpy-1.13.1.tar.gz 0B0LD0shfkvCRdnlHZl80YzRtbjA
7 | d24554df5df8ad7ecbb4d434c70008ea31109494 src/setuptools/setuptools-36.2.7.tar.gz 0B0LD0shfkvCRQ2hwb0o4LVpfTTQ
8 | sources/setuptools-36.2.7.tar.gz
9 | db2ace298dee7e47fd720ed03eb790885347bf4e src/dateutil/python-dateutil-2.6.1.tar.gz 0B0LD0shfkvCRM1dBXzBWUGxHeVU
10 | 995ce0fa007210ac2f10258999d06813ecdd6eeb src/virtualenv/virtualenv-15.1.0.tar.gz 0B0LD0shfkvCRbVR6RUR0VTY3bkk
11 | 57ff41e99cb01b6a1c2b0999161589b726f0ec8b src/pip/pip-9.0.1.tar.gz 0B0LD0shfkvCRSjY4WHNiY0FwM3c
12 |
--------------------------------------------------------------------------------
/DESCRIPTION:
--------------------------------------------------------------------------------
1 | Python 2.X and 3.X
2 |
--------------------------------------------------------------------------------
/Makefile:
--------------------------------------------------------------------------------
1 | #
2 | # $Id: Makefile,v 1.4 2012/11/27 00:49:12 phil Exp $
3 | #
4 | # @Copyright@
5 | #
6 | # Rocks(r)
7 | # www.rocksclusters.org
8 | # version 6.2 (SideWinder)
9 | # version 7.0 (Manzanita)
10 | #
11 | # Copyright (c) 2000 - 2017 The Regents of the University of California.
12 | # All rights reserved.
13 | #
14 | # Redistribution and use in source and binary forms, with or without
15 | # modification, are permitted provided that the following conditions are
16 | # met:
17 | #
18 | # 1. Redistributions of source code must retain the above copyright
19 | # notice, this list of conditions and the following disclaimer.
20 | #
21 | # 2. Redistributions in binary form must reproduce the above copyright
22 | # notice unmodified and in its entirety, this list of conditions and the
23 | # following disclaimer in the documentation and/or other materials provided
24 | # with the distribution.
25 | #
26 | # 3. All advertising and press materials, printed or electronic, mentioning
27 | # features or use of this software must display the following acknowledgement:
28 | #
29 | # "This product includes software developed by the Rocks(r)
30 | # Cluster Group at the San Diego Supercomputer Center at the
31 | # University of California, San Diego and its contributors."
32 | #
33 | # 4. Except as permitted for the purposes of acknowledgment in paragraph 3,
34 | # neither the name or logo of this software nor the names of its
35 | # authors may be used to endorse or promote products derived from this
36 | # software without specific prior written permission. The name of the
37 | # software includes the following terms, and any derivatives thereof:
38 | # "Rocks", "Rocks Clusters", and "Avalanche Installer". For licensing of
39 | # the associated name, interested parties should contact Technology
40 | # Transfer & Intellectual Property Services, University of California,
41 | # San Diego, 9500 Gilman Drive, Mail Code 0910, La Jolla, CA 92093-0910,
42 | # Ph: (858) 534-5815, FAX: (858) 534-7345, E-MAIL:invent@ucsd.edu
43 | #
44 | # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS''
45 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
46 | # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
47 | # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS
48 | # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
49 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
50 | # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
51 | # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
52 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
53 | # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
54 | # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
55 | #
56 | # @Copyright@
57 | #
58 | # $Log: Makefile,v $
59 | # Revision 1.4 2012/11/27 00:49:12 phil
60 | # Copyright Storm for Emerald Boa
61 | #
62 | # Revision 1.3 2012/05/06 05:49:19 phil
63 | # Copyright Storm for Mamba
64 | #
65 | # Revision 1.2 2011/07/23 02:31:16 phil
66 | # Viper Copyright
67 | #
68 | # Revision 1.1 2011/06/03 00:18:47 anoop
69 | # Python Roll.
70 | #
71 | # Include python 2.7.1 and python 3.2
72 | #
73 | #
74 |
75 | -include $(ROLLSROOT)/etc/Rolls.mk
76 | include Rolls.mk
77 |
78 | default: roll
79 |
--------------------------------------------------------------------------------
/bootstrap.sh:
--------------------------------------------------------------------------------
1 | # $Id: bootstrap.sh,v 1.5 2012/12/14 21:54:16 clem Exp $
2 |
3 | # @Copyright@
4 | #
5 | # Rocks(r)
6 | # www.rocksclusters.org
7 | # version 6.2 (SideWinder)
8 | # version 7.0 (Manzanita)
9 | #
10 | # Copyright (c) 2000 - 2017 The Regents of the University of California.
11 | # All rights reserved.
12 | #
13 | # Redistribution and use in source and binary forms, with or without
14 | # modification, are permitted provided that the following conditions are
15 | # met:
16 | #
17 | # 1. Redistributions of source code must retain the above copyright
18 | # notice, this list of conditions and the following disclaimer.
19 | #
20 | # 2. Redistributions in binary form must reproduce the above copyright
21 | # notice unmodified and in its entirety, this list of conditions and the
22 | # following disclaimer in the documentation and/or other materials provided
23 | # with the distribution.
24 | #
25 | # 3. All advertising and press materials, printed or electronic, mentioning
26 | # features or use of this software must display the following acknowledgement:
27 | #
28 | # "This product includes software developed by the Rocks(r)
29 | # Cluster Group at the San Diego Supercomputer Center at the
30 | # University of California, San Diego and its contributors."
31 | #
32 | # 4. Except as permitted for the purposes of acknowledgment in paragraph 3,
33 | # neither the name or logo of this software nor the names of its
34 | # authors may be used to endorse or promote products derived from this
35 | # software without specific prior written permission. The name of the
36 | # software includes the following terms, and any derivatives thereof:
37 | # "Rocks", "Rocks Clusters", and "Avalanche Installer". For licensing of
38 | # the associated name, interested parties should contact Technology
39 | # Transfer & Intellectual Property Services, University of California,
40 | # San Diego, 9500 Gilman Drive, Mail Code 0910, La Jolla, CA 92093-0910,
41 | # Ph: (858) 534-5815, FAX: (858) 534-7345, E-MAIL:invent@ucsd.edu
42 | #
43 | # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS''
44 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
45 | # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
46 | # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS
47 | # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
48 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
49 | # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
50 | # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
51 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
52 | # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
53 | # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
54 | #
55 | # @Copyright@
56 |
57 | # $Log: bootstrap.sh,v $
58 | # Revision 1.5 2012/12/14 21:54:16 clem
59 | # adding sqlite-devel to the boostrap so that support to slite3 is built into python
60 | #
61 | # Revision 1.4 2012/11/27 00:49:12 phil
62 | # Copyright Storm for Emerald Boa
63 | #
64 | # Revision 1.3 2012/05/06 05:49:19 phil
65 | # Copyright Storm for Mamba
66 | #
67 | # Revision 1.2 2011/07/23 02:31:16 phil
68 | # Viper Copyright
69 | #
70 | # Revision 1.1 2011/07/22 17:54:09 anoop
71 | # Added bootstrap script to python roll. Required for itself
72 | # and for the bio roll
73 | #
74 |
75 | if [ ! -f "$ROLLSROOT/../../bin/get_sources.sh" ]; then
76 | echo "To compile this roll on Rocks 6.1.1 or older you need to install a newer rocks-devel rpm.
77 | Install it with:
78 | rpm -Uvh https://googledrive.com/host/0B0LD0shfkvCRRGtadUFTQkhoZWs/rocks-devel-6.2-3.x86_64.rpm
79 | If you need an older version of this roll you can get it from:
80 | https://github.com/rocksclusters-attic"
81 | exit 1
82 | fi
83 |
84 | . $ROLLSROOT/etc/bootstrap-functions.sh
85 |
86 |
87 | #this is required only to compile sqlite3 support in python
88 | yum -y install sqlite-devel
89 |
90 | compile python-2
91 | install opt-python-27
92 |
93 | compile python-3
94 | install opt-python-3
95 |
96 | compile_and_install opt-python-modules
97 |
98 | compile setuptools
99 | install opt-setuptools-27
100 |
--------------------------------------------------------------------------------
/graphs/default/python.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | The python Roll
6 |
7 |
8 |
9 | Copyright (c) 2000 - 2017 The Regents of the University of California.
10 | All rights reserved. Rocks(r) v6.2/v7.0 www.rocksclusters.org
11 |
12 |
13 |
14 |
15 | $Log: python.xml,v $
16 | Revision 1.3 2012/05/06 05:49:19 phil
17 | Copyright Storm for Mamba
18 |
19 | Revision 1.2 2011/07/23 02:31:16 phil
20 | Viper Copyright
21 |
22 | Revision 1.1 2011/06/03 00:18:48 anoop
23 | Python Roll.
24 |
25 | Include python 2.7.1 and python 3.2
26 |
27 |
28 |
29 |
30 | opt-python
31 |
32 |
33 |
--------------------------------------------------------------------------------
/manifest:
--------------------------------------------------------------------------------
1 | opt-python-27
2 | opt-python-3
3 | opt-numpy
4 | opt-python-modules
5 | roll-python-usersguide
6 | roll-python-kickstart
7 |
--------------------------------------------------------------------------------
/nodes/opt-python.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | The python Roll
6 |
7 |
8 |
9 | Copyright (c) 2000 - 2017 The Regents of the University of California.
10 | All rights reserved. Rocks(r) v6.2/v7.0 www.rocksclusters.org
11 |
12 |
13 |
14 |
15 | $Log: opt-python.xml,v $
16 | Revision 1.4 2012/05/06 05:49:19 phil
17 | Copyright Storm for Mamba
18 |
19 | Revision 1.3 2011/07/23 02:31:16 phil
20 | Viper Copyright
21 |
22 | Revision 1.2 2011/07/14 02:24:33 anoop
23 | Update python
24 | Add numpy
25 |
26 | Revision 1.1 2011/06/03 00:18:48 anoop
27 | Python Roll.
28 |
29 | Include python 2.7.1 and python 3.2
30 |
31 |
32 | opt-python-27
33 | opt-python-3
34 | roll-python-usersguide
35 |
36 | opt-numpy-27
37 | opt-setuptools-27
38 | opt-dateutil-27
39 | opt-python-modules
40 | opt-pip
41 | opt-virtualenv
42 |
43 |
--------------------------------------------------------------------------------
/src/Makefile:
--------------------------------------------------------------------------------
1 | # $Id: Makefile,v 1.4 2012/11/27 00:49:12 phil Exp $
2 | #
3 | # @Copyright@
4 | #
5 | # Rocks(r)
6 | # www.rocksclusters.org
7 | # version 6.2 (SideWinder)
8 | # version 7.0 (Manzanita)
9 | #
10 | # Copyright (c) 2000 - 2017 The Regents of the University of California.
11 | # All rights reserved.
12 | #
13 | # Redistribution and use in source and binary forms, with or without
14 | # modification, are permitted provided that the following conditions are
15 | # met:
16 | #
17 | # 1. Redistributions of source code must retain the above copyright
18 | # notice, this list of conditions and the following disclaimer.
19 | #
20 | # 2. Redistributions in binary form must reproduce the above copyright
21 | # notice unmodified and in its entirety, this list of conditions and the
22 | # following disclaimer in the documentation and/or other materials provided
23 | # with the distribution.
24 | #
25 | # 3. All advertising and press materials, printed or electronic, mentioning
26 | # features or use of this software must display the following acknowledgement:
27 | #
28 | # "This product includes software developed by the Rocks(r)
29 | # Cluster Group at the San Diego Supercomputer Center at the
30 | # University of California, San Diego and its contributors."
31 | #
32 | # 4. Except as permitted for the purposes of acknowledgment in paragraph 3,
33 | # neither the name or logo of this software nor the names of its
34 | # authors may be used to endorse or promote products derived from this
35 | # software without specific prior written permission. The name of the
36 | # software includes the following terms, and any derivatives thereof:
37 | # "Rocks", "Rocks Clusters", and "Avalanche Installer". For licensing of
38 | # the associated name, interested parties should contact Technology
39 | # Transfer & Intellectual Property Services, University of California,
40 | # San Diego, 9500 Gilman Drive, Mail Code 0910, La Jolla, CA 92093-0910,
41 | # Ph: (858) 534-5815, FAX: (858) 534-7345, E-MAIL:invent@ucsd.edu
42 | #
43 | # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS''
44 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
45 | # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
46 | # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS
47 | # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
48 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
49 | # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
50 | # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
51 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
52 | # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
53 | # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
54 | #
55 | # @Copyright@
56 | #
57 | # $Log: Makefile,v $
58 | # Revision 1.4 2012/11/27 00:49:12 phil
59 | # Copyright Storm for Emerald Boa
60 | #
61 | # Revision 1.3 2012/05/06 05:49:19 phil
62 | # Copyright Storm for Mamba
63 | #
64 | # Revision 1.2 2011/07/23 02:31:16 phil
65 | # Viper Copyright
66 | #
67 | # Revision 1.1 2011/06/03 00:18:48 anoop
68 | # Python Roll.
69 | #
70 | # Include python 2.7.1 and python 3.2
71 | #
72 |
73 | -include $(shell $(ROCKSROOT)/bin/arch).mk
74 | -include $(shell $(ROCKSROOT)/bin/os).mk
75 |
76 | default: pkg
77 |
78 | copyright pkg rpm clean::
79 | for i in $(SRCDIRS) ; do \
80 | cd $$i; \
81 | $(MAKE) $@ || exit 2 ; \
82 | cd -; \
83 | done
84 |
--------------------------------------------------------------------------------
/src/dateutil/Makefile:
--------------------------------------------------------------------------------
1 | # $Id: Makefile,v 1.4 2012/11/27 00:49:12 phil Exp $
2 |
3 | # @Copyright@
4 | #
5 | # Rocks(r)
6 | # www.rocksclusters.org
7 | # version 6.2 (SideWinder)
8 | # version 7.0 (Manzanita)
9 | #
10 | # Copyright (c) 2000 - 2017 The Regents of the University of California.
11 | # All rights reserved.
12 | #
13 | # Redistribution and use in source and binary forms, with or without
14 | # modification, are permitted provided that the following conditions are
15 | # met:
16 | #
17 | # 1. Redistributions of source code must retain the above copyright
18 | # notice, this list of conditions and the following disclaimer.
19 | #
20 | # 2. Redistributions in binary form must reproduce the above copyright
21 | # notice unmodified and in its entirety, this list of conditions and the
22 | # following disclaimer in the documentation and/or other materials provided
23 | # with the distribution.
24 | #
25 | # 3. All advertising and press materials, printed or electronic, mentioning
26 | # features or use of this software must display the following acknowledgement:
27 | #
28 | # "This product includes software developed by the Rocks(r)
29 | # Cluster Group at the San Diego Supercomputer Center at the
30 | # University of California, San Diego and its contributors."
31 | #
32 | # 4. Except as permitted for the purposes of acknowledgment in paragraph 3,
33 | # neither the name or logo of this software nor the names of its
34 | # authors may be used to endorse or promote products derived from this
35 | # software without specific prior written permission. The name of the
36 | # software includes the following terms, and any derivatives thereof:
37 | # "Rocks", "Rocks Clusters", and "Avalanche Installer". For licensing of
38 | # the associated name, interested parties should contact Technology
39 | # Transfer & Intellectual Property Services, University of California,
40 | # San Diego, 9500 Gilman Drive, Mail Code 0910, La Jolla, CA 92093-0910,
41 | # Ph: (858) 534-5815, FAX: (858) 534-7345, E-MAIL:invent@ucsd.edu
42 | #
43 | # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS''
44 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
45 | # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
46 | # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS
47 | # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
48 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
49 | # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
50 | # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
51 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
52 | # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
53 | # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
54 | #
55 | # @Copyright@
56 |
57 | # $Log: Makefile,v $
58 | # Revision 1.4 2012/11/27 00:49:12 phil
59 | # Copyright Storm for Emerald Boa
60 | #
61 | # Revision 1.3 2012/05/06 05:49:19 phil
62 | # Copyright Storm for Mamba
63 | #
64 | # Revision 1.2 2011/07/23 02:31:16 phil
65 | # Viper Copyright
66 | #
67 | # Revision 1.1 2011/07/14 02:24:33 anoop
68 | # Update python
69 | # Add numpy
70 | #
71 |
72 | PKGROOT = /opt/python
73 | REDHAT.ROOT = $(CURDIR)/../../
74 | -include $(ROCKSROOT)/etc/Rules.mk
75 | include Rules.mk
76 |
77 | RPM.EXTRAS += "AutoReq: no"
78 |
79 | MODULE_PROFILE = /etc/profile.d/modules.sh
80 | MODULE = module
81 | MODULE-NAME = opt-python
82 | PYTHON = python2.7
83 |
84 | build:
85 | gunzip -c $(ARCHIVENAME)-$(VERSION).tar.gz | $(TAR) -xf -
86 | ( \
87 | cd $(ARCHIVENAME)-$(VERSION); \
88 | source $(MODULE_PROFILE); \
89 | $(MODULE) load $(MODULE-NAME); \
90 | $(PYTHON) setup.py build; \
91 | $(MODULE) unload $(MODULE-NAME); \
92 | )
93 |
94 | install test::
95 | ( \
96 | cd $(ARCHIVENAME)-$(VERSION); \
97 | source $(MODULE_PROFILE); \
98 | $(MODULE) load $(MODULE-NAME); \
99 | $(PYTHON) setup.py $@ --root=$(ROOT)/; \
100 | $(MODULE) unload $(MODULE-NAME); \
101 | )
102 |
103 | clean::
104 | rm -rf $(ARCHIVENAME)-$(VERSION)
105 |
--------------------------------------------------------------------------------
/src/dateutil/version.mk:
--------------------------------------------------------------------------------
1 | NAME = opt-dateutil-27
2 | VERSION = 2.6.1
3 | ARCHIVENAME = python-dateutil
4 | RELEASE = 0
5 | PYTHON = python2.7
6 | RPM.FILES = \
7 | /opt/python/lib/$(PYTHON)/site-packages/*
8 |
--------------------------------------------------------------------------------
/src/linux.mk:
--------------------------------------------------------------------------------
1 | SRCDIRS = `find * -prune\
2 | -type d \
3 | ! -name CVS \
4 | ! -name .`
5 |
--------------------------------------------------------------------------------
/src/numpy/Makefile:
--------------------------------------------------------------------------------
1 | # $Id: Makefile,v 1.4 2012/11/27 00:49:12 phil Exp $
2 |
3 | # @Copyright@
4 | #
5 | # Rocks(r)
6 | # www.rocksclusters.org
7 | # version 6.2 (SideWinder)
8 | # version 7.0 (Manzanita)
9 | #
10 | # Copyright (c) 2000 - 2017 The Regents of the University of California.
11 | # All rights reserved.
12 | #
13 | # Redistribution and use in source and binary forms, with or without
14 | # modification, are permitted provided that the following conditions are
15 | # met:
16 | #
17 | # 1. Redistributions of source code must retain the above copyright
18 | # notice, this list of conditions and the following disclaimer.
19 | #
20 | # 2. Redistributions in binary form must reproduce the above copyright
21 | # notice unmodified and in its entirety, this list of conditions and the
22 | # following disclaimer in the documentation and/or other materials provided
23 | # with the distribution.
24 | #
25 | # 3. All advertising and press materials, printed or electronic, mentioning
26 | # features or use of this software must display the following acknowledgement:
27 | #
28 | # "This product includes software developed by the Rocks(r)
29 | # Cluster Group at the San Diego Supercomputer Center at the
30 | # University of California, San Diego and its contributors."
31 | #
32 | # 4. Except as permitted for the purposes of acknowledgment in paragraph 3,
33 | # neither the name or logo of this software nor the names of its
34 | # authors may be used to endorse or promote products derived from this
35 | # software without specific prior written permission. The name of the
36 | # software includes the following terms, and any derivatives thereof:
37 | # "Rocks", "Rocks Clusters", and "Avalanche Installer". For licensing of
38 | # the associated name, interested parties should contact Technology
39 | # Transfer & Intellectual Property Services, University of California,
40 | # San Diego, 9500 Gilman Drive, Mail Code 0910, La Jolla, CA 92093-0910,
41 | # Ph: (858) 534-5815, FAX: (858) 534-7345, E-MAIL:invent@ucsd.edu
42 | #
43 | # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS''
44 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
45 | # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
46 | # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS
47 | # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
48 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
49 | # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
50 | # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
51 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
52 | # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
53 | # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
54 | #
55 | # @Copyright@
56 |
57 | # $Log: Makefile,v $
58 | # Revision 1.4 2012/11/27 00:49:12 phil
59 | # Copyright Storm for Emerald Boa
60 | #
61 | # Revision 1.3 2012/05/06 05:49:19 phil
62 | # Copyright Storm for Mamba
63 | #
64 | # Revision 1.2 2011/07/23 02:31:16 phil
65 | # Viper Copyright
66 | #
67 | # Revision 1.1 2011/07/14 02:24:33 anoop
68 | # Update python
69 | # Add numpy
70 | #
71 |
72 | PKGROOT = /opt/python
73 | REDHAT.ROOT = $(CURDIR)/../../
74 | -include $(ROCKSROOT)/etc/Rules.mk
75 | include Rules.mk
76 |
77 | RPM.EXTRAS += "AutoReq: no"
78 |
79 | MODULE_PROFILE = /etc/profile.d/modules.sh
80 | MODULE = module
81 | MODULE-NAME = opt-python
82 | PYTHON = python2.7
83 |
84 | build:
85 | gunzip -c $(ARCHIVENAME)-$(VERSION).tar.gz | $(TAR) -xf -
86 | ( \
87 | cd $(ARCHIVENAME)-$(VERSION); \
88 | source $(MODULE_PROFILE); \
89 | $(MODULE) load $(MODULE-NAME); \
90 | $(PYTHON) setup.py build; \
91 | $(MODULE) unload $(MODULE-NAME); \
92 | )
93 |
94 | install test::
95 | ( \
96 | cd $(ARCHIVENAME)-$(VERSION); \
97 | source $(MODULE_PROFILE); \
98 | $(MODULE) load $(MODULE-NAME); \
99 | $(PYTHON) setup.py $@ --root=$(ROOT)/; \
100 | $(MODULE) unload $(MODULE-NAME); \
101 | )
102 |
103 | clean::
104 | rm -rf $(ARCHIVENAME)-$(VERSION)
105 |
--------------------------------------------------------------------------------
/src/numpy/version.mk:
--------------------------------------------------------------------------------
1 | NAME = opt-numpy-27
2 | VERSION = 1.13.1
3 | ARCHIVENAME = numpy
4 | RELEASE = 1
5 | RPM.FILES = \
6 | /opt/python/lib/python2.7/site-packages/*\\n\
7 | /opt/python/bin/*
8 | RPM.REQUIRES = opt-python-27
9 | RPM.DESCRIPTION = NumPy is the fundamental package needed for scientific computing with Python. This package contains: a powerful N-dimensional array object, sophisticated (broadcasting) functions, tools for integrating C/C++ and Fortran code, and useful linear algebra, Fourier transform, and random number capabilities.
10 |
--------------------------------------------------------------------------------
/src/opt-python-modules/Makefile:
--------------------------------------------------------------------------------
1 | #
2 | # $Id: Makefile,v 1.2 2012/11/27 00:49:01 phil Exp $
3 | #
4 | # @Copyright@
5 | #
6 | # Rocks(r)
7 | # www.rocksclusters.org
8 | # version 6.2 (SideWinder)
9 | # version 7.0 (Manzanita)
10 | #
11 | # Copyright (c) 2000 - 2017 The Regents of the University of California.
12 | # All rights reserved.
13 | #
14 | # Redistribution and use in source and binary forms, with or without
15 | # modification, are permitted provided that the following conditions are
16 | # met:
17 | #
18 | # 1. Redistributions of source code must retain the above copyright
19 | # notice, this list of conditions and the following disclaimer.
20 | #
21 | # 2. Redistributions in binary form must reproduce the above copyright
22 | # notice unmodified and in its entirety, this list of conditions and the
23 | # following disclaimer in the documentation and/or other materials provided
24 | # with the distribution.
25 | #
26 | # 3. All advertising and press materials, printed or electronic, mentioning
27 | # features or use of this software must display the following acknowledgement:
28 | #
29 | # "This product includes software developed by the Rocks(r)
30 | # Cluster Group at the San Diego Supercomputer Center at the
31 | # University of California, San Diego and its contributors."
32 | #
33 | # 4. Except as permitted for the purposes of acknowledgment in paragraph 3,
34 | # neither the name or logo of this software nor the names of its
35 | # authors may be used to endorse or promote products derived from this
36 | # software without specific prior written permission. The name of the
37 | # software includes the following terms, and any derivatives thereof:
38 | # "Rocks", "Rocks Clusters", and "Avalanche Installer". For licensing of
39 | # the associated name, interested parties should contact Technology
40 | # Transfer & Intellectual Property Services, University of California,
41 | # San Diego, 9500 Gilman Drive, Mail Code 0910, La Jolla, CA 92093-0910,
42 | # Ph: (858) 534-5815, FAX: (858) 534-7345, E-MAIL:invent@ucsd.edu
43 | #
44 | # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS''
45 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
46 | # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
47 | # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS
48 | # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
49 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
50 | # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
51 | # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
52 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
53 | # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
54 | # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
55 | #
56 | # @Copyright@
57 | #
58 |
59 | PKGROOT = /usr/share/Modules/modulefiles
60 | REDHAT.ROOT = $(CURDIR)/../../
61 |
62 | -include $(ROCKSROOT)/etc/Rules.mk
63 | include Rules.mk
64 |
65 | MODULESFILES = opt-python
66 |
67 | %: %.in
68 | $(SED) $(SEDSCRIPT) $^ > $@
69 |
70 | pretar:: $(VERSION.MK.INCLUDE)
71 |
72 | $(VERSION.MK.INCLUDE):
73 | if [ -f $(VERSION.MK.MASTER.DIR)/$(VERSION.MK.MASTER) ]; then \
74 | /bin/cp $(VERSION.MK.MASTER.DIR)/$(VERSION.MK.MASTER) $@; \
75 | fi
76 |
77 | build: $(MODULESFILES)
78 |
79 | install:: $(MODULESFILES)
80 | mkdir -p $(ROOT)/$(PKGROOT)
81 | install -m 755 $(MODULESFILES) $(ROOT)/$(PKGROOT)
82 |
83 | clean::
84 | rm -rf $(NAME).spec.in
85 | rm -rf $(MODULESFILES)
86 | rm -rf $(VERSION.MK.INCLUDE)
87 |
88 |
--------------------------------------------------------------------------------
/src/opt-python-modules/opt-python.in:
--------------------------------------------------------------------------------
1 | #%Module1.0#####################################################################
2 | ##
3 | ## opt-python modulefile
4 | ##
5 | ## modulefiles/
6 | ##
7 | proc ModulesHelp { } {
8 | global pythonversion
9 |
10 | puts stderr "\t Use /opt/python/bin/python as your Python"
11 | puts stderr "\n\tVersion $pythonversion\n"
12 | }
13 |
14 | module-whatis "opt-python"
15 | module-whatis "Version: 2.7.13 and 3.6"
16 |
17 | # for Tcl script use only
18 | set pythonversion @VERSION@
19 |
20 | prepend-path PATH /opt/python/bin
21 | prepend-path LD_LIBRARY_PATH /opt/python/lib
22 | prepend-path LIBPATH /opt/python/lib
23 | prepend-path MANPATH /opt/python/share/man
24 |
--------------------------------------------------------------------------------
/src/opt-python-modules/version.mk:
--------------------------------------------------------------------------------
1 | # Get the python-2 version from it's version.mk file. See Makefile
2 | VERSION.MK.MASTER = version.mk
3 | VERSION.MK.MASTER.DIR = ../python-2
4 | VERSION.MK.INCLUDE = python2.version.mk
5 |
6 | include $(VERSION.MK.INCLUDE)
7 | PKGROOT = /usr/share/Modules/modulefiles
8 | NAME = opt-python-modules
9 | RELEASE = 2
10 | RPM.REQUIRES = environment-modules
11 | RPM.FILES = $(PKGROOT)/*
12 |
--------------------------------------------------------------------------------
/src/pip/Makefile:
--------------------------------------------------------------------------------
1 | # $Id: Makefile,v 1.4 2012/11/27 00:49:12 phil Exp $
2 |
3 | # @Copyright@
4 | #
5 | # Rocks(r)
6 | # www.rocksclusters.org
7 | # version 6.2 (SideWinder)
8 | # version 7.0 (Manzanita)
9 | #
10 | # Copyright (c) 2000 - 2017 The Regents of the University of California.
11 | # All rights reserved.
12 | #
13 | # Redistribution and use in source and binary forms, with or without
14 | # modification, are permitted provided that the following conditions are
15 | # met:
16 | #
17 | # 1. Redistributions of source code must retain the above copyright
18 | # notice, this list of conditions and the following disclaimer.
19 | #
20 | # 2. Redistributions in binary form must reproduce the above copyright
21 | # notice unmodified and in its entirety, this list of conditions and the
22 | # following disclaimer in the documentation and/or other materials provided
23 | # with the distribution.
24 | #
25 | # 3. All advertising and press materials, printed or electronic, mentioning
26 | # features or use of this software must display the following acknowledgement:
27 | #
28 | # "This product includes software developed by the Rocks(r)
29 | # Cluster Group at the San Diego Supercomputer Center at the
30 | # University of California, San Diego and its contributors."
31 | #
32 | # 4. Except as permitted for the purposes of acknowledgment in paragraph 3,
33 | # neither the name or logo of this software nor the names of its
34 | # authors may be used to endorse or promote products derived from this
35 | # software without specific prior written permission. The name of the
36 | # software includes the following terms, and any derivatives thereof:
37 | # "Rocks", "Rocks Clusters", and "Avalanche Installer". For licensing of
38 | # the associated name, interested parties should contact Technology
39 | # Transfer & Intellectual Property Services, University of California,
40 | # San Diego, 9500 Gilman Drive, Mail Code 0910, La Jolla, CA 92093-0910,
41 | # Ph: (858) 534-5815, FAX: (858) 534-7345, E-MAIL:invent@ucsd.edu
42 | #
43 | # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS''
44 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
45 | # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
46 | # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS
47 | # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
48 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
49 | # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
50 | # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
51 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
52 | # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
53 | # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
54 | #
55 | # @Copyright@
56 |
57 | # $Log: Makefile,v $
58 | # Revision 1.4 2012/11/27 00:49:12 phil
59 | # Copyright Storm for Emerald Boa
60 | #
61 | # Revision 1.3 2012/05/06 05:49:19 phil
62 | # Copyright Storm for Mamba
63 | #
64 | # Revision 1.2 2011/07/23 02:31:16 phil
65 | # Viper Copyright
66 | #
67 | # Revision 1.1 2011/07/14 02:24:33 anoop
68 | # Update python
69 | # Add numpy
70 | #
71 |
72 | PKGROOT = /opt/python
73 | REDHAT.ROOT = $(CURDIR)/../../
74 | -include $(ROCKSROOT)/etc/Rules.mk
75 | include Rules.mk
76 |
77 | RPM.EXTRAS += "AutoReq: no"
78 |
79 | MODULE_PROFILE = /etc/profile.d/modules.sh
80 | MODULE = module
81 | MODULE-NAME = opt-python
82 | PYTHON = python2.7
83 |
84 | build:
85 | gunzip -c $(ARCHIVENAME)-$(VERSION).tar.gz | $(TAR) -xf -
86 | ( \
87 | cd $(ARCHIVENAME)-$(VERSION); \
88 | source $(MODULE_PROFILE); \
89 | $(MODULE) load $(MODULE-NAME); \
90 | $(PYTHON) setup.py build; \
91 | $(MODULE) unload $(MODULE-NAME); \
92 | )
93 |
94 | install test::
95 | ( \
96 | cd $(ARCHIVENAME)-$(VERSION); \
97 | source $(MODULE_PROFILE); \
98 | $(MODULE) load $(MODULE-NAME); \
99 | $(PYTHON) setup.py $@ --root=$(ROOT)/; \
100 | $(MODULE) unload $(MODULE-NAME); \
101 | )
102 |
103 | clean::
104 | rm -rf $(ARCHIVENAME)-$(VERSION)
105 |
--------------------------------------------------------------------------------
/src/pip/version.mk:
--------------------------------------------------------------------------------
1 | NAME = opt-pip
2 | VERSION = 9.0.1
3 | ARCHIVENAME = pip
4 | RELEASE = 0
5 | PYTHON = python2.7
6 | RPM.FILES = \
7 | /opt/python/lib/$(PYTHON)/site-packages/*\\n\
8 | /opt/python/bin/*
9 |
--------------------------------------------------------------------------------
/src/python-2/Makefile:
--------------------------------------------------------------------------------
1 | # $Id: Makefile,v 1.5 2012/11/27 00:49:12 phil Exp $
2 | #
3 | # @Copyright@
4 | #
5 | # Rocks(r)
6 | # www.rocksclusters.org
7 | # version 6.2 (SideWinder)
8 | # version 7.0 (Manzanita)
9 | #
10 | # Copyright (c) 2000 - 2017 The Regents of the University of California.
11 | # All rights reserved.
12 | #
13 | # Redistribution and use in source and binary forms, with or without
14 | # modification, are permitted provided that the following conditions are
15 | # met:
16 | #
17 | # 1. Redistributions of source code must retain the above copyright
18 | # notice, this list of conditions and the following disclaimer.
19 | #
20 | # 2. Redistributions in binary form must reproduce the above copyright
21 | # notice unmodified and in its entirety, this list of conditions and the
22 | # following disclaimer in the documentation and/or other materials provided
23 | # with the distribution.
24 | #
25 | # 3. All advertising and press materials, printed or electronic, mentioning
26 | # features or use of this software must display the following acknowledgement:
27 | #
28 | # "This product includes software developed by the Rocks(r)
29 | # Cluster Group at the San Diego Supercomputer Center at the
30 | # University of California, San Diego and its contributors."
31 | #
32 | # 4. Except as permitted for the purposes of acknowledgment in paragraph 3,
33 | # neither the name or logo of this software nor the names of its
34 | # authors may be used to endorse or promote products derived from this
35 | # software without specific prior written permission. The name of the
36 | # software includes the following terms, and any derivatives thereof:
37 | # "Rocks", "Rocks Clusters", and "Avalanche Installer". For licensing of
38 | # the associated name, interested parties should contact Technology
39 | # Transfer & Intellectual Property Services, University of California,
40 | # San Diego, 9500 Gilman Drive, Mail Code 0910, La Jolla, CA 92093-0910,
41 | # Ph: (858) 534-5815, FAX: (858) 534-7345, E-MAIL:invent@ucsd.edu
42 | #
43 | # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS''
44 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
45 | # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
46 | # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS
47 | # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
48 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
49 | # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
50 | # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
51 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
52 | # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
53 | # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
54 | #
55 | # @Copyright@
56 | #
57 | # $Log: Makefile,v $
58 | # Revision 1.5 2012/11/27 00:49:12 phil
59 | # Copyright Storm for Emerald Boa
60 | #
61 | # Revision 1.4 2012/10/23 01:15:06 clem
62 | # fix for compilation of sqlite3 module in python 2.7.3
63 | # http://bugs.python.org/issue14572
64 | #
65 | # Revision 1.3 2012/05/06 05:49:19 phil
66 | # Copyright Storm for Mamba
67 | #
68 | # Revision 1.2 2011/07/23 02:31:16 phil
69 | # Viper Copyright
70 | #
71 | # Revision 1.1 2011/06/03 00:18:48 anoop
72 | # Python Roll.
73 | #
74 | # Include python 2.7.1 and python 3.2
75 | #
76 |
77 | REDHAT.ROOT = $(CURDIR)/../../
78 |
79 | -include $(ROCKSROOT)/etc/Rules.mk
80 | include Rules.mk
81 | build:
82 | gunzip -c $(ARCHIVENAME)-$(VERSION).$(TARBALL_POSTFIX) | $(TAR) -xf -
83 | ( \
84 | cd $(ARCHIVENAME)-$(VERSION); \
85 | ./configure --enable-shared --enable-ipv6 \
86 | --with-threads --prefix=$(PKGROOT); \
87 | $(MAKE); \
88 | )
89 |
90 | install::
91 | mkdir -p $(ROOT)/$(PKGROOT)
92 | ( \
93 | cd $(ARCHIVENAME)-$(VERSION); \
94 | $(MAKE) DESTDIR=$(ROOT) altinstall; \
95 | rm -rf $(ROOT)/$(PKGROOT)/bin/2to3; \
96 | cd $(ROOT)/$(PKGROOT)/bin; \
97 | ln -s python2 python; \
98 | ln -s python2.7 python2; \
99 | ln -s python2.7-config python2-config; \
100 | ln -s python2-config python-config; \
101 | )
102 |
103 | clean::
104 | rm -rf $(ARCHIVENAME)-$(VERSION)
105 |
--------------------------------------------------------------------------------
/src/python-2/filter_python_requires.sh:
--------------------------------------------------------------------------------
1 | #! /bin/bash
2 | #
3 | /usr/lib/rpm/pythondeps.sh --requires | sed -e '/\/usr\/local\/bin\/python/d'
4 |
5 |
--------------------------------------------------------------------------------
/src/python-2/rocks-python.csh:
--------------------------------------------------------------------------------
1 | #
2 | # @Copyright@
3 | #
4 | # Rocks(r)
5 | # www.rocksclusters.org
6 | # version 6.2 (SideWinder)
7 | # version 7.0 (Manzanita)
8 | #
9 | # Copyright (c) 2000 - 2017 The Regents of the University of California.
10 | # All rights reserved.
11 | #
12 | # Redistribution and use in source and binary forms, with or without
13 | # modification, are permitted provided that the following conditions are
14 | # met:
15 | #
16 | # 1. Redistributions of source code must retain the above copyright
17 | # notice, this list of conditions and the following disclaimer.
18 | #
19 | # 2. Redistributions in binary form must reproduce the above copyright
20 | # notice unmodified and in its entirety, this list of conditions and the
21 | # following disclaimer in the documentation and/or other materials provided
22 | # with the distribution.
23 | #
24 | # 3. All advertising and press materials, printed or electronic, mentioning
25 | # features or use of this software must display the following acknowledgement:
26 | #
27 | # "This product includes software developed by the Rocks(r)
28 | # Cluster Group at the San Diego Supercomputer Center at the
29 | # University of California, San Diego and its contributors."
30 | #
31 | # 4. Except as permitted for the purposes of acknowledgment in paragraph 3,
32 | # neither the name or logo of this software nor the names of its
33 | # authors may be used to endorse or promote products derived from this
34 | # software without specific prior written permission. The name of the
35 | # software includes the following terms, and any derivatives thereof:
36 | # "Rocks", "Rocks Clusters", and "Avalanche Installer". For licensing of
37 | # the associated name, interested parties should contact Technology
38 | # Transfer & Intellectual Property Services, University of California,
39 | # San Diego, 9500 Gilman Drive, Mail Code 0910, La Jolla, CA 92093-0910,
40 | # Ph: (858) 534-5815, FAX: (858) 534-7345, E-MAIL:invent@ucsd.edu
41 | #
42 | # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS''
43 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
44 | # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
45 | # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS
46 | # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
47 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
48 | # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
49 | # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
50 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
51 | # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
52 | # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
53 | #
54 | # @Copyright@
55 | #
56 | #
57 | #
58 |
59 |
60 | set new_LD_LIBRARY_PATH=/opt/python/lib
61 | if ( ${?LD_LIBRARY_PATH} ) then
62 | setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${new_LD_LIBRARY_PATH}
63 | else
64 | setenv LD_LIBRARY_PATH $new_LD_LIBRARY_PATH
65 | endif
66 |
--------------------------------------------------------------------------------
/src/python-2/rocks-python.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | #
3 | # @Copyright@
4 | #
5 | # Rocks(r)
6 | # www.rocksclusters.org
7 | # version 6.2 (SideWinder)
8 | # version 7.0 (Manzanita)
9 | #
10 | # Copyright (c) 2000 - 2017 The Regents of the University of California.
11 | # All rights reserved.
12 | #
13 | # Redistribution and use in source and binary forms, with or without
14 | # modification, are permitted provided that the following conditions are
15 | # met:
16 | #
17 | # 1. Redistributions of source code must retain the above copyright
18 | # notice, this list of conditions and the following disclaimer.
19 | #
20 | # 2. Redistributions in binary form must reproduce the above copyright
21 | # notice unmodified and in its entirety, this list of conditions and the
22 | # following disclaimer in the documentation and/or other materials provided
23 | # with the distribution.
24 | #
25 | # 3. All advertising and press materials, printed or electronic, mentioning
26 | # features or use of this software must display the following acknowledgement:
27 | #
28 | # "This product includes software developed by the Rocks(r)
29 | # Cluster Group at the San Diego Supercomputer Center at the
30 | # University of California, San Diego and its contributors."
31 | #
32 | # 4. Except as permitted for the purposes of acknowledgment in paragraph 3,
33 | # neither the name or logo of this software nor the names of its
34 | # authors may be used to endorse or promote products derived from this
35 | # software without specific prior written permission. The name of the
36 | # software includes the following terms, and any derivatives thereof:
37 | # "Rocks", "Rocks Clusters", and "Avalanche Installer". For licensing of
38 | # the associated name, interested parties should contact Technology
39 | # Transfer & Intellectual Property Services, University of California,
40 | # San Diego, 9500 Gilman Drive, Mail Code 0910, La Jolla, CA 92093-0910,
41 | # Ph: (858) 534-5815, FAX: (858) 534-7345, E-MAIL:invent@ucsd.edu
42 | #
43 | # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS''
44 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
45 | # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
46 | # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS
47 | # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
48 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
49 | # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
50 | # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
51 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
52 | # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
53 | # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
54 | #
55 | # @Copyright@
56 | #
57 | #
58 | #
59 | #
60 |
61 | new_LD_PATH=/opt/python/lib
62 |
63 | if ! echo ${LD_LIBRARY_PATH} | /bin/grep -q ${new_LD_PATH} ; then
64 | export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$new_LD_PATH
65 | fi
66 |
--------------------------------------------------------------------------------
/src/python-2/version.mk:
--------------------------------------------------------------------------------
1 | NAME = opt-python-27
2 | PKGROOT = /opt/python
3 | PYPKG = python2.7
4 | ARCHIVENAME = Python
5 | VERSION = 2.7.13
6 | RELEASE = 1
7 | TARBALL_POSTFIX = tgz
8 | RPM.EXTRAS = %define _python_bytecompile_errors_terminate_build 0\\n%define __python %{buildroot}$(PKGROOT)/bin/python\\n%define __python_requires %{_builddir}/%{name}-%{version}/filter_python_requires.sh\\nAutoReqProv: no
9 | RPM.FILES = \
10 | $(PKGROOT)/lib/* \\n \
11 | $(PKGROOT)/bin/* \\n \
12 | $(PKGROOT)/include/* \\n \
13 | $(PKGROOT)/share/man/man1/* \\n
14 |
15 |
--------------------------------------------------------------------------------
/src/python-3/Makefile:
--------------------------------------------------------------------------------
1 | # $Id: Makefile,v 1.4 2012/11/27 00:49:12 phil Exp $
2 | #
3 | # @Copyright@
4 | #
5 | # Rocks(r)
6 | # www.rocksclusters.org
7 | # version 6.2 (SideWinder)
8 | # version 7.0 (Manzanita)
9 | #
10 | # Copyright (c) 2000 - 2017 The Regents of the University of California.
11 | # All rights reserved.
12 | #
13 | # Redistribution and use in source and binary forms, with or without
14 | # modification, are permitted provided that the following conditions are
15 | # met:
16 | #
17 | # 1. Redistributions of source code must retain the above copyright
18 | # notice, this list of conditions and the following disclaimer.
19 | #
20 | # 2. Redistributions in binary form must reproduce the above copyright
21 | # notice unmodified and in its entirety, this list of conditions and the
22 | # following disclaimer in the documentation and/or other materials provided
23 | # with the distribution.
24 | #
25 | # 3. All advertising and press materials, printed or electronic, mentioning
26 | # features or use of this software must display the following acknowledgement:
27 | #
28 | # "This product includes software developed by the Rocks(r)
29 | # Cluster Group at the San Diego Supercomputer Center at the
30 | # University of California, San Diego and its contributors."
31 | #
32 | # 4. Except as permitted for the purposes of acknowledgment in paragraph 3,
33 | # neither the name or logo of this software nor the names of its
34 | # authors may be used to endorse or promote products derived from this
35 | # software without specific prior written permission. The name of the
36 | # software includes the following terms, and any derivatives thereof:
37 | # "Rocks", "Rocks Clusters", and "Avalanche Installer". For licensing of
38 | # the associated name, interested parties should contact Technology
39 | # Transfer & Intellectual Property Services, University of California,
40 | # San Diego, 9500 Gilman Drive, Mail Code 0910, La Jolla, CA 92093-0910,
41 | # Ph: (858) 534-5815, FAX: (858) 534-7345, E-MAIL:invent@ucsd.edu
42 | #
43 | # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS''
44 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
45 | # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
46 | # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS
47 | # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
48 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
49 | # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
50 | # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
51 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
52 | # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
53 | # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
54 | #
55 | # @Copyright@
56 | #
57 | # $Log: Makefile,v $
58 | # Revision 1.4 2012/11/27 00:49:12 phil
59 | # Copyright Storm for Emerald Boa
60 | #
61 | # Revision 1.3 2012/05/06 05:49:19 phil
62 | # Copyright Storm for Mamba
63 | #
64 | # Revision 1.2 2011/07/23 02:31:16 phil
65 | # Viper Copyright
66 | #
67 | # Revision 1.1 2011/06/03 00:18:49 anoop
68 | # Python Roll.
69 | #
70 | # Include python 2.7.1 and python 3.2
71 | #
72 |
73 | REDHAT.ROOT = $(CURDIR)/../../
74 |
75 | -include $(ROCKSROOT)/etc/Rules.mk
76 | include Rules.mk
77 |
78 | build:
79 | gunzip -c $(ARCHIVENAME)-$(VERSION).$(TARBALL_POSTFIX) | $(TAR) -xf -
80 | ( \
81 | cd $(ARCHIVENAME)-$(VERSION); \
82 | ./configure --enable-shared --prefix=$(PKGROOT); \
83 | $(MAKE); \
84 | )
85 |
86 | install::
87 | mkdir -p $(ROOT)/$(PKGROOT)
88 | ( \
89 | cd $(ARCHIVENAME)-$(VERSION); \
90 | $(MAKE) DESTDIR=$(ROOT) altinstall; \
91 | )
92 |
93 | clean::
94 | rm -rf $(ARCHIVENAME)-$(VERSION)
95 |
--------------------------------------------------------------------------------
/src/python-3/version.mk:
--------------------------------------------------------------------------------
1 | NAME = opt-python-3
2 | PKGROOT = /opt/python
3 | ARCHIVENAME = Python
4 | VERSION = 3.6.2
5 | RELEASE = 1
6 | TARBALL_POSTFIX = tgz
7 | RPM.EXTRAS = \
8 | %define _python_bytecompile_errors_terminate_build 0\\n%define __python %{buildroot}/$(PKGROOT)/bin/python3\\n%define __python_requires %{_builddir}/%{name}-%{version}/filter_python_requires.sh\\nAutoReqProv: no
9 | RPM.FILES = \
10 | $(PKGROOT)/lib/* \\n \
11 | $(PKGROOT)/bin/* \\n \
12 | $(PKGROOT)/include/* \\n \
13 | $(PKGROOT)/share/man/man1/*
14 |
15 |
--------------------------------------------------------------------------------
/src/setuptools/Makefile:
--------------------------------------------------------------------------------
1 | # $Id: Makefile,v 1.4 2012/11/27 00:49:12 phil Exp $
2 |
3 | # @Copyright@
4 | #
5 | # Rocks(r)
6 | # www.rocksclusters.org
7 | # version 6.2 (SideWinder)
8 | # version 7.0 (Manzanita)
9 | #
10 | # Copyright (c) 2000 - 2017 The Regents of the University of California.
11 | # All rights reserved.
12 | #
13 | # Redistribution and use in source and binary forms, with or without
14 | # modification, are permitted provided that the following conditions are
15 | # met:
16 | #
17 | # 1. Redistributions of source code must retain the above copyright
18 | # notice, this list of conditions and the following disclaimer.
19 | #
20 | # 2. Redistributions in binary form must reproduce the above copyright
21 | # notice unmodified and in its entirety, this list of conditions and the
22 | # following disclaimer in the documentation and/or other materials provided
23 | # with the distribution.
24 | #
25 | # 3. All advertising and press materials, printed or electronic, mentioning
26 | # features or use of this software must display the following acknowledgement:
27 | #
28 | # "This product includes software developed by the Rocks(r)
29 | # Cluster Group at the San Diego Supercomputer Center at the
30 | # University of California, San Diego and its contributors."
31 | #
32 | # 4. Except as permitted for the purposes of acknowledgment in paragraph 3,
33 | # neither the name or logo of this software nor the names of its
34 | # authors may be used to endorse or promote products derived from this
35 | # software without specific prior written permission. The name of the
36 | # software includes the following terms, and any derivatives thereof:
37 | # "Rocks", "Rocks Clusters", and "Avalanche Installer". For licensing of
38 | # the associated name, interested parties should contact Technology
39 | # Transfer & Intellectual Property Services, University of California,
40 | # San Diego, 9500 Gilman Drive, Mail Code 0910, La Jolla, CA 92093-0910,
41 | # Ph: (858) 534-5815, FAX: (858) 534-7345, E-MAIL:invent@ucsd.edu
42 | #
43 | # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS''
44 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
45 | # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
46 | # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS
47 | # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
48 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
49 | # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
50 | # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
51 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
52 | # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
53 | # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
54 | #
55 | # @Copyright@
56 |
57 | # $Log: Makefile,v $
58 | # Revision 1.4 2012/11/27 00:49:12 phil
59 | # Copyright Storm for Emerald Boa
60 | #
61 | # Revision 1.3 2012/05/06 05:49:19 phil
62 | # Copyright Storm for Mamba
63 | #
64 | # Revision 1.2 2011/07/23 02:31:16 phil
65 | # Viper Copyright
66 | #
67 | # Revision 1.1 2011/07/14 02:24:33 anoop
68 | # Update python
69 | # Add numpy
70 | #
71 |
72 | PKGROOT = /opt/python
73 | REDHAT.ROOT = $(CURDIR)/../../
74 | -include $(ROCKSROOT)/etc/Rules.mk
75 | include Rules.mk
76 |
77 | RPM.EXTRAS += "AutoReq: no"
78 |
79 | MODULE_PROFILE = /etc/profile.d/modules.sh
80 | MODULE = module
81 | MODULE-NAME = opt-python
82 | PYTHON = python2.7
83 |
84 | build:
85 | gunzip -c $(ARCHIVENAME)-$(VERSION).tar.gz | $(TAR) -xf -
86 | ( \
87 | cd $(ARCHIVENAME)-$(VERSION); \
88 | source $(MODULE_PROFILE); \
89 | $(MODULE) load $(MODULE-NAME); \
90 | $(PYTHON) bootstrap.py; \
91 | $(PYTHON) setup.py build; \
92 | $(MODULE) unload $(MODULE-NAME); \
93 | )
94 |
95 | install test::
96 | ( \
97 | cd $(ARCHIVENAME)-$(VERSION); \
98 | source $(MODULE_PROFILE); \
99 | $(MODULE) load $(MODULE-NAME); \
100 | $(PYTHON) setup.py $@ --root=$(ROOT)/; \
101 | $(MODULE) unload $(MODULE-NAME); \
102 | )
103 |
104 | clean::
105 | rm -rf $(ARCHIVENAME)-$(VERSION)
106 |
--------------------------------------------------------------------------------
/src/setuptools/version.mk:
--------------------------------------------------------------------------------
1 | NAME = opt-setuptools-27
2 | VERSION = 36.2.7
3 | ARCHIVENAME = setuptools
4 | RELEASE = 1
5 | PYTHON = python2.7
6 | RPM.FILES = \
7 | /opt/python/bin/*\\n\
8 | /opt/python/lib/$(PYTHON)/site-packages/*
9 |
--------------------------------------------------------------------------------
/src/sunos.mk:
--------------------------------------------------------------------------------
1 | SRCDIRS = `find * -prune\
2 | -type d \
3 | ! -name CVS \
4 | ! -name . \
5 | ! -name usersguide`
6 |
--------------------------------------------------------------------------------
/src/usersguide/Makefile:
--------------------------------------------------------------------------------
1 | # $Id: Makefile,v 1.4 2012/11/27 00:49:12 phil Exp $
2 | #
3 | # @Copyright@
4 | #
5 | # Rocks(r)
6 | # www.rocksclusters.org
7 | # version 6.2 (SideWinder)
8 | # version 7.0 (Manzanita)
9 | #
10 | # Copyright (c) 2000 - 2017 The Regents of the University of California.
11 | # All rights reserved.
12 | #
13 | # Redistribution and use in source and binary forms, with or without
14 | # modification, are permitted provided that the following conditions are
15 | # met:
16 | #
17 | # 1. Redistributions of source code must retain the above copyright
18 | # notice, this list of conditions and the following disclaimer.
19 | #
20 | # 2. Redistributions in binary form must reproduce the above copyright
21 | # notice unmodified and in its entirety, this list of conditions and the
22 | # following disclaimer in the documentation and/or other materials provided
23 | # with the distribution.
24 | #
25 | # 3. All advertising and press materials, printed or electronic, mentioning
26 | # features or use of this software must display the following acknowledgement:
27 | #
28 | # "This product includes software developed by the Rocks(r)
29 | # Cluster Group at the San Diego Supercomputer Center at the
30 | # University of California, San Diego and its contributors."
31 | #
32 | # 4. Except as permitted for the purposes of acknowledgment in paragraph 3,
33 | # neither the name or logo of this software nor the names of its
34 | # authors may be used to endorse or promote products derived from this
35 | # software without specific prior written permission. The name of the
36 | # software includes the following terms, and any derivatives thereof:
37 | # "Rocks", "Rocks Clusters", and "Avalanche Installer". For licensing of
38 | # the associated name, interested parties should contact Technology
39 | # Transfer & Intellectual Property Services, University of California,
40 | # San Diego, 9500 Gilman Drive, Mail Code 0910, La Jolla, CA 92093-0910,
41 | # Ph: (858) 534-5815, FAX: (858) 534-7345, E-MAIL:invent@ucsd.edu
42 | #
43 | # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS''
44 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
45 | # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
46 | # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS
47 | # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
48 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
49 | # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
50 | # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
51 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
52 | # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
53 | # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
54 | #
55 | # @Copyright@
56 | #
57 | # $Log: Makefile,v $
58 | # Revision 1.4 2012/11/27 00:49:12 phil
59 | # Copyright Storm for Emerald Boa
60 | #
61 | # Revision 1.3 2012/05/06 05:49:19 phil
62 | # Copyright Storm for Mamba
63 | #
64 | # Revision 1.2 2011/07/23 02:31:16 phil
65 | # Viper Copyright
66 | #
67 | # Revision 1.1 2011/06/03 00:18:49 anoop
68 | # Python Roll.
69 | #
70 | # Include python 2.7.1 and python 3.2
71 | #
72 |
73 | PKGROOT = /var/www/html/roll-documentation/python/$(VERSION)
74 | REDHAT.ROOT = $(PWD)/../../
75 | -include $(ROCKSROOT)/etc/Rules.mk
76 | include Rules.mk
77 |
78 | default: $(NAME).spec ../$(NAME)-$(VERSION).tar.gz
79 |
80 | html: predoc
81 | jw --backend html --dsl $(PWD)/rocks.dsl#html index.sgml
82 |
83 | pdf: predoc
84 | jw --backend pdf --dsl $(PWD)/rocks.dsl#print index.sgml
85 |
86 | build: html pdf
87 |
88 | install:: build
89 | mkdir -p $(ROOT)/$(PKGROOT)/images
90 | mkdir -p $(ROOT)/$(PKGROOT)/stylesheet-images
91 | install -ma+r index.pdf $(ROOT)/$(PKGROOT)/$(NAME).pdf
92 | install -ma+r *.html $(ROOT)/$(PKGROOT)/
93 | install -ma+r images/*.png $(ROOT)/$(PKGROOT)/images/
94 | install -ma+r stylesheet-images/{*.gif,*.png} \
95 | $(ROOT)/$(PKGROOT)/stylesheet-images/
96 | install -ma+r rocks.css $(ROOT)/$(PKGROOT)/
97 |
98 | clean::
99 | rm -f *.html
100 | rm -f index.pdf
101 |
--------------------------------------------------------------------------------
/src/usersguide/copyrights.sgml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Copyrights
5 |
6 |
7 | Copyrights
8 |
9 |
10 | This product includes software developed by the Rocks Clusters group
11 | from UC San Diego, and by the Python Software Foundation.
12 |
13 |
14 |
15 | The software contained in this distribution is released under the academic
16 | license agreement which requires to acknowledge the use of the software
17 | that results in any published work.
18 |
19 |
20 |
21 | &source-roll-python2-copyright;
22 |
23 |
24 |
--------------------------------------------------------------------------------
/src/usersguide/images/i-01.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rocksclusters/python/3395d17cea014cd5ddce4d2f03953b914592f5a3/src/usersguide/images/i-01.png
--------------------------------------------------------------------------------
/src/usersguide/index.sgml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 | %entities;
8 | ]>
9 |
10 |
11 |
12 | Python Roll Users Guide
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 | &document-version;
23 |
24 | &document-pubdate;
25 |
26 |
27 | &document-year;
28 | The copyright holder, and UC Regents
29 |
30 |
31 |
32 | (PDF version)
33 |
34 |
35 |
36 |
37 | &preface;
38 | &installing;
39 | &using;
40 | ©rights;
41 |
42 |
43 |
--------------------------------------------------------------------------------
/src/usersguide/installing.sgml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Installing the Python Roll
4 |
5 | &source-roll-installing-standard;
6 | &source-roll-installing-onthefly;
7 |
8 |
9 |
--------------------------------------------------------------------------------
/src/usersguide/preface.sgml:
--------------------------------------------------------------------------------
1 |
2 | Preface
3 |
4 |
5 | The Python Roll installs and configures Python 2.7.6, Python 3.3.4 and
6 | NumPy 1.8.0.
7 |
8 |
9 |
10 | Please visit the Python website
11 | and the NumPy website to learn
12 | more about these Python and NumPy releases.
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/src/usersguide/using.sgml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Using the Python Roll
4 |
5 |
6 | Environment Modules for Python
7 |
8 |
9 | As of Rocks 6.2 (Sidewinder), Environment Modules are utilized to control
10 | Python path names.
11 |
12 |
13 |
14 |
15 |
16 |
17 | To see the currently loaded modules:
18 |
19 |
20 |
21 | % module list
22 | Currently Loaded Modulefiles:
23 | 1) rocks-openmpi
24 | %
25 |
26 |
27 |
28 |
29 |
30 | To see available modules:
31 |
32 |
33 |
34 | % module avail
35 | ------------------------ /usr/share/Modules/modulefiles ------------------------
36 | dot module-info null use.own
37 | module-cvs modules opt-python rocks-openmpi
38 |
39 | %
40 |
41 |
42 |
43 |
44 |
45 | To load the opt-python module:
46 |
47 |
48 |
49 | % module load opt-python
50 | % module list
51 | Currently Loaded Modulefiles:
52 | 1) rocks-openmpi 2) opt-python
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 | Using the Python Roll
61 |
62 |
63 | The Python roll installs Python versions 2.7.6 and 3.3.4. These are
64 | installed in /opt/python.
65 |
66 |
67 |
68 | The Python roll installs Environment Modules files for Python 2.7.6
69 | and 3.3.4. These are installed in /usr/share/Modules/modulefiles.
70 |
71 |
72 |
73 | Numpy 1.8.0 is compiled and installed with Python 2.7.
74 |
75 |
76 |
77 | Tutorials for using Python and its components are available from
78 | the Python website. Tutorials
79 | for using NumPy are available from
80 | the NumPy website.
81 |
82 |
83 |
84 |
85 |
--------------------------------------------------------------------------------
/src/usersguide/version.mk:
--------------------------------------------------------------------------------
1 | ROLL = python
2 | NAME = roll-$(ROLL)-usersguide
3 | RELEASE = 0
4 |
5 | SUMMARY_COMPATIBLE = $(VERSION)
6 | SUMMARY_MAINTAINER = Rocks Group
7 | SUMMARY_ARCHITECTURE = i386, x86_64
8 |
9 | ROLL_REQUIRES = base kernel os
10 | ROLL_CONFLICTS =
11 | RPM.FILES = /var/www/html/roll-documentation/*
12 |
--------------------------------------------------------------------------------
/src/virtualenv/Makefile:
--------------------------------------------------------------------------------
1 | # $Id: Makefile,v 1.4 2012/11/27 00:49:12 phil Exp $
2 |
3 | # @Copyright@
4 | #
5 | # Rocks(r)
6 | # www.rocksclusters.org
7 | # version 6.2 (SideWinder)
8 | # version 7.0 (Manzanita)
9 | #
10 | # Copyright (c) 2000 - 2017 The Regents of the University of California.
11 | # All rights reserved.
12 | #
13 | # Redistribution and use in source and binary forms, with or without
14 | # modification, are permitted provided that the following conditions are
15 | # met:
16 | #
17 | # 1. Redistributions of source code must retain the above copyright
18 | # notice, this list of conditions and the following disclaimer.
19 | #
20 | # 2. Redistributions in binary form must reproduce the above copyright
21 | # notice unmodified and in its entirety, this list of conditions and the
22 | # following disclaimer in the documentation and/or other materials provided
23 | # with the distribution.
24 | #
25 | # 3. All advertising and press materials, printed or electronic, mentioning
26 | # features or use of this software must display the following acknowledgement:
27 | #
28 | # "This product includes software developed by the Rocks(r)
29 | # Cluster Group at the San Diego Supercomputer Center at the
30 | # University of California, San Diego and its contributors."
31 | #
32 | # 4. Except as permitted for the purposes of acknowledgment in paragraph 3,
33 | # neither the name or logo of this software nor the names of its
34 | # authors may be used to endorse or promote products derived from this
35 | # software without specific prior written permission. The name of the
36 | # software includes the following terms, and any derivatives thereof:
37 | # "Rocks", "Rocks Clusters", and "Avalanche Installer". For licensing of
38 | # the associated name, interested parties should contact Technology
39 | # Transfer & Intellectual Property Services, University of California,
40 | # San Diego, 9500 Gilman Drive, Mail Code 0910, La Jolla, CA 92093-0910,
41 | # Ph: (858) 534-5815, FAX: (858) 534-7345, E-MAIL:invent@ucsd.edu
42 | #
43 | # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS''
44 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
45 | # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
46 | # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS
47 | # BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
48 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
49 | # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
50 | # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
51 | # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
52 | # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
53 | # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
54 | #
55 | # @Copyright@
56 |
57 | # $Log: Makefile,v $
58 | # Revision 1.4 2012/11/27 00:49:12 phil
59 | # Copyright Storm for Emerald Boa
60 | #
61 | # Revision 1.3 2012/05/06 05:49:19 phil
62 | # Copyright Storm for Mamba
63 | #
64 | # Revision 1.2 2011/07/23 02:31:16 phil
65 | # Viper Copyright
66 | #
67 | # Revision 1.1 2011/07/14 02:24:33 anoop
68 | # Update python
69 | # Add numpy
70 | #
71 |
72 | PKGROOT = /opt/python
73 | REDHAT.ROOT = $(CURDIR)/../../
74 | -include $(ROCKSROOT)/etc/Rules.mk
75 | include Rules.mk
76 |
77 | RPM.EXTRAS += "AutoReq: no"
78 |
79 | MODULE_PROFILE = /etc/profile.d/modules.sh
80 | MODULE = module
81 | MODULE-NAME = opt-python
82 | PYTHON = python2.7
83 |
84 | build:
85 | gunzip -c $(ARCHIVENAME)-$(VERSION).tar.gz | $(TAR) -xf -
86 | ( \
87 | cd $(ARCHIVENAME)-$(VERSION); \
88 | source $(MODULE_PROFILE); \
89 | $(MODULE) load $(MODULE-NAME); \
90 | $(PYTHON) setup.py build; \
91 | $(MODULE) unload $(MODULE-NAME); \
92 | )
93 |
94 | install test::
95 | ( \
96 | cd $(ARCHIVENAME)-$(VERSION); \
97 | source $(MODULE_PROFILE); \
98 | $(MODULE) load $(MODULE-NAME); \
99 | $(PYTHON) setup.py $@ --root=$(ROOT)/; \
100 | $(MODULE) unload $(MODULE-NAME); \
101 | )
102 |
103 | clean::
104 | rm -rf $(ARCHIVENAME)-$(VERSION)
105 |
--------------------------------------------------------------------------------
/src/virtualenv/version.mk:
--------------------------------------------------------------------------------
1 | NAME = opt-virtualenv
2 | VERSION = 15.1.0
3 | ARCHIVENAME = virtualenv
4 | RELEASE = 0
5 | PYTHON = python2.7
6 | RPM.FILES = \
7 | /opt/python/lib/$(PYTHON)/site-packages/*\\n\
8 | /opt/python/bin/*
9 |
--------------------------------------------------------------------------------
/version.mk:
--------------------------------------------------------------------------------
1 | ROLLNAME = python
2 | RELEASE = 2
3 | COLOR = dimgrey
4 |
5 | REDHAT.ROOT = $(CURDIR)
6 |
--------------------------------------------------------------------------------