Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added prefix for git repos location in install script #290

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

shimwell
Copy link
Member

No description provided.

@shimwell
Copy link
Member Author

shimwell commented Jul 16, 2024

I think this script is missing
sudo apt-get install libmetis-dev
libparmetis-dev

python -m pip install . --prefix=$PREFIX/openmc/install

echo 'export PATH="$PREFIX/openmc/install/bin:$PATH"' >> $PREFIX/setenv.sh
echo 'export PYTHONPATH="$PREFIX/openmc/install/local/lib/python3.10/dist-packages/:$PYTHONPATH"' >> $PREFIX/setenv.sh
# install WMP nuclear data
RUN wget https://github.com/mit-crpg/WMP_Library/releases/download/v1.1/WMP_Library_v1.1.tar.gz

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
RUN wget https://github.com/mit-crpg/WMP_Library/releases/download/v1.1/WMP_Library_v1.1.tar.gz
wget https://github.com/mit-crpg/WMP_Library/releases/download/v1.1/WMP_Library_v1.1.tar.gz

python -m pip install . --prefix=$PREFIX/openmc/install

echo 'export PATH="$PREFIX/openmc/install/bin:$PATH"' >> $PREFIX/setenv.sh
echo 'export PYTHONPATH="$PREFIX/openmc/install/local/lib/python3.10/dist-packages/:$PYTHONPATH"' >> $PREFIX/setenv.sh
# install WMP nuclear data
RUN wget https://github.com/mit-crpg/WMP_Library/releases/download/v1.1/WMP_Library_v1.1.tar.gz
tar -xf WMP_Library_v1.1.tar.gz -C

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
tar -xf WMP_Library_v1.1.tar.gz -C
tar -xf WMP_Library_v1.1.tar.gz -C
# insures the paths are included in the install
source $PREFIX/setenv.sh

python -m pip install . --prefix=$PREFIX/openmc/install

echo 'export PATH="$PREFIX/openmc/install/bin:$PATH"' >> $PREFIX/setenv.sh
echo 'export PYTHONPATH="$PREFIX/openmc/install/local/lib/python3.10/dist-packages/:$PYTHONPATH"' >> $PREFIX/setenv.sh
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
echo 'export PYTHONPATH="$PREFIX/openmc/install/local/lib/python3.10/dist-packages/:$PYTHONPATH"' >> $PREFIX/setenv.sh
echo 'export PYTHONPATH="$PREFIX/openmc/install/lib/python3.10/site-packages/:$PYTHONPATH""' >> $PREFIX/setenv.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants