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

Update Ubuntu script to match version restrictions of current PyNE #65

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 29 additions & 11 deletions ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,44 @@
# list of package installed through apt-get
# (required to run this scripts and/or as dependancies for PyNE and its depedancies)
apt_package_list="software-properties-common \
python3-pip \
wget \
g++ \
build-essential \
python3-setuptools \
python3-pip \
python3-dev \
python3-packaging \
libpython3-dev \
git \
cmake \
gfortran \
libblas-dev \
liblapack-dev \
libeigen3-dev \
libhdf5-dev \
libhdf5-serial-dev \
autoconf \
libtool \
doxygen \
hdf5-tools"

# list of python package required for PyNE and its depedencies (installed using pip3 python package manager)
pip_package_list="numpy \
scipy \
cython \
nose \
tables \
matplotlib \
jinja2 \
setuptools \
future"
pip_package_list_a='sphinx \
cloud_sptheme \
prettytable \
"setuptools<49" \
sphinxcontrib_bibtex \
numpydoc \
nbconvert \
numpy \
nose \
cython \
future \
"tables<3.7" \
scipy \
jinja2 \
progress'
pip_package_list_b='matplotlib'

# hdf5 std directory
hdf5_libdir=/usr/lib/x86_64-linux-gnu/hdf5/serial
Expand All @@ -45,7 +61,9 @@ function check_repo() {
# system update
sudo apt-get -y update
sudo apt-get install -y ${apt_package_list}
pip3 install --user ${pip_package_list}
pip3 install --upgrade pip
pip3 install --force-reinstall --user ${pip_package_list_a}
pip3 install ${pip_pacakge_list_b}

install_dir=${HOME}/opt
mkdir -p ${install_dir}
Expand Down
5 changes: 3 additions & 2 deletions ubuntu_20.04-dev.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ RUN pip install --user numpy \
matplotlib \
jinja2 \
setuptools \
future
future \
progress

# make working directory
WORKDIR $HOME/opt
Expand Down Expand Up @@ -94,7 +95,7 @@ RUN git clone https://github.com/pyne/pyne.git \
&& python setup.py install --user \
--moab $HOME/opt/moab \
--dagmc $HOME/opt/dagmc \
--clean
--clean --slow

RUN echo "export PATH=$HOME/.local/bin:\$PATH" >> ~/.bashrc \
&& echo "export LD_LIBRARY_PATH=$HOME/.local/lib:\$LD_LIBRARY_PATH" >> ~/.bashrc \
Expand Down