Skip to content

fenics: specify python exe#28323

Merged
alalazo merged 1 commit intospack:developfrom
adamjstewart:packages/fenics
Jan 12, 2022
Merged

fenics: specify python exe#28323
alalazo merged 1 commit intospack:developfrom
adamjstewart:packages/fenics

Conversation

@adamjstewart
Copy link
Copy Markdown
Member

@spackbot-app
Copy link
Copy Markdown

spackbot-app bot commented Jan 7, 2022

Hi @adamjstewart! I noticed that the following package(s) don't yet have maintainers:

  • fenics

Are you interested in adopting any of these package(s)? If so, simply add the following to the package class:

    maintainers = ['adamjstewart']

If not, could you contact the developers of this package and see if they are interested? You can quickly see who has worked on a package with spack blame:

$ spack blame fenics

Thank you for your help! Please don't add maintainers without their consent.

You don't have to be a Spack expert or package developer in order to be a "maintainer," it just gives us a list of users willing to review PRs or debug issues relating to this package. A package can have multiple maintainers; just add a list of GitHub handles of anyone who wants to volunteer.

@scheibelp scheibelp self-assigned this Jan 7, 2022
@alalazo
Copy link
Copy Markdown
Member

alalazo commented Jan 12, 2022

@spackbot run pipeline

@spackbot-app
Copy link
Copy Markdown

spackbot-app bot commented Jan 12, 2022

I've started that pipeline for you!

@alalazo alalazo enabled auto-merge (squash) January 12, 2022 12:28
@mechapple
Copy link
Copy Markdown

mechapple commented Jan 12, 2022

I have worked on installing fenics with spack. I ended up using a hybrid approach with a mix of spack and pip. I am not sure how to translate it fully into a spack recipe. I am providing my successful install script below.

#!/bin/bash
export MODULEPATH=$MODULEPATH:/cm/shared/modulefiles/

module load gcc/8.2.0
module load spack/python/3.8.6
module load spack/py-pip/20.2
module load spack/py-setuptools/50.3.2
module load spack/git/2.29.0
module load spack/cmake/3.18.4
module load spack/boost/1.62.0
module load spack/cgal/5.0.3
module load spack/eigen/3.3.8
module load spack/gmp/6.1.2
module load spack/hdf5/1.10.7
module load spack/metis/5.1.0
module load spack/mpfr/4.0.2
module load spack/openblas/0.3.12
module load spack/openmpi/3.1.6
module load spack/parmetis/4.0.2
module load spack/scotch/6.0.10
module load spack/petsc/3.7.7
module load spack/slepc/3.7.4

export CC=`which gcc` && export CXX=`which g++`
FENICS_INSTALL_DIR=/cm/shared/apps/fenics
pip3 install --prefix=$FENICS_INSTALL_DIR fenics-ffc --upgrade
export PYTHONPATH=$PYTHONPATH:$FENICS_INSTALL_DIR/lib/python3.8/site-packages/
export PATH=$PATH:$FENICS_INSTALL_DIR/bin/
FENICS_VERSION=$(python3 -c"import ffc; print(ffc.__version__)")
echo $FENICS_VERSION

PYBIND11_VERSION=2.2.3
wget -nc --quiet https://github.com/pybind/pybind11/archive/v${PYBIND11_VERSION}.tar.gz
tar -xf v${PYBIND11_VERSION}.tar.gz && cd pybind11-${PYBIND11_VERSION}
mkdir -p build && cd build && cmake -DCMAKE_INSTALL_PREFIX=$FENICS_INSTALL_DIR -DPYBIND11_TEST=off ..
make install && cd ../..

git clone --branch=$FENICS_VERSION https://bitbucket.org/fenics-project/dolfin
mkdir -p dolfin/build && cd dolfin/build
cmake -DCMAKE_INSTALL_PREFIX=$FENICS_INSTALL_DIR ..
make install
source dolfin.conf
cd ../python && pip3 install --prefix=$FENICS_INSTALL_DIR .
cd ../..

pip3 install --prefix=$FENICS_INSTALL_DIR meshio h5py

@alalazo alalazo merged commit 7d3a696 into spack:develop Jan 12, 2022
@adamjstewart adamjstewart deleted the packages/fenics branch January 12, 2022 20:04
RikkiButler20 pushed a commit to RikkiButler20/spack that referenced this pull request Feb 1, 2022
EthanS94 pushed a commit to EthanS94/spack that referenced this pull request Feb 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fenics install fails due to cmake python ply issue Installation issue: fenics fails to configure due to missing py-ply

4 participants