Skip to content

Commit

Permalink
Avoid duplications
Browse files Browse the repository at this point in the history
  • Loading branch information
ktf committed Jan 30, 2020
1 parent 2dc06a5 commit 0b5d16c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python-modules.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ prepend_path:
if [ ! "X$VIRTUAL_ENV" = X ]; then
# Once more to get the deactivate
. $VIRTUAL_ENV/bin/activate
pip freeze > requirements.txt
pip freeze > system-requirements.txt
deactivate
fi

# PIP_REQUIREMENTS & PIP36_REQUIREMENTS come from Python-modules-list
echo $PIP_REQUIREMENTS | tr \ \\n >> requirements.txt
echo $PIP_REQUIREMENTS | tr \ \\n > requirements.txt
if python3 -c 'import sys; exit(0 if 1000*sys.version_info.major + sys.version_info.minor >= 3006 else 1)' && [[ $ARCHITECTURE != slc6* ]]; then
echo $PIP36_REQUIREMENTS | tr \ \\n >> requirements.txt
fi
Expand All @@ -40,6 +40,7 @@ python3 -m venv --system-site-packages --symlinks $PYTHON_MODULES_INSTALLROOT
# See also:
# https://github.com/scikit-garden/scikit-garden/issues/23
grep RootInteractive requirements.txt && pip3 install -IU numpy
pip3 install -IU -r system-requirements.txt
pip3 install -IU -r requirements.txt

# Major.minor version of Python
Expand Down

0 comments on commit 0b5d16c

Please sign in to comment.