[arch-commits] Commit in python-openmdao/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Thu Nov 12 19:46:23 UTC 2020
Date: Thursday, November 12, 2020 @ 19:46:23
Author: foutrelis
Revision: 753603
archrelease: copy trunk to community-staging-any
Added:
python-openmdao/repos/community-staging-any/
python-openmdao/repos/community-staging-any/PKGBUILD
(from rev 753602, python-openmdao/trunk/PKGBUILD)
----------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
Copied: python-openmdao/repos/community-staging-any/PKGBUILD (from rev 753602, python-openmdao/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-12 19:46:23 UTC (rev 753603)
@@ -0,0 +1,38 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-openmdao
+pkgver=3.4.0
+pkgrel=2
+pkgdesc="An open-source high-performance computing platform"
+url="https://github.com/OpenMDAO/OpenMDAO"
+license=('Apache')
+arch=('any')
+depends=('python-six' 'python-numpydoc' 'python-scipy' 'python-sqlitedict' 'python-pycodestyle'
+ 'python-pydocstyle' 'python-testflo' 'python-parameterized' 'python-pyparsing'
+ 'python-networkx' 'python-sphinx' 'python-redbaron' 'python-mock' 'python-requests-mock'
+ 'python-tornado' 'python-pydoe2')
+checkdepends=('python-mpi4py')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/OpenMDAO/OpenMDAO/archive/$pkgver.tar.gz")
+sha512sums=('33e51f9d8545a745157134ec70e310a29021a6dd210dbda6fec2eb8de957440bb24adf2b2c4f97f7a26172a35eb356709df25bb49f57514dbb2945bdd84bca10')
+
+prepare() {
+ cd OpenMDAO-$pkgver
+ sed -e 's/from distutils.core/from setuptools/' \
+ -e 's/==/>=/' \
+ -i setup.py
+}
+
+build() {
+ cd OpenMDAO-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd OpenMDAO-$pkgver
+ PYTHONPATH="$PWD/build/lib" testflo -n 16 --timeout=120 openmdao || echo "Tests failed"
+}
+
+package() {
+ cd OpenMDAO-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+}
More information about the arch-commits
mailing list