[arch-commits] Commit in python-cloudpickle/trunk (PKGBUILD)
Fabio Castelli
muflone at archlinux.org
Sat Oct 12 18:27:44 UTC 2019
Date: Saturday, October 12, 2019 @ 18:27:44
Author: muflone
Revision: 515262
upgpkg: python-cloudpickle 1.2.2-1
Modified:
python-cloudpickle/trunk/PKGBUILD
----------+
PKGBUILD | 40 +++++++++++-----------------------------
1 file changed, 11 insertions(+), 29 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-10-12 18:10:56 UTC (rev 515261)
+++ PKGBUILD 2019-10-12 18:27:44 UTC (rev 515262)
@@ -1,46 +1,28 @@
# Maintainer: Muflone http://www.muflone.com/contacts/english/
# Contributor: Chris Warrick <aur at chriswarrick.com>
-pkgbase=python-cloudpickle
-pkgname=('python-cloudpickle' 'python2-cloudpickle')
-_pyname=cloudpickle
-pkgver=1.2.1
+pkgname=python-cloudpickle
+_pkgname=cloudpickle
+pkgver=1.2.2
pkgrel=1
pkgdesc='Extended pickling support for Python objects'
arch=('any')
url='https://github.com/cloudpipe/cloudpickle'
license=('BSD')
-makedepends=('python-setuptools' 'python2-setuptools')
+makedepends=('python-setuptools')
+depends=('python-setuptools')
options=(!emptydirs)
-source=("https://pypi.io/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz")
-sha256sums=('603244e0f552b72a267d47a7d9b347b27a3430f58a0536037a290e7e0e212ecf')
+source=("https://pypi.io/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
+sha256sums=('922401d7140e133253ff5fab4faa4a1166416066453a783b00b507dca93f8859')
-prepare() {
- # Prepare sources for python2 build
- cp -r "${_pyname}-${pkgver}" "python2-${_pyname}-${pkgver}"
-}
-
build() {
- cd "${_pyname}-${pkgver}"
+ cd "${_pkgname}-${pkgver}"
python3 setup.py build
-
- cd "${srcdir}/python2-${_pyname}-${pkgver}"
- python2 setup.py build
}
-package_python-cloudpickle() {
- depends=('python-setuptools')
-
- cd "${_pyname}-${pkgver}"
- python3 setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1
+package() {
+ cd "${_pkgname}-${pkgver}"
+ python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
-package_python2-cloudpickle() {
- depends=('python2-setuptools')
-
- cd "python2-${_pyname}-${pkgver}"
- python2 setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1
- install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-}
-
More information about the arch-commits
mailing list