[arch-commits] Commit in python-pymongo/trunk (PKGBUILD)

Jelle van der Waa jelle at archlinux.org
Thu May 14 09:22:53 UTC 2020


    Date: Thursday, May 14, 2020 @ 09:22:51
  Author: jelle
Revision: 627903

Remove unused python2 module

Modified:
  python-pymongo/trunk/PKGBUILD

----------+
 PKGBUILD |   27 +++++----------------------
 1 file changed, 5 insertions(+), 22 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-14 08:57:18 UTC (rev 627902)
+++ PKGBUILD	2020-05-14 09:22:51 UTC (rev 627903)
@@ -3,41 +3,24 @@
 # Contributor: Thomas S Hatch <thatch45 at gmail.com>
 # Contributor: Jelle van der Waa <jelle at vdwaa.nl>
 
-pkgbase=python-pymongo
-pkgname=('python-pymongo' 'python2-pymongo')
+pkgname=python-pymongo
 pkgver=3.10.1
-pkgrel=1
+pkgrel=2
 pkgdesc='Python module for using MongoDB'
 arch=('x86_64')
 license=('APACHE')
 url='https://pypi.python.org/pypi/pymongo/'
-makedepends=('python-setuptools' 'python2-setuptools')
+depends=('python')
+makedepends=('python-setuptools')
 source=("https://pypi.io/packages/source/p/pymongo/pymongo-$pkgver.tar.gz")
 sha512sums=('5a73ac17ef6f6783a573facd90879dbefa0c95d69123bc67c1a6af0987cb5786f637b8fa81a6810387acc34829a4cde33b848ac0f7b08f7d07faa90a8e13b595')
 
-prepare() {
-  cp -a "pymongo-$pkgver" "pymongo2-$pkgver"
-}
-
 build() {
   cd "$srcdir"/pymongo-$pkgver
   python setup.py build
-
-  cd "$srcdir"/pymongo2-$pkgver
-  python2 setup.py build
 }
 
-package_python2-pymongo() {
-  depends=('python2')
-  optdepends=('python2-monotonic: enable support for a monotonic clock')
-
-  cd "pymongo2-$pkgver"
-  python2 setup.py install --root="$pkgdir" --skip-build --optimize=1
-}
-
-package_python-pymongo() {
-  depends=('python')
-
+package() {
   cd "pymongo-$pkgver"
   python setup.py install --root="$pkgdir" --skip-build --optimize=1
 }


More information about the arch-commits mailing list