Package Details: petsc4py 3.14-1

Git Clone URL: https://aur.archlinux.org/petsc4py.git (read-only, click to copy)
Package Base: petsc4py
Description: Python bindings for PETSc
Upstream URL: https://bitbucket.org/petsc/petsc4py/src/master
Licenses: custom
Submitter: sigvald
Maintainer: sigvald (shivupa)
Last Packager: shivupa
Votes: 6
Popularity: 0.025878
First Submitted: 2018-06-22 16:48
Last Updated: 2020-10-06 17:26

Latest Comments

liuyun commented on 2021-01-26 21:12

They seem to have fixed the MATDAAD undeclared issue early in Jan 2021. Any chance for this package to be updated?

haawda commented on 2020-12-28 22:24

Happens also under Debian: https://bugs.debian.org/978175

and upstream is aware of it: https://gitlab.com/petsc/petsc/-/issues/803

Edit: Maybe this package should go away entirely, as upstream ships petsc4py now within the petsc repo.

https://gitlab.com/petsc/petsc4py/-/commit/9b0bfe3cae39c343720cdd3db943851193f65fdb

urbainvaes commented on 2020-12-27 14:03

This fails with the following error on my machine:

creating build/temp.linux-x86_64-3.9/src
/usr/bin/mpicc -pthread -fPIC -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -fstack-protector -O3 -fPIC -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -I/opt/petsc/linux-c-opt/include -Isrc/include -I/usr/lib/python3.9/site-packages/numpy/core/include -I/usr/include/python3.9 -c src/PETSc.c -o build/temp.linux-x86_64-3.9/src/PETSc.o
In file included from src/PETSc.c:4:
src/petsc4py.PETSc.c: In function ‘__pyx_pymod_exec_PETSc’:
src/petsc4py.PETSc.c:330657:43: error: ‘MATDAAD’ undeclared (first use in this function)
330657 |   __pyx_t_7 = __pyx_f_8petsc4py_5PETSc_S_(MATDAAD); if (unlikely(!__pyx_t_7)) __PYX_ERR(38, 49, __pyx_L1_error)
       |                                           ^~~~~~~
src/petsc4py.PETSc.c:330657:43: note: each undeclared identifier is reported only once for each function it appears in
error: command '/usr/bin/mpicc' failed with exit code 1
==> ERROR: A failure occurred in build().
    Aborting...
error making: petsc4py

Any idea how to fix this?

sigvald commented on 2019-05-13 07:15

@haawda: I added you as co-maintainer. Please feel free to upload your PKGBUILD.

haawda commented on 2019-05-12 17:19

# Maintainer: Sigvald Marholm <marholm@marebakken.com>

pkgname=petsc4py
pkgver=3.11.0
pkgrel=1
_config=linux-c-opt
pkgdesc="Python bindings for PETSc"
arch=('i686' 'x86_64')
url="https://bitbucket.org/petsc/petsc4py/src/master/"
license=(custom)
depends=(petsc openmpi python-numpy)
source=(https://bitbucket.org/petsc/petsc4py/downloads/${pkgname}-${pkgver}.tar.gz)
sha256sums=('58f4f57ac96ec39273906859cdc388b1ae372045c726bfd2a01d4eca8bc4a1e6')

_petsc_dir=/opt/petsc/${_config}
_petsc_arch="arch-linux-c-opt"

build() {

        export PETSC_DIR=${_petsc_dir}
        export PETSC_ARCH=${_petsc_arch}

        cd ${srcdir}/${pkgname}-${pkgver}

        python setup.py build

}

package() {

        export PETSC_DIR=${_petsc_dir}
        export PETSC_ARCH=${_petsc_arch}

        cd ${srcdir}/${pkgname}-${pkgver}

        python setup.py install --root="${pkgdir}"

}

# vim: shiftwidth=2 softtabstop=2 tabstop=2 noexpandtab

sigvald commented on 2018-09-20 15:30

This was flagged out-of-date because there's a new version of petsc4py (3.10). It may not be much work to bump the version to 3.10 in the PKGBUILD, but I do not have time to do so myself at the moment. Contributions or co-maintainers welcome.