diff --git a/python-setuptools/PKGBUILD b/python-setuptools/PKGBUILD index af175c4d..e269b77a 100644 --- a/python-setuptools/PKGBUILD +++ b/python-setuptools/PKGBUILD @@ -2,7 +2,7 @@ pkgbase=python-setuptools pkgname=('python3-setuptools' 'python2-setuptools') -pkgver=5.7 +pkgver=6.1 pkgrel=1 pkgdesc="Easily download, build, install, upgrade, and uninstall Python packages" arch=('any') @@ -10,17 +10,7 @@ license=('PSF') url="http://pypi.python.org/pypi/setuptools" makedepends=('python' 'python2') source=("http://pypi.python.org/packages/source/s/setuptools/setuptools-${pkgver}.tar.gz") -md5sums=('81f980854a239d60d074d6ba052e21ed') - -#check() { -# # Check python3 module -# cd "${srcdir}"/setuptools-${pkgver} -# python3 setup.py test -# -# # Check python2 module -# cd "${srcdir}"/setuptools-${pkgver}-python2 -# python2 setup.py test -#} +md5sums=('e9b44838c2e6c66f232327d7821ff6f8') prepare() { cd "${srcdir}" @@ -48,6 +38,16 @@ build() { cd ../setuptools-${pkgver}-python2 python2 setup.py build } + +check() { + # Check python3 module + cd "${srcdir}"/setuptools-${pkgver} + python3 setup.py test + + # Check python2 module + cd "${srcdir}"/setuptools-${pkgver}-python2 + python2 setup.py test +} package_python3-setuptools() { depends=('python>=3.3')