[arch-commits] Commit in sage-data-conway_polynomials/trunk (PKGBUILD spkg-install)
Antonio Rojas
arojas at gemini.archlinux.org
Mon Nov 29 18:57:22 UTC 2021
Date: Monday, November 29, 2021 @ 18:57:22
Author: arojas
Revision: 1057585
Update build script to use python 3
Modified:
sage-data-conway_polynomials/trunk/PKGBUILD
sage-data-conway_polynomials/trunk/spkg-install
--------------+
PKGBUILD | 15 ++++++++-------
spkg-install | 3 ++-
2 files changed, 10 insertions(+), 8 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-11-29 16:24:21 UTC (rev 1057584)
+++ PKGBUILD 2021-11-29 18:57:22 UTC (rev 1057585)
@@ -3,20 +3,21 @@
_dbname=conway_polynomials
pkgname=sage-data-$_dbname
pkgver=0.5
-pkgrel=4
-pkgdesc="A small database of Conway polynomials"
+pkgrel=5
+pkgdesc='A small database of Conway polynomials'
arch=(any)
-url="https://www.sagemath.org"
+url='https://www.sagemath.org'
license=(GPL)
depends=()
-makedepends=(python2-six)
-source=("https://mirrors.mit.edu/sage/spkg/upstream/conway_polynomials/$_dbname-$pkgver.tar.bz2" 'spkg-install')
+makedepends=(python)
+source=(https://mirrors.mit.edu/sage/spkg/upstream/conway_polynomials/$_dbname-$pkgver.tar.bz2
+ spkg-install)
sha256sums=('d8f2788a85b1c2482cc4abe1a35d3da777445e21ec49b031d36b899e3c0deb17'
- '02a93174df87f7afe55a7720571e04df3471bd7dad197017b16bc83396b32254')
+ 'd1dd7f996b6552edaf692296a8bc170572a95c8201634d45adddddb7092ab636')
package() {
export SAGE_SHARE="$pkgdir"/usr/share
export PYTHONPATH=$PWD
ln -s conway_polynomials-$pkgver src
- python2 spkg-install
+ python spkg-install
}
Modified: spkg-install
===================================================================
--- spkg-install 2021-11-29 16:24:21 UTC (rev 1057584)
+++ spkg-install 2021-11-29 18:57:22 UTC (rev 1057585)
@@ -1,5 +1,5 @@
import os
-from six.moves import cPickle as pickle
+import pickle
SAGE_SHARE = os.getenv('SAGE_SHARE')
install_root = os.path.join(SAGE_SHARE, 'conway_polynomials')
@@ -18,3 +18,4 @@
if __name__ == '__main__':
create_db()
+
More information about the arch-commits
mailing list