Skip to content
Prev Previous commit
Next Next commit
Change omlp directory name to less cryptic openml
  • Loading branch information
PGijsbers committed Jul 27, 2023
commit d57cd5d8adc6cd7771bf5be625f0fc7d3e3f53bb
4 changes: 2 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# Useful building docs or running unix tests from a Windows host.
FROM python:3.10

RUN git clone https://github.com/openml/openml-python.git omlp
WORKDIR omlp
RUN git clone https://github.com/openml/openml-python.git openml
WORKDIR openml
RUN python -m venv venv
RUN venv/bin/pip install wheel setuptools
RUN venv/bin/pip install -e .[test,examples,docs,examples_unix]
Expand Down
12 changes: 6 additions & 6 deletions docker/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# The test or doc build is executed on this branch.

if [[ ! ( $1 = "doc" || $1 = "test" ) ]]; then
source /omlp/venv/bin/activate
source /openml/venv/bin/activate
python "$@"
exit 0
fi
Expand All @@ -35,8 +35,8 @@ if [ "$1" == "doc" ] && [ -n "$2" ] && ! [ -d "/output" ]; then
fi

if [ -n "$2" ]; then
# if a branch is provided, we will pull it into the `omlp` local repository that was created with the image.
cd omlp
# if a branch is provided, we will pull it into the `openml` local repository that was created with the image.
cd openml
if [[ $2 == *#* ]]; then
# If a branch is specified on a fork (with NAME#BRANCH format), we have to construct the url before pulling
# We add a trailing '#' delimiter so the second element doesn't get the trailing newline from <<<
Expand All @@ -55,12 +55,12 @@ if [ -n "$2" ]; then
exit 1
fi
git pull
code_dir="/omlp"
code_dir="/openml"
else
code_dir="/code"
fi

source /omlp/venv/bin/activate
source /openml/venv/bin/activate
cd $code_dir
# The most recent ``main`` is already installed, but we want to update any outdated dependencies
pip install -e .[test,examples,docs,examples_unix]
Expand All @@ -74,6 +74,6 @@ if [ "$1" == "doc" ]; then
make html
make linkcheck
if [ -d "/output" ]; then
cp -r /omlp/doc/build /output
cp -r /openml/doc/build /output
fi
fi