From ddd768da5861339afa59e5710f24d121c7033db6 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Tue, 15 Aug 2017 19:31:09 +0200 Subject: [PATCH 1/2] python: Add version 3.6.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [Announcement from July 17th, 2017][1]: > Python 3.6.2 is now available. Python 3.6.2 is the second maintenance > release of Python 3.6, which was initially released in 2016-12 to > great interest. With the release of 3.6.2, we are now providing the > second set of bugfixes and documentation updates to 3.6. Detailed > information about the changes made in 3.6.2 can be found in its change > log. See the What’s New In Python 3.6 document for more information > about features included in the 3.6 series. [1]: http://blog.python.org/2017/07/python-362-is-now-available.html?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+PythonInsider+%28Python+Insider%29 --- python-3.6.2-0.build.sh | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100755 python-3.6.2-0.build.sh diff --git a/python-3.6.2-0.build.sh b/python-3.6.2-0.build.sh new file mode 100755 index 0000000..68c8b94 --- /dev/null +++ b/python-3.6.2-0.build.sh @@ -0,0 +1,36 @@ +#! /bin/sh + +set -xe + +PKG=python +VERSION=3.6.2 +BUILD=0 +PREFIX=/pkg/$PKG-$VERSION-$BUILD + +exec $PREFIX/profile <<-EOF + PATH=$PREFIX/bin:\$PATH +EOF +. $PREFIX/profile + +mkdir -p $PREFIX/build +cd $PREFIX/build + +test -e Python-$VERSION.tar.xz || wget https://www.python.org/ftp/python/$VERSION/Python-$VERSION.tar.xz +test -d Python-$VERSION || tar xvf Python-$VERSION.tar.xz +cd Python-$VERSION +./configure \ + --prefix=$PREFIX +make -j $(nproc) +make install + +python3 -m ensurepip +pip3 install -I pip + +pip3 install ipython[all] +pip3 install SciPy NumPy Matplotlib pandas SymPy nose +pip3 install scikit-learn +pip3 install seaborn +pip3 install metaseq From dd840b1baef977ba2d1b9024ddb9598036e55f6c Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Wed, 16 Aug 2017 11:31:49 +0200 Subject: [PATCH 2/2] python3: Install Mako Templates for Python Piglit [1] requires Mako templates [2]. > Mako is a template library written in Python. It provides a familiar, > non-XML syntax which compiles into Python modules for maximum > performance. Mako's syntax and API borrows from the best ideas of many > others, including Django and Jinja2 templates, Cheetah, Myghty, and > Genshi. Conceptually, Mako is an embedded Python (i.e. Python Server > Page) language, which refines the familiar ideas of componentized > layout and inheritance to produce one of the most straightforward and > flexible models available, while also maintaining close ties to Python > calling and scoping semantics. [1] https://cgit.freedesktop.org/piglit/ [2] http://www.makotemplates.org/ --- python-3.6.2-0.build.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/python-3.6.2-0.build.sh b/python-3.6.2-0.build.sh index 68c8b94..9b72030 100755 --- a/python-3.6.2-0.build.sh +++ b/python-3.6.2-0.build.sh @@ -34,3 +34,4 @@ pip3 install SciPy NumPy Matplotlib pandas SymPy nose pip3 install scikit-learn pip3 install seaborn pip3 install metaseq +pip3 install Mako