tsymbolic link to petsc4py instead of PYTHONPATH - petsc-git-PKGBUILD - build t… | |
git clone git://src.adamsgaard.dk/petsc-git-PKGBUILD | |
Log | |
Files | |
Refs | |
--- | |
commit 6a822f8eace2d237f67494d94b5a67ca8bb5dbfa | |
parent e4ebcf1b54558918e6b4563a60c4c74ad8a9efaa | |
Author: eDgar <eDgar_|at|_openmail.cc> | |
Date: Sun, 26 Sep 2021 13:40:07 -0500 | |
symbolic link to petsc4py instead of PYTHONPATH | |
Diffstat: | |
M .SRCINFO | 6 +++--- | |
M PKGBUILD | 16 +++++++++++++--- | |
2 files changed, 16 insertions(+), 6 deletions(-) | |
--- | |
diff --git a/.SRCINFO b/.SRCINFO | |
t@@ -1,6 +1,6 @@ | |
pkgbase = petsc-git | |
pkgdesc = Portable, extensible toolkit for scientific computation | |
- pkgver = 3.15.4.37.g17c486c0fcd | |
+ pkgver = 3.15.4.39.g3348d10f62a | |
pkgrel = 1 | |
url = https://gitlab.com/petsc/petsc | |
arch = i686 | |
t@@ -14,7 +14,7 @@ pkgbase = petsc-git | |
makedepends = git | |
makedepends = cython | |
makedepends = chrpath | |
- makedepends = hypre=2.18.2 | |
+ makedepends = hypre | |
depends = openmpi | |
depends = lapack | |
depends = fftw | |
t@@ -22,7 +22,7 @@ pkgbase = petsc-git | |
depends = cython | |
depends = python-mpi4py | |
depends = python-numpy | |
- depends = eigen>=3 | |
+ depends = eigen | |
depends = openblas | |
options = !staticlibs | |
source = git+https://gitlab.com/petsc/petsc.git#branch=release | |
diff --git a/PKGBUILD b/PKGBUILD | |
t@@ -5,7 +5,7 @@ | |
_base=petsc | |
pkgname=("${_base}"-git "${_base}"-doc) | |
-pkgver=3.15.4.37.g17c486c0fcd | |
+pkgver=3.15.4.39.g3348d10f62a | |
pkgrel=1 | |
_mainver="${pkgver:0:6}" | |
pkgdesc="Portable, extensible toolkit for scientific computation" | |
t@@ -157,6 +157,9 @@ package_petsc-git() { | |
provides=(${_base}="${_mainver}" petsc4py="${_mainver}") | |
conflicts=(${_base}) | |
+ # # From OpenCV (hack destination of petsc4py) | |
+ # _pythonpath=`python -c "from sysconfig import get_path; print(get_path('pl… | |
+ # sed -i "s%\(installLibPath = \)os.path.join(self.installDir, 'lib')%\1'${_… | |
unset PETSC_DIR | |
_build_dir="${srcdir}"/"${_base}" | |
t@@ -172,8 +175,8 @@ package_petsc-git() { | |
mkdir -p "${pkgdir}"/etc/profile.d | |
echo "export PETSC_DIR=${_install_dir}" > \ | |
"${pkgdir}"/etc/profile.d/${_base}.sh | |
- echo "export PYTHONPATH=\$PYTHONPATH:/${_install_dir}/${_base}/${_config}/li… | |
- >> "${pkgdir}"/etc/profile.d/${_base}.sh | |
+ # echo "export PYTHONPATH=\$PYTHONPATH:/${_install_dir}/${_base}/${_config}/… | |
+ # >> "${pkgdir}"/etc/profile.d/${_base}.sh | |
chmod +x "${pkgdir}"/etc/profile.d/${_base}.sh | |
# show where the shared libraries are | |
t@@ -184,6 +187,13 @@ package_petsc-git() { | |
# install pkgconfig settings | |
install -Dm 644 "${_build_dir}/${_config}"/lib/pkgconfig/PETSc.pc \ | |
"${pkgdir}"/"${_install_dir}"/share/pkgconfig/PETSc.pc | |
+ | |
+ # cd "${srcdir}"/"${_base}"/src/binding/petsc4py | |
+ # CFLAGS="$(echo "${CFLAGS}" | sed 's%-D[^[:space:]]*%%g')" python setup.py … | |
+ # cd - | |
+ _pythonpath="${pkgdir}"/`python -c "from sysconfig import get_path; print(ge… | |
+ install -dm 755 ${_pythonpath} | |
+ ln -s "${pkgdir}"/"${_install_dir}"/lib/petsc4py ${_pythonpath} | |
} | |
package_petsc-doc () { |