diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 15 |
1 files changed, 9 insertions, 6 deletions
@@ -3,27 +3,29 @@ pkgbase=python-galpy _pyname=${pkgbase#python-} pkgname=("python-${_pyname}") #"python-${_pyname}-doc") -pkgver=1.7.1 +pkgver=1.7.2 pkgrel=1 pkgdesc="Galactic Dynamics in python" arch=('i686' 'x86_64') url="http://galpy.readthedocs.io" license=('BSD') makedepends=('python-setuptools' 'gsl') +#'python-wheel' 'python-build' 'python-installer') #checkdepends=('python-pytest' # 'python-matplotlib' # 'python-future' # 'python-scipy') source=("https://files.pythonhosted.org/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz") -md5sums=('e6d96f823fd19180c88fc782e9b68cd9') +md5sums=('df6c8331a9c8c340e0724e0d4b9acb62') -prepare() { - export _pyver=$(python -c 'import sys; print("%d.%d" % sys.version_info[:2])') -} +#get_pyver () { +# python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))' +#} build() { cd ${srcdir}/${_pyname}-${pkgver} python setup.py build +# python -m build --wheel --no-isolation # msg "Building Docs" # python setup.py build_docs @@ -32,7 +34,7 @@ build() { #check() { # cd ${srcdir}/${_pyname}-${pkgver} # -## pytest "build/lib.linux-${CARCH}-${_pyver}" +## pytest "build/lib.linux-${CARCH}-$(get_pyver)" # python setup.py test #} @@ -50,6 +52,7 @@ package_python-galpy() { install -D -m644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" install -D -m644 README* -t "${pkgdir}/usr/share/doc/${pkgname}" python setup.py install --root=${pkgdir} --prefix=/usr --optimize=1 +# python -m installer --destdir="${pkgdir}" dist/*.whl } #package_python-galpy-doc() { |