Skip to content

Commit

Permalink
Merge pull request #1 from pshriwise/pymoab-pip-install
Browse files Browse the repository at this point in the history
Install PyMOAB to Python environment as user
  • Loading branch information
bquan0 authored Apr 28, 2023
2 parents 0f57d44 + e05b28a commit 528d45f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions docker/ubuntu_22.04-dev.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ ENV INSTALL_PATH=$HOME/opt/moab
RUN export PYMOAB_FLAG="-DENABLE_PYMOAB=ON"; \
echo $PYMOAB_FLAG ;\
export MOAB_HDF5_ARGS=""; \
if [ "$build_hdf5" != "NO" ] ; \
if [ "$build_hdf5" != "NO" ] ; \
then \
export MOAB_HDF5_ARGS="-DHDF5_ROOT=$HDF5_INSTALL_PATH"; \
fi \
Expand All @@ -90,6 +90,9 @@ RUN export PYMOAB_FLAG="-DENABLE_PYMOAB=ON"; \
-DENABLE_BLASLAPACK=OFF \
-DENABLE_FORTRAN=OFF \
&& make -j 3 \
&& cd pymoab \
&& pip install . --user \
&& cd ..
&& make install \
&& cd .. \
&& rm -rf moab ;
Expand Down Expand Up @@ -129,7 +132,7 @@ RUN if [ "$build_hdf5" != "NO" ]; then \
git clone https://github.com/openmc-dev/openmc.git $HOME/opt/openmc \
&& cd $HOME/opt/openmc \
&& git checkout tags/v0.13.0 \
&& pip install .
&& pip install .

# Build/Install PyNE
FROM openmc AS pyne
Expand All @@ -145,7 +148,7 @@ RUN export PYNE_HDF5_ARGS="" ;\
&& python setup.py install --user \
--moab $HOME/opt/moab --dagmc $HOME/opt/dagmc \
$PYNE_HDF5_ARGS \
--clean -j 3;
--clean -j 3;
ENV PATH $HOME/.local/bin:$PATH
RUN if [ "$build_pyne" = "YES" ]; then \
cd $HOME \
Expand Down

0 comments on commit 528d45f

Please sign in to comment.