summaryrefslogtreecommitdiffstats
path: root/abs/core/python_modules
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2014-10-27 20:28:27 (GMT)
committerBritney Fransen <brfransen@gmail.com>2014-10-27 20:28:27 (GMT)
commitf7b823f55a80b1498c30e9f3a47692a2329c4f09 (patch)
tree6de557714e6336282fbc0ab16c6578386dfc6654 /abs/core/python_modules
parent4c2a2e3504f472628285a989c7c9a76be6855f54 (diff)
parent01c1a60f3b7f93b3ed7404196c2cf798c4d8c674 (diff)
downloadlinhes_pkgbuild-f7b823f55a80b1498c30e9f3a47692a2329c4f09.zip
linhes_pkgbuild-f7b823f55a80b1498c30e9f3a47692a2329c4f09.tar.gz
linhes_pkgbuild-f7b823f55a80b1498c30e9f3a47692a2329c4f09.tar.bz2
Merge branch 'testing'
Diffstat (limited to 'abs/core/python_modules')
-rw-r--r--abs/core/python_modules/pygobject/PKGBUILD55
-rw-r--r--abs/core/python_modules/pygobject/__changelog1
-rw-r--r--abs/core/python_modules/pyopenssl/PKGBUILD52
-rw-r--r--abs/core/python_modules/pyopenssl/__changelog1
-rw-r--r--abs/core/python_modules/python-beaker/PKGBUILD42
-rw-r--r--abs/core/python_modules/python-beaker/__changelog1
-rw-r--r--abs/core/python_modules/python-cffi/PKGBUILD44
-rw-r--r--abs/core/python_modules/python-cffi/__changelog1
-rw-r--r--abs/core/python_modules/python-cryptography/PKGBUILD54
-rw-r--r--abs/core/python_modules/python-cryptography/__changelog1
-rw-r--r--abs/core/python_modules/python-distribute/PKGBUILD54
-rw-r--r--abs/core/python_modules/python-distribute/__changelog1
-rw-r--r--abs/core/python_modules/python-distribute/distribute-python2_and_3.patch36
-rw-r--r--abs/core/python_modules/python-docutils/01-python33-relative-import.patch196
-rw-r--r--abs/core/python_modules/python-docutils/PKGBUILD80
-rw-r--r--abs/core/python_modules/python-docutils/__changelog1
-rw-r--r--abs/core/python_modules/python-docutils/python2-docutils.install9
-rw-r--r--abs/core/python_modules/python-imaging/PKGBUILD41
-rw-r--r--abs/core/python_modules/python-imaging/__changelog1
-rw-r--r--abs/core/python_modules/python-jinja/Fix-PrefixLoader-does-not-pass-globals-to-load.patch26
-rw-r--r--abs/core/python_modules/python-jinja/PKGBUILD49
-rw-r--r--abs/core/python_modules/python-jinja/__changelog1
-rw-r--r--abs/core/python_modules/python-mako/PKGBUILD54
-rw-r--r--abs/core/python_modules/python-mako/__changelog1
-rw-r--r--abs/core/python_modules/python-markupsafe/PKGBUILD50
-rw-r--r--abs/core/python_modules/python-markupsafe/__changelog1
-rw-r--r--abs/core/python_modules/python-mock/PKGBUILD40
-rw-r--r--abs/core/python_modules/python-mock/__changelog1
-rw-r--r--abs/core/python_modules/python-nose/PKGBUILD42
-rw-r--r--abs/core/python_modules/python-nose/__changelog2
-rw-r--r--abs/core/python_modules/python-pexpect/PKGBUILD40
-rw-r--r--abs/core/python_modules/python-pexpect/__changelog1
-rw-r--r--abs/core/python_modules/python-pillow/PKGBUILD75
-rw-r--r--abs/core/python_modules/python-pillow/__changelog2
-rw-r--r--abs/core/python_modules/python-ply/PKGBUILD45
-rw-r--r--abs/core/python_modules/python-ply/__changelog1
-rw-r--r--abs/core/python_modules/python-py/PKGBUILD57
-rw-r--r--abs/core/python_modules/python-py/__changelog1
-rw-r--r--abs/core/python_modules/python-pycparser/PKGBUILD53
-rw-r--r--abs/core/python_modules/python-pycparser/__changelog1
-rw-r--r--abs/core/python_modules/python-pygments/PKGBUILD56
-rw-r--r--abs/core/python_modules/python-pygments/__changelog1
-rw-r--r--abs/core/python_modules/python-pygments/python-pygments.install7
-rw-r--r--abs/core/python_modules/python-pytest/PKGBUILD56
-rw-r--r--abs/core/python_modules/python-pytest/__changelog1
-rw-r--r--abs/core/python_modules/python-setuptools/PKGBUILD70
-rw-r--r--abs/core/python_modules/python-setuptools/__changelog1
-rw-r--r--abs/core/python_modules/python-six/PKGBUILD41
-rw-r--r--abs/core/python_modules/python-six/__changelog1
-rw-r--r--abs/core/python_modules/python-sphinx/PKGBUILD76
-rw-r--r--abs/core/python_modules/python-sphinx/__changelog1
-rw-r--r--abs/core/python_modules/python-yaml/PKGBUILD36
-rw-r--r--abs/core/python_modules/python-yaml/__changelog1
-rw-r--r--abs/core/python_modules/python-yaml/python-yaml.install7
54 files changed, 1390 insertions, 179 deletions
diff --git a/abs/core/python_modules/pygobject/PKGBUILD b/abs/core/python_modules/pygobject/PKGBUILD
new file mode 100644
index 0000000..32e4c31
--- /dev/null
+++ b/abs/core/python_modules/pygobject/PKGBUILD
@@ -0,0 +1,55 @@
+# $Id$
+# Maintainer: Ionut Biru <ibiru@archlinux.org>
+
+pkgbase=pygobject
+pkgname=(python2-gobject pygobject-devel)
+pkgver=3.12.1
+pkgrel=1
+arch=(i686 x86_64)
+url="https://live.gnome.org/PyGObject"
+license=(LGPL)
+makedepends=(python2 python2-cairo gobject-introspection gnome-common)
+source=(http://ftp.gnome.org/pub/gnome/sources/$pkgbase/${pkgver:0:4}/$pkgbase-$pkgver.tar.xz)
+sha256sums=('da5fe04759e862d347b26b53a6aea0affa7cbe858b7004475fa8c7929496da35')
+
+prepare() {
+ mkdir build-py2 build-py3 devel
+ cd ${pkgbase}-${pkgver}
+ sed -i '/Werror=format/d' configure # gcc 4.8
+}
+
+build() {
+ cd build-py2
+ ../${pkgbase}-${pkgver}/autogen.sh --prefix=/usr --with-python=/usr/bin/python2
+ make
+
+# cd ../build-py3
+# ../${pkgbase}-${pkgver}/configure --prefix=/usr
+ make
+}
+
+#package_python-gobject() {
+# pkgdesc="Python 3 bindings for GObject"
+# depends=('gobject-introspection' 'python-cairo' "pygobject-devel=$pkgver")
+
+# cd build-py3
+# make DESTDIR="$pkgdir" install
+# rm -r "$pkgdir"/usr/{include,lib/pkgconfig}
+#}
+
+package_python2-gobject() {
+ pkgdesc="Python 2 bindings for GObject"
+ depends=('gobject-introspection' 'python2-cairo' "pygobject-devel=$pkgver")
+
+ cd build-py2
+ make DESTDIR="$pkgdir" install
+ mv "$pkgdir"/usr/{include,lib/pkgconfig} "$srcdir/devel"
+}
+
+package_pygobject-devel() {
+ pkgdesc="Development files for the pygobject bindings"
+ cd "devel"
+ mkdir -p "$pkgdir"/usr/{include,lib}
+ mv include "$pkgdir/usr/"
+ mv pkgconfig "$pkgdir/usr/lib/"
+}
diff --git a/abs/core/python_modules/pygobject/__changelog b/abs/core/python_modules/pygobject/__changelog
new file mode 100644
index 0000000..9715c21
--- /dev/null
+++ b/abs/core/python_modules/pygobject/__changelog
@@ -0,0 +1 @@
+PKGBUILD - comment out all python 3 stuff and only build for py 2
diff --git a/abs/core/python_modules/pyopenssl/PKGBUILD b/abs/core/python_modules/pyopenssl/PKGBUILD
index a136830..63eeaaf 100644
--- a/abs/core/python_modules/pyopenssl/PKGBUILD
+++ b/abs/core/python_modules/pyopenssl/PKGBUILD
@@ -1,21 +1,49 @@
-# $Id: PKGBUILD 87790 2010-08-18 10:10:07Z ibiru $
+# $Id$
# Maintainer : Ionut Biru<ibiru@archlinux.org>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
-pkgname=pyopenssl
-pkgver=0.10
-pkgrel=4
-pkgdesc="pyOpenSSL is a Python interface to the OpenSSL library"
-arch=('i686' 'x86_64')
-url="http://pyopenssl.sourceforge.net"
-license=('LGPL')
-depends=('python2' 'openssl')
+pkgbase=pyopenssl
+pkgname=('python2-pyopenssl')
+pkgver=0.14
+pkgrel=3
+arch=('any')
+url="http://pypi.python.org/pypi/pyOpenSSL"
+license=('LGPL2.1')
+makedepends=('python2-setuptools' 'openssl' 'python2-six' 'python2-cryptography')
source=(http://pypi.python.org/packages/source/p/pyOpenSSL/pyOpenSSL-${pkgver}.tar.gz)
-md5sums=('34db8056ec53ce80c7f5fc58bee9f093')
+md5sums=('8579ff3a1d858858acfba5f046a4ddf7')
build() {
- cd "${srcdir}/pyOpenSSL-${pkgver}"
+ cd "${srcdir}"
+ cp -a "pyOpenSSL-${pkgver}"{,-python2}
+
+ #build python 3 module
+ cd "pyOpenSSL-${pkgver}"
+# python setup.py build
+
+ #build python 2 module
+ cd ../"pyOpenSSL-${pkgver}-python2"
python2 setup.py build
- python2 setup.py install --prefix="$pkgdir/usr" --optimize=1
}
+#package_python-pyopenssl(){
+# pkgdesc="Python3 wrapper module around the OpenSSL library"
+# depends=('python>=3.3' 'openssl' 'python-six' 'python-cryptography')
+# replaces=('pyopenssl')
+# provides=('pyopenssl')
+# conflicts=('pyopenssl')
+
+# cd "${srcdir}/pyOpenSSL-${pkgver}"
+# python setup.py install --root "${pkgdir}" --optimize=1
+#}
+
+package_python2-pyopenssl(){
+ pkgdesc="Python2 wrapper module around the OpenSSL library"
+ depends=('python2>=2.7' 'openssl' 'python2-six' 'python2-cryptography')
+ replaces=('pyopenssl')
+ provides=('pyopenssl')
+ conflicts=('pyopenssl')
+
+ cd "${srcdir}/pyOpenSSL-${pkgver}-python2"
+ python2 setup.py install --root "${pkgdir}" --optimize=1
+}
diff --git a/abs/core/python_modules/pyopenssl/__changelog b/abs/core/python_modules/pyopenssl/__changelog
new file mode 100644
index 0000000..488d3cf
--- /dev/null
+++ b/abs/core/python_modules/pyopenssl/__changelog
@@ -0,0 +1 @@
+PKGBUILD: rm py 3 stuff
diff --git a/abs/core/python_modules/python-beaker/PKGBUILD b/abs/core/python_modules/python-beaker/PKGBUILD
new file mode 100644
index 0000000..fbc3bae
--- /dev/null
+++ b/abs/core/python_modules/python-beaker/PKGBUILD
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer : Ionut Biru <ibiru@archlinux.org>
+# Contributor: Massimiliano Torromeo < massimiliano DOT torromeo AT gmail DOT com >
+
+pkgname=('python2-beaker')
+pkgver=1.6.4
+pkgrel=2
+arch=('any')
+license=('custom')
+pkgdesc="Caching and sessions WSGI middleware for use with web applications and stand-alone Python scripts and applications"
+url="http://beaker.groovie.org/"
+makedepends=('python2-setuptools')
+source=("http://cheeseshop.python.org/packages/source/B/Beaker/Beaker-${pkgver}.tar.gz")
+md5sums=('c2e102870ed4c53104dec48ceadf8e9d')
+
+build() {
+ cp -r Beaker-${pkgver} python2-Beaker-${pkgver}
+
+ cd "${srcdir}/Beaker-${pkgver}"
+ sed -i "s#/usr/bin/python#/usr/bin/python3#" beaker/crypto/pbkdf2.py
+# python3 setup.py build
+
+ cd "${srcdir}/python2-Beaker-${pkgver}"
+ sed -i "s#/usr/bin/python#/usr/bin/python2#" beaker/crypto/pbkdf2.py
+ python2 setup.py build
+}
+
+#package_python-beaker() {
+# depends=('python')
+
+# cd "${srcdir}/Beaker-${pkgver}"
+# python3 setup.py install --root="${pkgdir}" --optimize=1
+# install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/python-beaker/LICENSE"
+#}
+
+package_python2-beaker() {
+ depends=('python2')
+
+ cd "${srcdir}/python2-Beaker-${pkgver}"
+ python2 setup.py install --root="${pkgdir}" --optimize=1
+ install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/python2-beaker/LICENSE"
+}
diff --git a/abs/core/python_modules/python-beaker/__changelog b/abs/core/python_modules/python-beaker/__changelog
new file mode 100644
index 0000000..9715c21
--- /dev/null
+++ b/abs/core/python_modules/python-beaker/__changelog
@@ -0,0 +1 @@
+PKGBUILD - comment out all python 3 stuff and only build for py 2
diff --git a/abs/core/python_modules/python-cffi/PKGBUILD b/abs/core/python_modules/python-cffi/PKGBUILD
new file mode 100644
index 0000000..5f75a0e
--- /dev/null
+++ b/abs/core/python_modules/python-cffi/PKGBUILD
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars@gmail.com>
+# Contributor: lilydjwg <lilydjwg@gmail.com>
+
+_name=cffi
+pkgbase=python-$_name
+pkgname=(python2-$_name)
+pkgver=0.8.2
+pkgrel=4
+pkgdesc="Foreign Function Interface for Python calling C code"
+arch=('i686' 'x86_64')
+url="http://cffi.readthedocs.org/"
+license=('MIT')
+makedepends=('python2-setuptools' 'python2-pycparser')
+md5sums=('37fc88c62f40d04e8a18192433f951ec')
+source=("http://pypi.python.org/packages/source/c/${_name}/${_name}-${pkgver}.tar.gz")
+
+prepare() {
+ cp -r $_name-$pkgver{,-py2}
+}
+
+build() {
+# cd "$srcdir/$_name-$pkgver"
+# python3 setup.py build
+
+ cd "$srcdir/$_name-$pkgver-py2"
+ python2 setup.py build
+}
+
+#package_python-cffi() {
+# depends=('python' 'python-pycparser')
+
+# cd "$srcdir/$_name-$pkgver"
+# python3 setup.py install --root="$pkgdir/" --optimize=1
+# install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+#}
+
+package_python2-cffi() {
+ depends=('python2' 'python2-pycparser')
+
+ cd "$srcdir/$_name-$pkgver-py2"
+ python2 setup.py install --root="$pkgdir/" --optimize=1
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
diff --git a/abs/core/python_modules/python-cffi/__changelog b/abs/core/python_modules/python-cffi/__changelog
new file mode 100644
index 0000000..488d3cf
--- /dev/null
+++ b/abs/core/python_modules/python-cffi/__changelog
@@ -0,0 +1 @@
+PKGBUILD: rm py 3 stuff
diff --git a/abs/core/python_modules/python-cryptography/PKGBUILD b/abs/core/python_modules/python-cryptography/PKGBUILD
new file mode 100644
index 0000000..f916ada
--- /dev/null
+++ b/abs/core/python_modules/python-cryptography/PKGBUILD
@@ -0,0 +1,54 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars@gmail.com>
+
+pkgbase=python-cryptography
+pkgname=('python2-cryptography')
+pkgver=0.3
+pkgrel=1
+pkgdesc="A package designed to expose cryptographic recipes and primitives to Python developers"
+arch=('i686' 'x86_64')
+license=('Apache')
+url="http://pypi.python.org/pypi/cryptography"
+makedepends=('python2-setuptools' 'python2-six' 'python2-cffi')
+checkdepends=('python2-pytest' 'python2-cryptography-vectors'
+ 'python2-iso8601' 'python2-pretend')
+source=("http://pypi.python.org/packages/source/c/cryptography/cryptography-${pkgver}.tar.gz")
+md5sums=('1a9f2520acfef9489ac42fdc9a7be441')
+
+check() {
+ # Check python3 module
+# cd "${srcdir}"/cryptography-${pkgver}
+# python3 setup.py test
+
+ # Check python2 module
+ cd "${srcdir}"/cryptography-${pkgver}-python2
+ python2 setup.py test
+}
+
+prepare() {
+ cp -a cryptography-${pkgver}{,-python2}
+}
+
+build() {
+ # Build python 3 module
+ cd cryptography-${pkgver}
+# python3 setup.py build
+
+ # Build python 2 module
+ cd ../cryptography-${pkgver}-python2
+ python2 setup.py build
+}
+
+#package_python-cryptography() {
+# depends=('python' 'python-six' 'python-cffi')
+
+# cd cryptography-${pkgver}
+# python3 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+#}
+
+package_python2-cryptography() {
+ depends=('python2' 'python2-six' 'python2-cffi')
+
+ cd cryptography-${pkgver}-python2
+ python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+}
diff --git a/abs/core/python_modules/python-cryptography/__changelog b/abs/core/python_modules/python-cryptography/__changelog
new file mode 100644
index 0000000..488d3cf
--- /dev/null
+++ b/abs/core/python_modules/python-cryptography/__changelog
@@ -0,0 +1 @@
+PKGBUILD: rm py 3 stuff
diff --git a/abs/core/python_modules/python-distribute/PKGBUILD b/abs/core/python_modules/python-distribute/PKGBUILD
deleted file mode 100644
index 5627eb7..0000000
--- a/abs/core/python_modules/python-distribute/PKGBUILD
+++ /dev/null
@@ -1,54 +0,0 @@
-# $Id: PKGBUILD 159385 2012-05-22 22:16:56Z stephane $
-# Maintainer: Stéphane Gaudreault <stephane@archlinux.org>
-# Contributor: Sebastien Binet <binet@farnsworth>
-pkgbase=python-distribute
-pkgname=('python2-distribute')
-pkgver=0.6.27
-pkgrel=1
-pkgdesc="Easily build and distribute Python packages"
-arch=('any')
-license=('PSF')
-url="http://pypi.python.org/pypi/distribute"
-makedepends=('python2')
-source=(http://pypi.python.org/packages/source/d/distribute/distribute-${pkgver}.tar.gz
- distribute-python2_and_3.patch)
-sha1sums=('cebaaf91938581cb8c4a2f708f2b3e770232d3a5'
- '9c19c12edac507b0f76696d282b9831c4b653a7e')
-build() {
- cd "${srcdir}"
-
- pushd distribute-${pkgver}
- patch -Np1 -i ../distribute-python2_and_3.patch
- popd
-
- cp -a distribute-${pkgver}{,-python2}
-
- ## Build python 3 module
- cd distribute-${pkgver}
- # python setup.py build
-# python setup.py test
-
- # Build python 2 module
- cd ../distribute-${pkgver}-python2
-
- sed -i -e "s|^#\!.*/usr/bin/python|#!/usr/bin/python2|" setuptools/tests/test_resources.py
-
- python2 setup.py build
-# python2 setup.py test
-}
-
-package_python-distribute() {
- # depends=('python>=3.2')
-
- cd "${srcdir}/distribute-${pkgver}"
- python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build
-}
-
-package_python2-distribute() {
- depends=('python2>=2.7')
- provides=('setuptools')
- conflicts=('setuptools')
-
- cd "${srcdir}/distribute-${pkgver}-python2"
- python2 setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build
-}
diff --git a/abs/core/python_modules/python-distribute/__changelog b/abs/core/python_modules/python-distribute/__changelog
deleted file mode 100644
index a995e3a..0000000
--- a/abs/core/python_modules/python-distribute/__changelog
+++ /dev/null
@@ -1 +0,0 @@
-remove python
diff --git a/abs/core/python_modules/python-distribute/distribute-python2_and_3.patch b/abs/core/python_modules/python-distribute/distribute-python2_and_3.patch
deleted file mode 100644
index 2c51100..0000000
--- a/abs/core/python_modules/python-distribute/distribute-python2_and_3.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-diff -Naur distribute-0.6.27.ori/distribute.egg-info/entry_points.txt distribute-0.6.27/distribute.egg-info/entry_points.txt
---- distribute-0.6.27.ori/distribute.egg-info/entry_points.txt 2012-05-18 15:46:04.000000000 -0400
-+++ distribute-0.6.27/distribute.egg-info/entry_points.txt 2012-05-22 18:14:17.443383039 -0400
-@@ -11,6 +11,8 @@
- install_egg_info = setuptools.command.install_egg_info:install_egg_info
- alias = setuptools.command.alias:alias
- easy_install = setuptools.command.easy_install:easy_install
-+easy_install-2.7 = setuptools.command.easy_install:main
-+easy_install-3.2 = setuptools.command.easy_install:main
- install_scripts = setuptools.command.install_scripts:install_scripts
- bdist_wininst = setuptools.command.bdist_wininst:bdist_wininst
- bdist_egg = setuptools.command.bdist_egg:bdist_egg
-diff -Naur distribute-0.6.27.ori/distribute_setup.py distribute-0.6.27/distribute_setup.py
---- distribute-0.6.27.ori/distribute_setup.py 2012-05-18 15:45:03.000000000 -0400
-+++ distribute-0.6.27/distribute_setup.py 2012-05-22 18:14:17.443383039 -0400
-@@ -299,8 +299,7 @@
- log.warn('Could not find the install location')
- return
- pyver = '%s.%s' % (sys.version_info[0], sys.version_info[1])
-- setuptools_file = 'setuptools-%s-py%s.egg-info' % \
-- (SETUPTOOLS_FAKED_VERSION, pyver)
-+ setuptools_file = 'setuptools-%s.egg-info' % SETUPTOOLS_FAKED_VERSION
- pkg_info = os.path.join(placeholder, setuptools_file)
- if os.path.exists(pkg_info):
- log.warn('%s already exists', pkg_info)
-diff -Naur distribute-0.6.27.ori/setup.py distribute-0.6.27/setup.py
---- distribute-0.6.27.ori/setup.py 2012-05-18 15:19:51.000000000 -0400
-+++ distribute-0.6.27/setup.py 2012-05-22 18:14:17.443383039 -0400
-@@ -100,6 +100,7 @@
- finally:
- f.close()
-
-+console_scripts = ["easy_install-%s = setuptools.command.easy_install:main" % sys.version[:3]]
-
- # if we are installing Distribute using "python setup.py install"
- # we need to get setuptools out of the way
diff --git a/abs/core/python_modules/python-docutils/01-python33-relative-import.patch b/abs/core/python_modules/python-docutils/01-python33-relative-import.patch
new file mode 100644
index 0000000..f2c4247
--- /dev/null
+++ b/abs/core/python_modules/python-docutils/01-python33-relative-import.patch
@@ -0,0 +1,196 @@
+From 12e5aa7b94e0a0ec37e754527e06707005d28d1c Mon Sep 17 00:00:00 2001
+From: milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>
+Date: Wed, 11 Jul 2012 12:25:14 +0000
+Subject: [PATCH] Fix [3541369] Relative __import__ also with Python 3.3.
+
+git-svn-id: https://docutils.svn.sourceforge.net/svnroot/docutils/trunk@7486 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
+---
+ docutils/HISTORY.txt | 1 +
+ docutils/docutils/_compat.py | 11 +++++++++++
+ docutils/docutils/languages/__init__.py | 8 ++++++--
+ docutils/docutils/parsers/__init__.py | 5 ++++-
+ .../docutils/parsers/rst/directives/__init__.py | 6 +++++-
+ .../docutils/parsers/rst/languages/__init__.py | 6 +++++-
+ docutils/docutils/readers/__init__.py | 5 ++++-
+ docutils/docutils/writers/__init__.py | 7 +++++--
+ 8 files changed, 41 insertions(+), 8 deletions(-)
+
+diff --git a/docutils/docutils/_compat.py b/docutils/docutils/_compat.py
+index 1450534..19654a6 100644
+--- a/docutils/docutils/_compat.py
++++ b/docutils/docutils/_compat.py
+@@ -35,3 +35,14 @@ else:
+ # using this hack since 2to3 "fixes" the relative import
+ # when using ``from io import BytesIO``
+ BytesIO = __import__('io').BytesIO
++
++if sys.version_info < (2,5):
++ import __builtin__
++
++ def __import__(name, globals={}, locals={}, fromlist=[], level=-1):
++ """Compatibility definition for Python 2.4.
++
++ Silently ignore the `level` argument missing in Python < 2.5.
++ """
++ # we need the level arg because the default changed in Python 3.3
++ return __builtin__.__import__(name, globals, locals, fromlist)
+diff --git a/docutils/docutils/languages/__init__.py b/docutils/docutils/languages/__init__.py
+index 675bb0e..57d3ec2 100644
+--- a/docutils/docutils/languages/__init__.py
++++ b/docutils/docutils/languages/__init__.py
+@@ -11,7 +11,11 @@ This package contains modules for language-dependent features of Docutils.
+
+ __docformat__ = 'reStructuredText'
+
++import sys
++
+ from docutils.utils import normalize_language_tag
++if sys.version_info < (2,5):
++ from docutils._compat import __import__
+
+ _languages = {}
+
+@@ -26,7 +30,7 @@ def get_language(language_code, reporter=None):
+ if tag in _languages:
+ return _languages[tag]
+ try:
+- module = __import__(tag, globals(), locals())
++ module = __import__(tag, globals(), locals(), level=1)
+ except ImportError:
+ continue
+ _languages[tag] = module
+@@ -35,6 +39,6 @@ def get_language(language_code, reporter=None):
+ reporter.warning(
+ 'language "%s" not supported: ' % language_code +
+ 'Docutils-generated text will be in English.')
+- module = __import__('en', globals(), locals())
++ module = __import__('en', globals(), locals(), level=1)
+ _languages[tag] = module # warn only one time!
+ return module
+diff --git a/docutils/docutils/parsers/__init__.py b/docutils/docutils/parsers/__init__.py
+index 2683376..341e358 100644
+--- a/docutils/docutils/parsers/__init__.py
++++ b/docutils/docutils/parsers/__init__.py
+@@ -8,7 +8,10 @@ This package contains Docutils parser modules.
+
+ __docformat__ = 'reStructuredText'
+
++import sys
+ from docutils import Component
++if sys.version_info < (2,5):
++ from docutils._compat import __import__
+
+
+ class Parser(Component):
+@@ -43,5 +46,5 @@ def get_parser_class(parser_name):
+ parser_name = parser_name.lower()
+ if parser_name in _parser_aliases:
+ parser_name = _parser_aliases[parser_name]
+- module = __import__(parser_name, globals(), locals())
++ module = __import__(parser_name, globals(), locals(), level=1)
+ return module.Parser
+diff --git a/docutils/docutils/parsers/rst/directives/__init__.py b/docutils/docutils/parsers/rst/directives/__init__.py
+index b00a676..fdc70d7 100644
+--- a/docutils/docutils/parsers/rst/directives/__init__.py
++++ b/docutils/docutils/parsers/rst/directives/__init__.py
+@@ -10,8 +10,12 @@ __docformat__ = 'reStructuredText'
+
+ import re
+ import codecs
++import sys
++
+ from docutils import nodes
+ from docutils.parsers.rst.languages import en as _fallback_language_module
++if sys.version_info < (2,5):
++ from docutils._compat import __import__
+
+
+ _directive_registry = {
+@@ -109,7 +113,7 @@ def directive(directive_name, language_module, document):
+ # Error handling done by caller.
+ return None, messages
+ try:
+- module = __import__(modulename, globals(), locals())
++ module = __import__(modulename, globals(), locals(), level=1)
+ except ImportError, detail:
+ messages.append(document.reporter.error(
+ 'Error importing directive module "%s" (directive "%s"):\n%s'
+diff --git a/docutils/docutils/parsers/rst/languages/__init__.py b/docutils/docutils/parsers/rst/languages/__init__.py
+index 53017d7..5a151e4 100644
+--- a/docutils/docutils/parsers/rst/languages/__init__.py
++++ b/docutils/docutils/parsers/rst/languages/__init__.py
+@@ -12,7 +12,11 @@ reStructuredText.
+
+ __docformat__ = 'reStructuredText'
+
++import sys
++
+ from docutils.utils import normalize_language_tag
++if sys.version_info < (2,5):
++ from docutils._compat import __import__
+
+ _languages = {}
+
+@@ -21,7 +25,7 @@ def get_language(language_code):
+ if tag in _languages:
+ return _languages[tag]
+ try:
+- module = __import__(tag, globals(), locals())
++ module = __import__(tag, globals(), locals(), level=1)
+ except ImportError:
+ continue
+ _languages[tag] = module
+diff --git a/docutils/docutils/readers/__init__.py b/docutils/docutils/readers/__init__.py
+index a28248f..e3e6fb5 100644
+--- a/docutils/docutils/readers/__init__.py
++++ b/docutils/docutils/readers/__init__.py
+@@ -8,9 +8,12 @@ This package contains Docutils Reader modules.
+
+ __docformat__ = 'reStructuredText'
+
++import sys
+
+ from docutils import utils, parsers, Component
+ from docutils.transforms import universal
++if sys.version_info < (2,5):
++ from docutils._compat import __import__
+
+
+ class Reader(Component):
+@@ -103,5 +106,5 @@ def get_reader_class(reader_name):
+ reader_name = reader_name.lower()
+ if reader_name in _reader_aliases:
+ reader_name = _reader_aliases[reader_name]
+- module = __import__(reader_name, globals(), locals())
++ module = __import__(reader_name, globals(), locals(), level=1)
+ return module.Reader
+diff --git a/docutils/docutils/writers/__init__.py b/docutils/docutils/writers/__init__.py
+index e30dbf6..8fcee0c 100644
+--- a/docutils/docutils/writers/__init__.py
++++ b/docutils/docutils/writers/__init__.py
+@@ -8,11 +8,14 @@ This package contains Docutils Writer modules.
+
+ __docformat__ = 'reStructuredText'
+
+-
+ import os.path
++import sys
++
+ import docutils
+ from docutils import languages, Component
+ from docutils.transforms import universal
++if sys.version_info < (2,5):
++ from docutils._compat import __import__
+
+
+ class Writer(Component):
+@@ -130,5 +133,5 @@ def get_writer_class(writer_name):
+ writer_name = writer_name.lower()
+ if writer_name in _writer_aliases:
+ writer_name = _writer_aliases[writer_name]
+- module = __import__(writer_name, globals(), locals())
++ module = __import__(writer_name, globals(), locals(), level=1)
+ return module.Writer
+--
+1.6.5.GIT
+
diff --git a/abs/core/python_modules/python-docutils/PKGBUILD b/abs/core/python_modules/python-docutils/PKGBUILD
new file mode 100644
index 0000000..c0b5341
--- /dev/null
+++ b/abs/core/python_modules/python-docutils/PKGBUILD
@@ -0,0 +1,80 @@
+# $Id$
+# Maintainer: Sébastien Luttringer
+# Contributor : Ionut Biru <ibiru@archlinux.org>
+# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
+
+pkgbase=docutils
+pkgname=('python2-docutils')
+pkgver=0.11
+pkgrel=2
+pkgdesc='Set of tools for processing plaintext docs into formats such as HTML, XML, or LaTeX'
+arch=('any')
+url='http://docutils.sourceforge.net'
+license=('custom')
+makedepends=('python2')
+source=("http://downloads.sourceforge.net/$pkgbase/$pkgbase-$pkgver.tar.gz")
+md5sums=('20ac380a18b369824276864d98ec0ad6')
+
+build() {
+ cd $pkgbase-$pkgver
+# for _p in "$srcdir"/*.patch; do
+# msg2 "${_p##*/}"
+# patch -p2 -i "$_p"
+# done
+# python3 setup.py build --build-lib=build/python
+# find build/python -type f -exec \
+# sed -i '1s,^#! \?/usr/bin/\(env \|\)python$,#!/usr/bin/python3,' {} \;
+ python2 setup.py build --build-lib=build/python2
+ find build/python2 -type f -exec \
+ sed -i '1s,^#! \?/usr/bin/\(env \|\)python$,#!/usr/bin/python2,' {} \;
+}
+
+check() {
+ cd $pkgbase-$pkgver
+ # we need utf locale to valid utf8 tests
+ export LANG=en_US.UTF-8
+ # Disable python3 check
+ #msg2 'python checks'
+ #PYTHONPATH="$PWD/build/python/" python3 test3/alltests.py
+ msg2 'python2 checks'
+ PYTHONPATH="$PWD/build/python2/" python2 test/alltests.py
+}
+
+#package_python-docutils() {
+# depends=('python')
+#
+# cd $pkgbase-$pkgver
+# python setup.py build --build-lib=build/python \
+ install --root="$pkgdir" --optimize=1
+ # symlink without .py
+# for f in "$pkgdir"/usr/bin/*.py; do
+# ln -s "$(basename $f)" "$pkgdir/usr/bin/$(basename $f .py)"
+# done
+ # setup license
+# install -D -m644 COPYING.txt "$pkgdir/usr/share/licenses/$pkgname/COPYING.txt"
+# install -D -m644 licenses/python* "$pkgdir/usr/share/licenses/$pkgname/"
+#}
+
+package_python2-docutils() {
+ depends=('python2')
+ provides=("docutils=$pkgver")
+ replaces=('docutils')
+ install=python2-docutils.install
+
+ cd $pkgbase-$pkgver
+ python2 setup.py build --build-lib=build/python2 \
+ install --root="$pkgdir" --optimize=1
+ # fix python-docutils conflict
+ for _f in "$pkgdir"/usr/bin/*.py; do
+ mv -v "$_f" "${_f%.py}2.py"
+ done
+ # symlink without .py
+ for _f in "$pkgdir"/usr/bin/*.py; do
+ ln -s "$(basename $_f)" "$pkgdir/usr/bin/$(basename $_f .py)"
+ done
+ # setup license
+ install -D -m644 COPYING.txt "$pkgdir/usr/share/licenses/$pkgname/COPYING.txt"
+ install -D -m644 licenses/python* "$pkgdir/usr/share/licenses/$pkgname/"
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/abs/core/python_modules/python-docutils/__changelog b/abs/core/python_modules/python-docutils/__changelog
new file mode 100644
index 0000000..3439597
--- /dev/null
+++ b/abs/core/python_modules/python-docutils/__changelog
@@ -0,0 +1 @@
+PKGBUILD: rm python 3 stuff
diff --git a/abs/core/python_modules/python-docutils/python2-docutils.install b/abs/core/python_modules/python-docutils/python2-docutils.install
new file mode 100644
index 0000000..3e414af
--- /dev/null
+++ b/abs/core/python_modules/python-docutils/python2-docutils.install
@@ -0,0 +1,9 @@
+post_upgrade() {
+ [ $(vercmp '0.8.1-2' "$2") -gt 0 ] && cat <<EOF || :
+python2-docutils:
+rst* binaries have been renamed to rst*2 to avoid conflict with python-docutils
+remember to update your scripts
+EOF
+}
+
+# vim:set ts=2 sw=2 ft=sh et:
diff --git a/abs/core/python_modules/python-imaging/PKGBUILD b/abs/core/python_modules/python-imaging/PKGBUILD
deleted file mode 100644
index d644a4c..0000000
--- a/abs/core/python_modules/python-imaging/PKGBUILD
+++ /dev/null
@@ -1,41 +0,0 @@
-# $Id: PKGBUILD 87626 2010-08-17 13:21:07Z allan $
-# Maintainer: Allan McRae <allan@archlinux.org>
-# Contributor: simo <simo@archlinux.org>
-
-pkgname=python-imaging
-pkgver=1.1.7
-pkgrel=6
-pkgdesc="PIL. Provides image processing capabilities for python"
-arch=('i686' 'x86_64')
-url="http://www.pythonware.com/products/pil/index.htm"
-license=('custom:"pil"')
-depends=('python2' 'libjpeg' 'freetype2')
-makedepends=('tk')
-optdepends=('tk')
-provides=("pil=$pkgver")
-conflicts=('pil')
-replaces=('pil')
-source=(http://effbot.org/downloads/Imaging-$pkgver.tar.gz)
-md5sums=('fc14a54e1ce02a0225be8854bfba478e')
-
-build() {
- cd $srcdir/Imaging-$pkgver
- python2 setup.py build_ext
-}
-
-package() {
- cd $srcdir/Imaging-$pkgver
- python2 setup.py install --root=$pkgdir
- install -dm755 $pkgdir/usr/include/python2.6/
- install -m644 -t $pkgdir/usr/include/python2.6/ libImaging/*.h
-
- # do not have files ending in .py in /usr/bin
- for f in pildriver pilprint pilconvert pilfile pilfont; do
- mv $pkgdir/usr/bin/$f{.py,}
- done
-
- # Install license
- install -Dm644 $srcdir/Imaging-$pkgver/README \
- $pkgdir/usr/share/licenses/$pkgname/README
-}
-
diff --git a/abs/core/python_modules/python-imaging/__changelog b/abs/core/python_modules/python-imaging/__changelog
deleted file mode 100644
index de150f5..0000000
--- a/abs/core/python_modules/python-imaging/__changelog
+++ /dev/null
@@ -1 +0,0 @@
-__change so that it builds against python2.6 instead of python2.7
diff --git a/abs/core/python_modules/python-jinja/Fix-PrefixLoader-does-not-pass-globals-to-load.patch b/abs/core/python_modules/python-jinja/Fix-PrefixLoader-does-not-pass-globals-to-load.patch
new file mode 100644
index 0000000..8100449
--- /dev/null
+++ b/abs/core/python_modules/python-jinja/Fix-PrefixLoader-does-not-pass-globals-to-load.patch
@@ -0,0 +1,26 @@
+From 478983594423dcdb85e26ea7a02b8d1d72215db6 Mon Sep 17 00:00:00 2001
+From: Morris Jobke <morris.jobke@gmail.com>
+Date: Mon, 27 May 2013 00:54:52 +0300
+Subject: [PATCH] Fix "PrefixLoader does not pass globals to load"
+
+Fix mitsuhiko/jinja2#225
+---
+ jinja2/loaders.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/jinja2/loaders.py b/jinja2/loaders.py
+index a9a2625..cc9c683 100644
+--- a/jinja2/loaders.py
++++ b/jinja2/loaders.py
+@@ -349,7 +349,7 @@ def get_source(self, environment, template):
+ def load(self, environment, name, globals=None):
+ loader, local_name = self.get_loader(name)
+ try:
+- return loader.load(environment, local_name)
++ return loader.load(environment, local_name, globals)
+ except TemplateNotFound:
+ # re-raise the exception with the correct fileame here.
+ # (the one that includes the prefix)
+--
+1.8.1.6
+
diff --git a/abs/core/python_modules/python-jinja/PKGBUILD b/abs/core/python_modules/python-jinja/PKGBUILD
new file mode 100644
index 0000000..a7e3b6d
--- /dev/null
+++ b/abs/core/python_modules/python-jinja/PKGBUILD
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Evangelos Foutras <evangelos@foutrelis.com>
+# Contributor: Peter Baldwin <bald_pete@hotmail.com>
+
+pkgname=('python2-jinja')
+pkgver=2.7.2
+pkgrel=2
+pkgdesc="A simple pythonic template language written in Python"
+arch=('any')
+url="http://jinja.pocoo.org/"
+license=('BSD')
+makedepends=('python2-setuptools'
+ 'python2-markupsafe')
+source=(http://pypi.python.org/packages/source/J/Jinja2/Jinja2-$pkgver.tar.gz)
+sha256sums=('310a35fbccac3af13ebf927297f871ac656b9da1d248b1fe6765affa71b53235')
+
+build() {
+ cd "$srcdir"
+
+ rm -rf python{2,3}-build
+ for builddir in python2-build; do
+ cp -r Jinja2-$pkgver $builddir
+ pushd $builddir
+ ${builddir%-build} setup.py build
+ popd
+ done
+}
+
+#package_python-jinja() {
+# depends=('python-setuptools' 'python-markupsafe')
+
+# cd "$srcdir/python3-build"
+
+# python3 setup.py install --root="$pkgdir" -O1
+
+# install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+#}
+
+package_python2-jinja() {
+ depends=('python2-setuptools' 'python2-markupsafe')
+
+ cd "$srcdir/python2-build"
+
+ python2 setup.py install --root="$pkgdir" -O1
+
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/abs/core/python_modules/python-jinja/__changelog b/abs/core/python_modules/python-jinja/__changelog
new file mode 100644
index 0000000..3439597
--- /dev/null
+++ b/abs/core/python_modules/python-jinja/__changelog
@@ -0,0 +1 @@
+PKGBUILD: rm python 3 stuff
diff --git a/abs/core/python_modules/python-mako/PKGBUILD b/abs/core/python_modules/python-mako/PKGBUILD
new file mode 100644
index 0000000..71440e4
--- /dev/null
+++ b/abs/core/python_modules/python-mako/PKGBUILD
@@ -0,0 +1,54 @@
+# $Id$
+# Maintainer :
+
+pkgname=('python2-mako')
+pkgver=0.9.1
+pkgrel=2
+pkgdesc="Hyperfast and lightweight templating for the Python2 platform"
+arch=('any')
+url="http://www.makotemplates.org/"
+license=('MIT')
+makedepends=('python2-setuptools')
+checkdepends=('python2-nose')
+source=(https://pypi.python.org/packages/source/M/Mako/Mako-$pkgver.tar.gz{,.asc})
+sha1sums=('aa01bafca5a835eb92a9048be92414fa83da102b'
+ 'SKIP')
+
+prepare() {
+ cp -r Mako-$pkgver python2-Mako-$pkgver
+ mv Mako-$pkgver/scripts/mako-render Mako-$pkgver/scripts/python3-mako-render
+# 2to3 -nw Mako-$pkgver/scripts/python3-mako-render
+ sed -i 's/mako-render/python3-mako-render/' Mako-$pkgver/setup.py
+}
+
+build() {
+ cd Mako-$pkgver
+# python3 setup.py build
+
+ cd ../python2-Mako-$pkgver
+ python2 setup.py build
+}
+
+check() {
+ cd Mako-$pkgver
+# python3 setup.py test
+
+ cd ../python2-Mako-$pkgver
+ python2 setup.py test
+}
+
+#package_python-mako() {
+# depends=('python-markupsafe' 'python-beaker')
+
+# cd Mako-$pkgver
+# python3 setup.py install --root="$pkgdir" --optimize=1
+# install -D LICENSE "$pkgdir/usr/share/licenses/python-mako/COPYING"
+#}
+
+package_python2-mako() {
+ depends=('python2-markupsafe' 'python2-beaker')
+
+ cd python2-Mako-$pkgver
+ python2 setup.py install --root="$pkgdir" --optimize=1
+ install -D LICENSE "$pkgdir/usr/share/licenses/python2-mako/COPYING"
+}
diff --git a/abs/core/python_modules/python-mako/__changelog b/abs/core/python_modules/python-mako/__changelog
new file mode 100644
index 0000000..9715c21
--- /dev/null
+++ b/abs/core/python_modules/python-mako/__changelog
@@ -0,0 +1 @@
+PKGBUILD - comment out all python 3 stuff and only build for py 2
diff --git a/abs/core/python_modules/python-markupsafe/PKGBUILD b/abs/core/python_modules/python-markupsafe/PKGBUILD
new file mode 100644
index 0000000..17725d0
--- /dev/null
+++ b/abs/core/python_modules/python-markupsafe/PKGBUILD
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer : Felix Yan <felixonmars@gmail.com>
+# Contributor: Ionut Biru <ibiru@archlinux.org>
+# Contributor: Alex Anthony <alex.anthony28991@gmail.com>
+
+pkgname=('python2-markupsafe')
+pkgver=0.21
+pkgrel=1
+pkgdesc="Implements a XML/HTML/XHTML Markup safe string for Python"
+arch=('i686' 'x86_64')
+url="http://pypi.python.org/pypi/MarkupSafe"
+license=('custom')
+makedepends=('python2-setuptools')
+source=("http://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-${pkgver}.tar.gz")
+sha512sums=('ecedf56be7ad1723c4d7bf799e1aefb8ceb0a28840a1b8ffdc2dee0f734149430cf5dfd5d335591e9934cf223255475e9c04da5ab34ed69e7845298f599d81bc')
+
+build() {
+ cp -r MarkupSafe-${pkgver} python2-MarkupSafe-${pkgver}
+# cd "${srcdir}/MarkupSafe-${pkgver}"
+# python setup.py build
+
+ cd "${srcdir}/python2-MarkupSafe-${pkgver}"
+ python2 setup.py build
+}
+
+check() {
+# cd "${srcdir}/MarkupSafe-${pkgver}"
+# python setup.py test
+
+ cd "${srcdir}/python2-MarkupSafe-${pkgver}"
+ python2 setup.py test
+}
+
+#package_python-markupsafe() {
+# depends=('python')
+
+# cd MarkupSafe-${pkgver}
+# python setup.py install --root="${pkgdir}" --optimize=1
+
+# install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/python-markupsafe/LICENSE"
+#}
+
+package_python2-markupsafe() {
+ depends=('python2')
+
+ cd python2-MarkupSafe-${pkgver}
+ python2 setup.py install --root="${pkgdir}" --optimize=1
+
+ install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/python2-markupsafe/LICENSE"
+}
diff --git a/abs/core/python_modules/python-markupsafe/__changelog b/abs/core/python_modules/python-markupsafe/__changelog
new file mode 100644
index 0000000..488d3cf
--- /dev/null
+++ b/abs/core/python_modules/python-markupsafe/__changelog
@@ -0,0 +1 @@
+PKGBUILD: rm py 3 stuff
diff --git a/abs/core/python_modules/python-mock/PKGBUILD b/abs/core/python_modules/python-mock/PKGBUILD
new file mode 100644
index 0000000..63fd848
--- /dev/null
+++ b/abs/core/python_modules/python-mock/PKGBUILD
@@ -0,0 +1,40 @@
+# $Id$
+# Maintainer: jelle van der Waa <jelle@vdwaa.nl>
+# Contributor: Felix Kaiser <felix.kaiser@fxkr.net>
+
+pkgbase=python-mock
+pkgname=(python2-mock)
+pkgver=1.0.1
+pkgrel=3
+pkgdesc='Mocking and Patching Library for Testing'
+url='http://www.voidspace.org.uk/python/mock/'
+makedepends=('python2')
+license=('BSD')
+arch=('any')
+source=("http://pypi.python.org/packages/source/m/mock/mock-$pkgver.tar.gz")
+md5sums=('c3971991738caa55ec7c356bbc154ee2')
+
+build() {
+ cd "$srcdir"
+ cp -rf "mock-$pkgver" "mock2-$pkgver"
+
+# cd "$srcdir/mock-$pkgver"
+# python3 setup.py build
+
+ cd "$srcdir/mock2-$pkgver"
+ python2 setup.py build
+}
+
+#package_python-mock() {
+#depends=('python')
+# cd "$srcdir/mock-$pkgver"
+# python3 setup.py install --optimize=1 --root="$pkgdir"
+# install -Dm644 LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+#}
+
+package_python2-mock() {
+depends=('python2')
+ cd "$srcdir/mock2-$pkgver"
+ python2 setup.py install --optimize=1 --root="$pkgdir"
+ install -Dm644 LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}
diff --git a/abs/core/python_modules/python-mock/__changelog b/abs/core/python_modules/python-mock/__changelog
new file mode 100644
index 0000000..488d3cf
--- /dev/null
+++ b/abs/core/python_modules/python-mock/__changelog
@@ -0,0 +1 @@
+PKGBUILD: rm py 3 stuff
diff --git a/abs/core/python_modules/python-nose/PKGBUILD b/abs/core/python_modules/python-nose/PKGBUILD
index 5d36e01..be20823 100644
--- a/abs/core/python_modules/python-nose/PKGBUILD
+++ b/abs/core/python_modules/python-nose/PKGBUILD
@@ -1,44 +1,46 @@
-# $Id: PKGBUILD 144082 2011-12-03 05:50:51Z angvp $
-# Maintainer: Angel Velasquez <angvp@archlinux.org>
+# $Id$
+# Maintainer: Dan McGee <dan@archlinux.org>
+# Contributor: Angel Velasquez <angvp@archlinux.org>
# Contributor: Douglas Soares de Andrade <douglas@archlinux.org>
# Contributor: Cilyan Olowen <gaknar@gmail.com>
+
pkgbase=python-nose
-pkgname=('python2-nose' )
-pkgver=1.1.2
-pkgrel=3
+pkgname=('python2-nose' 'python-nose-doc')
+pkgver=1.3.1
+pkgrel=2
pkgdesc="A discovery-based unittest extension"
arch=('any')
-url="http://www.somethingaboutorange.com/mrl/projects/nose/"
-license=('LGPL2')
+url='http://readthedocs.org/docs/nose/'
+license=('LGPL2.1')
+makedepends=('python2' 'python2-setuptools' 'python2-sphinx')
source=("http://pypi.python.org/packages/source/n/nose/nose-${pkgver}.tar.gz")
-makedepends=( 'python2' 'python2-distribute' )
-md5sums=('144f237b615e23f21f6a50b2183aa817')
+md5sums=('672398801ddf5ba745c55c6eed79c5aa')
build() {
cd "$srcdir/nose-$pkgver"
sed -i -e "s:man/man1:share/man/man1:g" setup.py
- cp -R $srcdir/nose-$pkgver $srcdir/nose2-$pkgver
+ cp -R "$srcdir/nose-$pkgver" "$srcdir/nose2-$pkgver"
}
-package_python-nose() {
- depends=('python' 'python-distribute')
- cd "$srcdir/nose-$pkgver"
- python setup.py install --prefix=/usr --root=${pkgdir}
- mv "$pkgdir/usr/bin/nosetests" "$pkgdir/usr/bin/nosetests3"
-}
+#package_python-nose() {
+# depends=('python' 'python-setuptools')
+# cd "$srcdir/nose-$pkgver"
+# python3 setup.py install --prefix=/usr --root="${pkgdir}"
+# mv "$pkgdir/usr/bin/nosetests" "$pkgdir/usr/bin/nosetests3"
+#}
package_python2-nose() {
- depends=('python2' 'python2-distribute')
+ depends=('python2' 'python2-setuptools')
cd "$srcdir/nose2-$pkgver"
- python2 setup.py install --prefix=/usr --root=${pkgdir}
+ python2 setup.py install --prefix=/usr --root="${pkgdir}"
mv "$pkgdir/usr/bin/nosetests" "$pkgdir/usr/bin/nosetests2"
- rm -rf $pkgdir/usr/share
+ rm -rf "$pkgdir/usr/share"
}
package_python-nose-doc(){
pkgdesc="Nose documentation and examples"
cd "$srcdir/nose-$pkgver/doc"
- make html
+ make SPHINXBUILD=sphinx-build22 html
mkdir -p "$pkgdir/usr/share/doc/python-nose"
cp -r .build/html "$pkgdir/usr/share/doc/python-nose"
cp -r ../examples "$pkgdir/usr/share/doc/python-nose"
diff --git a/abs/core/python_modules/python-nose/__changelog b/abs/core/python_modules/python-nose/__changelog
index 0802ff6..488d3cf 100644
--- a/abs/core/python_modules/python-nose/__changelog
+++ b/abs/core/python_modules/python-nose/__changelog
@@ -1 +1 @@
-removed python
+PKGBUILD: rm py 3 stuff
diff --git a/abs/core/python_modules/python-pexpect/PKGBUILD b/abs/core/python_modules/python-pexpect/PKGBUILD
index 09ddb51..4034457 100644
--- a/abs/core/python_modules/python-pexpect/PKGBUILD
+++ b/abs/core/python_modules/python-pexpect/PKGBUILD
@@ -1,24 +1,38 @@
-# $Id: PKGBUILD 69520 2012-04-17 21:14:19Z ebelanger $
-# Maintainer:
+# $Id$
+# Maintainer: Alexander Rødseth <rodseth@gmail.com>
# Contributor: Aaron Schaefer <aaron@elasticdog.com>
-pkgname=python-pexpect
-pkgver=2.4
+pkgname=('python2-pexpect')
+pkgver=3.2
pkgrel=1
-pkgdesc='A pure Python Expect-like module'
+pkgdesc='Make Python a better tool for controlling and automating other programs'
arch=('any')
-url='http://pexpect.sourceforge.net/'
+url='http://pexpect.readthedocs.org/en/latest/'
license=('MIT')
-depends=('python2')
+makedepends=('python2')
+conflicts=('python-pexpect<=2.4')
+replaces=('python-pexpect<=2.4')
source=("http://pypi.python.org/packages/source/p/pexpect/pexpect-$pkgver.tar.gz")
-md5sums=('fe82d69be19ec96d3a6650af947d5665')
+sha256sums=('dbc4c9a01c118e198d1b6ca76f31eb7292f212567f253e6b36a880e5168e961f')
-package() {
- cd "$srcdir/pexpect-$pkgver"
+prepare() {
+ cp -r "pexpect-$pkgver" "python2-pexpect-$pkgver"
+ sed -i 's:env python:env python2:' "python2-pexpect-$pkgver/pexpect/FSM.py"
+}
+
+#package_python-pexpect() {
+# depends+=('python')
+# cd "pexpect-$pkgver"
+# python setup.py install --root="$pkgdir"
+# install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+#}
- # python2 fix
- sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' FSM.py
+package_python2-pexpect() {
+ depends+=('python2')
+ cd "python2-pexpect-$pkgver"
python2 setup.py install --root="$pkgdir"
- install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
+
+# vim:set ts=2 sw=2 et:
diff --git a/abs/core/python_modules/python-pexpect/__changelog b/abs/core/python_modules/python-pexpect/__changelog
new file mode 100644
index 0000000..488d3cf
--- /dev/null
+++ b/abs/core/python_modules/python-pexpect/__changelog
@@ -0,0 +1 @@
+PKGBUILD: rm py 3 stuff
diff --git a/abs/core/python_modules/python-pillow/PKGBUILD b/abs/core/python_modules/python-pillow/PKGBUILD
new file mode 100644
index 0000000..fc93f2d
--- /dev/null
+++ b/abs/core/python_modules/python-pillow/PKGBUILD
@@ -0,0 +1,75 @@
+# $Id$
+# Maintainer: Kyle Keen <keenerd@gmail.com>
+# Contributor: minder
+
+pkgbase=python-pillow
+#pkgname=(python-pillow python2-pillow)
+pkgname=(python2-pillow)
+pkgver=2.5.3
+pkgrel=2
+_appname=Pillow
+_py2basever=2.7
+_py3basever=3.4m
+pkgdesc="Python Imaging Library (PIL) fork. Python3 version."
+arch=('i686' 'x86_64')
+url="http://python-pillow.github.io/"
+license=('BSD')
+makedepends=('python2-setuptools' 'lcms' 'libwebp' 'tk')
+source=("http://pypi.python.org/packages/source/P/$_appname/$_appname-$pkgver.zip")
+md5sums=('9879437c28ee0ad6ea04b93d0be2c2d7')
+
+build() {
+ cd "$srcdir"
+ cp -r "$srcdir/$_appname-$pkgver" "$srcdir/${_appname}2-$pkgver"
+}
+
+#package_python-pillow() {
+# depends=('python' 'lcms' 'libwebp')
+# optdepends=('tk: for the ImageTK module'
+# 'sane: for the Sane module'
+# 'python-pyqt4: for the ImageQt module')
+# cd "$srcdir/$_appname-$pkgver"
+# python3 setup.py install --root="$pkgdir/" --optimize=0
+# pushd Sane
+# python3 setup.py install --root="$pkgdir/" --optimize=0
+# popd
+# install -Dm644 docs/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+# install -dm755 "$pkgdir/usr/include/python$_py3basever/"
+# install -m644 -t "$pkgdir/usr/include/python$_py3basever/" libImaging/*.h
+
+# # clean up bins
+# cd "$pkgdir/usr/bin"
+# for f in *.py; do
+# mv "$f" "${f%.py}"
+# done
+#}
+
+package_python2-pillow() {
+ pkgdesc="Python Imaging Library (PIL) fork. Python2 version."
+ depends=('python2' 'lcms' 'libwebp')
+ optdepends=('tk: for the ImageTK module'
+ 'sane: for the Sane module'
+ 'python2-pyqt4: for the ImageQt module')
+ provides=('python-imaging' 'python2-imaging')
+ conflicts=('python-imaging' 'python2-imaging')
+ replaces=('python2-imaging')
+ cd "$srcdir/${_appname}2-$pkgver"
+ sed -i 's|/usr/local/bin/python$|/usr/bin/env python2|' PIL/OleFileIO.py
+ python2 setup.py install --root="$pkgdir/" --optimize=0
+# pushd Sane
+ python2 setup.py install --root="$pkgdir/" --optimize=0
+# popd
+
+ install -Dm644 docs/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+ install -dm755 "$pkgdir/usr/include/python$_py2basever/"
+ install -m644 -t "$pkgdir/usr/include/python$_py2basever/" libImaging/*.h
+
+ # clean up bins
+ cd "$pkgdir/usr/bin"
+ for f in *.py; do
+ mv "$f" "${f%.py}2"
+ done
+}
+
diff --git a/abs/core/python_modules/python-pillow/__changelog b/abs/core/python_modules/python-pillow/__changelog
new file mode 100644
index 0000000..8e7b951
--- /dev/null
+++ b/abs/core/python_modules/python-pillow/__changelog
@@ -0,0 +1,2 @@
+PKGBUILD - comment out all python 3 stuff and only build for py 2
+PKGBUILD - rm sane dep
diff --git a/abs/core/python_modules/python-ply/PKGBUILD b/abs/core/python_modules/python-ply/PKGBUILD
new file mode 100644
index 0000000..3c8cace
--- /dev/null
+++ b/abs/core/python_modules/python-ply/PKGBUILD
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars@gmail.com>
+# Contributor: Alexander Rødseth <rodseth@gmail.com>
+# Contributor: Marcin "avalan" Falkiewicz <avalatron@gmail.com>
+# Contributor: C Anthony Risinger <anthony@xtfx.me>
+
+pkgbase=python-ply
+pkgname=(python2-ply)
+pkgver=3.4
+pkgrel=4
+pkgdesc='Implementation of lex and yacc parsing tools'
+arch=('any')
+url='http://www.dabeaz.com/ply/'
+license=('BSD')
+makedepends=('python2-setuptools')
+source=("${url}ply-$pkgver.tar.gz")
+sha256sums=('af435f11b7bdd69da5ffbc3fecb8d70a7073ec952e101764c88720cdefb2546b')
+
+prepare() {
+ cp -r ${pkgbase#python-}-$pkgver{,-py2}
+}
+
+#package_python-ply() {
+# depends=('python')
+
+# cd "${pkgbase#python-}-$pkgver"
+
+# python setup.py install --root="$pkgdir"
+
+# install -d "$pkgdir/usr/share/licenses/$pkgname"
+# head -n30 README > "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+#}
+
+package_python2-ply() {
+ depends=('python2')
+
+ cd "${pkgbase#python-}-$pkgver-py2"
+
+ python2 setup.py install --root="$pkgdir"
+
+ install -d "$pkgdir/usr/share/licenses/$pkgname"
+ head -n30 README > "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/abs/core/python_modules/python-ply/__changelog b/abs/core/python_modules/python-ply/__changelog
new file mode 100644
index 0000000..488d3cf
--- /dev/null
+++ b/abs/core/python_modules/python-ply/__changelog
@@ -0,0 +1 @@
+PKGBUILD: rm py 3 stuff
diff --git a/abs/core/python_modules/python-py/PKGBUILD b/abs/core/python_modules/python-py/PKGBUILD
new file mode 100644
index 0000000..d0fec8b
--- /dev/null
+++ b/abs/core/python_modules/python-py/PKGBUILD
@@ -0,0 +1,57 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars@gmail.com>
+# Contributor: Sebastian Wiesner <lunaryorn googlemail com>
+# Contributor: Igor Ramos Tiburcio <irtigor@yahoo.com.br>
+# Contributor: Wieland Hoffmann <themineo+aur@gmail.com>
+# Contributor: Hervé Cauwelier <herve ¤ oursours.net>
+# Contributor: Felix Kaiser <felix.kaiser@fxkr.net>
+
+pkgbase=python-py
+pkgname=('python2-py')
+pkgver=1.4.20
+pkgrel=3
+pkgdesc="library with cross-python path, ini-parsing, io, code, log facilities"
+arch=('any')
+license=('MIT')
+url="http://pylib.readthedocs.org/en/latest/"
+makedepends=('python2-setuptools')
+checkdepends=('python2-pytest')
+source=("http://pypi.python.org/packages/source/p/py/py-$pkgver.tar.gz")
+
+prepare() {
+ cp -r py-${pkgver}{,-py2}
+}
+
+build() {
+# cd "$srcdir/py-${pkgver}"
+# python setup.py build
+
+ cd "$srcdir/py-${pkgver}-py2"
+ python2 setup.py build
+}
+
+check() {
+# cd "$srcdir/py-${pkgver}"
+# LANG=en_US.utf8 py.test
+
+ cd "$srcdir/py-${pkgver}-py2"
+ LANG=en_US.utf8 py.test2
+}
+
+#package_python-py() {
+# depends=('python')
+
+# cd py-${pkgver}
+# python setup.py install --root="${pkgdir}" --optimize=1
+# install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+#}
+
+package_python2-py() {
+ depends=('python2')
+
+ cd py-${pkgver}-py2
+ python2 setup.py install --root="${pkgdir}" --optimize=1
+ install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+sha512sums=('db392bd8d52ac2bf7b4785e18aaf58564596f66f15d355ee6f6e4169f6da7847331096ac7118c758ee5ce3f1865502a45f92ca2c99f411c12ee316760ca2b212')
diff --git a/abs/core/python_modules/python-py/__changelog b/abs/core/python_modules/python-py/__changelog
new file mode 100644
index 0000000..488d3cf
--- /dev/null
+++ b/abs/core/python_modules/python-py/__changelog
@@ -0,0 +1 @@
+PKGBUILD: rm py 3 stuff
diff --git a/abs/core/python_modules/python-pycparser/PKGBUILD b/abs/core/python_modules/python-pycparser/PKGBUILD
new file mode 100644
index 0000000..6b36524
--- /dev/null
+++ b/abs/core/python_modules/python-pycparser/PKGBUILD
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars@gmail.com>
+# Contributor: Justin Dray <justin@dray.be>
+# Contributor: Alexander Rødseth <rodseth@gmail.com>
+# Contributor: lang2 <wenzhi.liang@gmail.com>
+
+pkgbase=python-pycparser
+pkgname=(python2-pycparser)
+pkgver=2.10
+pkgrel=4
+pkgdesc='C parser and AST generator written in Python'
+url='https://github.com/eliben/pycparser'
+makedepends=('python2-ply' 'git')
+arch=('any')
+license=('BSD')
+source=('https://github.com/eliben/pycparser/archive/release_v2.10.zip')
+sha256sums=('1217244f882c330782f4762a1fb37cef21a929ce0123ac388e7e367c35ddbae3')
+
+prepare() {
+ cp -r pycparser-release_v${pkgver}{,-py2}
+}
+
+build() {
+# cd pycparser-release_v${pkgver}
+# python setup.py build
+
+# cd pycparser
+# python _build_tables.py
+
+ cd "$srcdir/pycparser-release_v${pkgver}-py2"
+ python2 setup.py build
+
+ cd pycparser
+ python2 _build_tables.py
+}
+
+#package_python-pycparser() {
+# depends=('python-ply')
+
+# cd pycparser-release_v${pkgver}
+
+# python setup.py install --root="$pkgdir" --optimize=1
+# install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+#}
+
+package_python2-pycparser() {
+ depends=('python2-ply')
+
+ cd pycparser-release_v${pkgver}-py2
+
+ python2 setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
diff --git a/abs/core/python_modules/python-pycparser/__changelog b/abs/core/python_modules/python-pycparser/__changelog
new file mode 100644
index 0000000..488d3cf
--- /dev/null
+++ b/abs/core/python_modules/python-pycparser/__changelog
@@ -0,0 +1 @@
+PKGBUILD: rm py 3 stuff
diff --git a/abs/core/python_modules/python-pygments/PKGBUILD b/abs/core/python_modules/python-pygments/PKGBUILD
new file mode 100644
index 0000000..fa1e572
--- /dev/null
+++ b/abs/core/python_modules/python-pygments/PKGBUILD
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: Evangelos Foutras <evangelos@foutrelis.com>
+# Contributor: Timm Preetz <timm@preetz.us>
+
+pkgname=('python2-pygments')
+pkgver=1.6
+pkgrel=3
+pkgdesc="Python syntax highlighter"
+arch=('any')
+url="http://pygments.org/"
+license=('BSD')
+makedepends=('python2-setuptools')
+options=('!emptydirs')
+source=(http://pypi.python.org/packages/source/P/Pygments/Pygments-$pkgver.tar.gz)
+sha256sums=('799ed4caf77516e54440806d8d9cd82a7607dfdf4e4fb643815171a4b5c921c0')
+
+build() {
+ cd "$srcdir"
+
+ rm -rf python{2,3}-build
+ for builddir in python2-build; do
+ cp -r Pygments-$pkgver $builddir
+ pushd $builddir
+ ${builddir%-build} setup.py build
+ popd
+ done
+}
+
+#package_python-pygments() {
+# depends=('python-setuptools')
+# install=python-pygments.install
+
+# cd "$srcdir/python3-build"
+
+# python3 setup.py install --root="$pkgdir" -O1
+
+ # pygmentize has been moved to the python2-pygments package
+# rm "$pkgdir/usr/bin/pygmentize"
+
+# install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+#}
+
+package_python2-pygments() {
+ depends=('python2-setuptools')
+
+ cd "$srcdir/python2-build"
+
+ python2 setup.py install --root="$pkgdir" -O1
+
+ install -Dm644 external/pygments.bashcomp \
+ "$pkgdir/usr/share/bash-completion/completions/pygmentize"
+
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/abs/core/python_modules/python-pygments/__changelog b/abs/core/python_modules/python-pygments/__changelog
new file mode 100644
index 0000000..488d3cf
--- /dev/null
+++ b/abs/core/python_modules/python-pygments/__changelog
@@ -0,0 +1 @@
+PKGBUILD: rm py 3 stuff
diff --git a/abs/core/python_modules/python-pygments/python-pygments.install b/abs/core/python_modules/python-pygments/python-pygments.install
new file mode 100644
index 0000000..eab5811
--- /dev/null
+++ b/abs/core/python_modules/python-pygments/python-pygments.install
@@ -0,0 +1,7 @@
+post_upgrade() {
+ if (($(vercmp $2 1.4-5) < 0)); then
+ echo '/usr/bin/pygmentize has been moved to the python2-pygments package'
+ fi
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/abs/core/python_modules/python-pytest/PKGBUILD b/abs/core/python_modules/python-pytest/PKGBUILD
new file mode 100644
index 0000000..d8db835
--- /dev/null
+++ b/abs/core/python_modules/python-pytest/PKGBUILD
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars@gmail.com>
+# Contributor: Felix Kaiser <felix.kaiser@fxkr.net>
+
+pkgbase=python-pytest
+pkgname=('python2-pytest')
+pkgver=2.5.2
+pkgrel=3
+pkgdesc="Simple powerful testing with Python"
+arch=('any')
+license=('MIT')
+url="http://pytest.org/"
+makedepends=('python2-setuptools' 'python2-py')
+checkdepends=('lsof' 'python2-nose' 'twisted' 'python2-mock' 'python2-yaml' 'python2-pexpect')
+source=("http://pypi.python.org/packages/source/p/pytest/pytest-$pkgver.tar.gz")
+
+prepare() {
+ cp -r pytest-${pkgver}{,-py2}
+}
+
+build() {
+# cd "$srcdir/pytest-${pkgver}"
+# python setup.py build
+
+ cd "$srcdir/pytest-${pkgver}-py2"
+ python2 setup.py build
+}
+
+check() {
+# cd "$srcdir/pytest-${pkgver}"
+# python setup.py test
+
+ cd "$srcdir/pytest-${pkgver}-py2"
+ # Tests fail with 2.5.2: https://bitbucket.org/hpk42/pytest/issue/493/example-failure-in-pytests-own-testcase
+ python2 setup.py test
+}
+
+#package_python-pytest() {
+# depends=('python' 'python-py' 'python-setuptools')
+
+# cd pytest-${pkgver}
+# python setup.py install --root="${pkgdir}" --optimize=1
+# install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+#}
+
+package_python2-pytest() {
+ depends=('python2' 'python2-py' 'python2-setuptools')
+
+ cd pytest-${pkgver}-py2
+ python2 setup.py install --root="${pkgdir}" --optimize=1
+ install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+
+ mv "${pkgdir}/usr/bin/py.test" "${pkgdir}/usr/bin/py.test2"
+}
+
+sha512sums=('d291f229f4c0a2132c437dde6ca04bf87701fe270c2fa314104badad9221ab866251890c66387d23fefd3ab1f928ee3b290dac21e3d62e7660af8903e85a2f36')
diff --git a/abs/core/python_modules/python-pytest/__changelog b/abs/core/python_modules/python-pytest/__changelog
new file mode 100644
index 0000000..488d3cf
--- /dev/null
+++ b/abs/core/python_modules/python-pytest/__changelog
@@ -0,0 +1 @@
+PKGBUILD: rm py 3 stuff
diff --git a/abs/core/python_modules/python-setuptools/PKGBUILD b/abs/core/python_modules/python-setuptools/PKGBUILD
new file mode 100644
index 0000000..44701e9
--- /dev/null
+++ b/abs/core/python_modules/python-setuptools/PKGBUILD
@@ -0,0 +1,70 @@
+# $Id$
+# Maintainer: Angel Velasquez <angvp@archlinux.org>
+# Maintainer: Felix Yan <felixonmars@gmail.com>
+
+pkgbase=python-setuptools
+pkgname=('python2-setuptools')
+pkgver=3.4.4
+pkgrel=1
+pkgdesc="Easily download, build, install, upgrade, and uninstall Python packages"
+arch=('any')
+license=('PSF')
+url="http://pypi.python.org/pypi/setuptools"
+makedepends=('python2')
+checkdepends=('python-pytest' 'python2-pytest')
+source=("http://pypi.python.org/packages/source/s/setuptools/setuptools-${pkgver}.tar.gz")
+md5sums=('6ca9e8377b65233c2ff3a1752406a22d')
+
+check() {
+ # Disabled python 3.x tests for setuptools 3.4.1:
+ # https://bitbucket.org/pypa/setuptools/issue/180/34-release-fails-tests
+
+ # Check python3 module
+ cd "${srcdir}"/setuptools-${pkgver}
+ #python3 setup.py test
+
+ # Check python2 module
+ cd "${srcdir}"/setuptools-${pkgver}-python2
+ python2 setup.py test
+}
+
+prepare() {
+ cp -a setuptools-${pkgver}{,-python2}
+
+ cd "${srcdir}"/setuptools-${pkgver}
+ sed -i -e "s|^#\!.*/usr/bin/python|#!/usr/bin/python3|" setuptools/tests/test_resources.py
+ sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python3|" setuptools/command/easy_install.py
+
+ cd "${srcdir}"/setuptools-${pkgver}-python2
+ sed -i -e "s|^#\!.*/usr/bin/python|#!/usr/bin/python2|" setuptools/tests/test_resources.py
+ sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python2|" setuptools/command/easy_install.py
+}
+
+build() {
+ # Build python 3 module
+ #cd "${srcdir}"/setuptools-${pkgver}
+ #python3 setup.py build
+
+ # Build python 2 module
+ cd "${srcdir}"/setuptools-${pkgver}-python2
+ python2 setup.py build
+}
+
+#package_python-setuptools() {
+ #depends=('python>=3.4')
+ #provides=('python-distribute')
+ #replaces=('python-distribute')
+
+ #cd "${srcdir}/setuptools-${pkgver}"
+ #python3 setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build
+#}
+
+package_python2-setuptools() {
+ depends=('python2>=2.7')
+ provides=('python2-distribute' 'setuptools')
+ replaces=('python2-distribute' 'setuptools')
+
+ cd "${srcdir}/setuptools-${pkgver}-python2"
+ python2 setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build
+ rm "${pkgdir}/usr/bin/easy_install"
+}
diff --git a/abs/core/python_modules/python-setuptools/__changelog b/abs/core/python_modules/python-setuptools/__changelog
new file mode 100644
index 0000000..9715c21
--- /dev/null
+++ b/abs/core/python_modules/python-setuptools/__changelog
@@ -0,0 +1 @@
+PKGBUILD - comment out all python 3 stuff and only build for py 2
diff --git a/abs/core/python_modules/python-six/PKGBUILD b/abs/core/python_modules/python-six/PKGBUILD
new file mode 100644
index 0000000..0e8986b
--- /dev/null
+++ b/abs/core/python_modules/python-six/PKGBUILD
@@ -0,0 +1,41 @@
+# Contributer: Allan McRae <allan@archlinux.org>
+# Maintainer: Jelle van der Waa <jelle@vdwaa.nl>
+
+pkgbase=python-six
+pkgname=('python2-six')
+pkgver=1.6.1
+pkgrel=2
+pkgdesc="Python 2 and 3 compatibility utilities"
+arch=('any')
+url="http://pypi.python.org/pypi/six/"
+license=('MIT')
+makedepends=('python2')
+source=(http://pypi.python.org/packages/source/s/six/six-$pkgver.tar.gz)
+md5sums=('07d606ac08595d795bf926cc9985674f')
+
+build() {
+ cd $srcdir
+ cp -r six-$pkgver six2-$pkgver
+}
+
+check() {
+# cd $srcdir/six-$pkgver
+# python3 setup.py check
+
+ cd $srcdir/six2-$pkgver
+ python2 setup.py check
+}
+
+#package_python-six() {
+# depends=('python')
+# cd $srcdir/six-$pkgver
+# python3 setup.py install --root "${pkgdir}" --optimize=1
+# install -Dm644 "${srcdir}/six-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+#}
+
+package_python2-six() {
+ depends=('python2')
+ cd $srcdir/six2-$pkgver
+ python2 setup.py install --root "${pkgdir}" --optimize=1
+ install -Dm644 "${srcdir}/six-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
diff --git a/abs/core/python_modules/python-six/__changelog b/abs/core/python_modules/python-six/__changelog
new file mode 100644
index 0000000..488d3cf
--- /dev/null
+++ b/abs/core/python_modules/python-six/__changelog
@@ -0,0 +1 @@
+PKGBUILD: rm py 3 stuff
diff --git a/abs/core/python_modules/python-sphinx/PKGBUILD b/abs/core/python_modules/python-sphinx/PKGBUILD
new file mode 100644
index 0000000..b4db703
--- /dev/null
+++ b/abs/core/python_modules/python-sphinx/PKGBUILD
@@ -0,0 +1,76 @@
+# $Id$
+# Maintainer: Sébastien Luttringer
+# Contributor: Angel Velasquez <angvp@archlinux.org>
+# Contributor: Fabio Volpe <volpefabio@gmail.com>
+
+pkgbase=python-sphinx
+pkgname=('python2-sphinx')
+pkgver=1.2.2
+pkgrel=4
+arch=('any')
+url='http://sphinx.pocoo.org/'
+license=('GPL')
+makedepends=(
+ 'python2-setuptools'
+ 'python2-docutils'
+ 'python2-jinja'
+ 'python2-pygments'
+)
+checkdepends=(
+ 'python2-nose'
+ 'texlive-latexextra'
+)
+source=("http://pypi.python.org/packages/source/S/Sphinx/Sphinx-$pkgver.tar.gz")
+md5sums=('3dc73ccaa8d0bfb2d62fb671b1f7e8a4')
+
+prepare() {
+ # souce duplication is required because makefile modify source code
+ # setyp.py --build tricks don't works well
+ cp -a Sphinx-$pkgver Sphinx-${pkgver}2
+ # change python2 interpreter
+ find Sphinx-${pkgver}2 -type f -exec \
+ sed -i '1s,^#! \?/usr/bin/\(env \|\)python$,#!/usr/bin/python2,' {} \;
+ # change sphinx-binaries name in source code
+# find Sphinx-${pkgver}2 -type f -name '*.py' -exec \
+# sed -ri 's,(sphinx-(:?build|apidoc|autogen|quickstart)),\12,' {} \;
+}
+
+build() {
+# msg2 'Python 3 version'
+# cd "$srcdir"/Sphinx-$pkgver
+# make PYTHON=python3 build
+ msg2 'Python 2 version'
+ cd "$srcdir"/Sphinx-${pkgver}2
+ make PYTHON=python2 build
+}
+
+check() {
+# msg2 'Python 3 version'
+# cd "$srcdir"/Sphinx-$pkgver
+# make PYTHON=python3 test
+# rm -r build/lib/tests
+ msg2 'Python 2 version'
+ cd "$srcdir"/Sphinx-${pkgver}2
+ make PYTHON=python2 test
+ rm -r build/lib/tests
+}
+
+#package_python-sphinx() {
+# pkgdesc='Python3 documentation generator'
+# depends=('python-jinja' 'python-pygments' 'python-docutils')
+# optdepends=('texlive-latexextra: for generation of PDF documentation')
+
+# cd Sphinx-$pkgver
+# python setup.py install --root="$pkgdir" --optimize=1
+#}
+
+package_python2-sphinx() {
+ pkgdesc='Python2 documentation generator'
+ depends=('python2-jinja' 'python2-pygments' 'python2-docutils')
+ optdepends=('texlive-latexextra: for generation of PDF documentation')
+
+ cd Sphinx-${pkgver}2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/abs/core/python_modules/python-sphinx/__changelog b/abs/core/python_modules/python-sphinx/__changelog
new file mode 100644
index 0000000..488d3cf
--- /dev/null
+++ b/abs/core/python_modules/python-sphinx/__changelog
@@ -0,0 +1 @@
+PKGBUILD: rm py 3 stuff
diff --git a/abs/core/python_modules/python-yaml/PKGBUILD b/abs/core/python_modules/python-yaml/PKGBUILD
new file mode 100644
index 0000000..f0fd7e6
--- /dev/null
+++ b/abs/core/python_modules/python-yaml/PKGBUILD
@@ -0,0 +1,36 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: Michal Bozon <michal.bozon__at__gmail.com>
+
+pkgbase=python-yaml
+pkgname=(python2-yaml)
+pkgver=3.11
+pkgrel=1
+pkgdesc="Python bindings for YAML, using fast libYAML library"
+arch=('i686' 'x86_64')
+url="http://pyyaml.org"
+license=('MIT')
+makedepends=('python2' 'libyaml')
+install='python-yaml.install'
+source=(http://pyyaml.org/download/pyyaml/PyYAML-$pkgver.tar.gz)
+md5sums=('f50e08ef0fe55178479d3a618efe21db')
+
+build() {
+ true
+}
+
+package_python2-yaml() {
+ depends=('python2' 'libyaml')
+
+ cd $srcdir/PyYAML-$pkgver
+ python2 setup.py install --prefix=/usr --root=$pkgdir
+ install -m644 -D LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
+}
+
+#package_python-yaml() {
+# depends=('python' 'libyaml')
+
+# cd $srcdir/PyYAML-$pkgver
+# python setup.py install --prefix=/usr --root=$pkgdir
+# install -m644 -D LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
+#}
diff --git a/abs/core/python_modules/python-yaml/__changelog b/abs/core/python_modules/python-yaml/__changelog
new file mode 100644
index 0000000..488d3cf
--- /dev/null
+++ b/abs/core/python_modules/python-yaml/__changelog
@@ -0,0 +1 @@
+PKGBUILD: rm py 3 stuff
diff --git a/abs/core/python_modules/python-yaml/python-yaml.install b/abs/core/python_modules/python-yaml/python-yaml.install
new file mode 100644
index 0000000..e2ae067
--- /dev/null
+++ b/abs/core/python_modules/python-yaml/python-yaml.install
@@ -0,0 +1,7 @@
+post_install() {
+ cat << EOT
+==> Note that even though this package uses libyaml library,
+==> slower pure python implementation is used by default.
+==> See http://pyyaml.org/wiki/PyYAMLDocumentation
+EOT
+}