Skip to content
Snippets Groups Projects
Commit ee039e61 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

Add a custom BOBRC file

to customize the location of automated downloads
This should prevents errors like https://gitlab.idiap.ch/bob/bob.bio.face/-/jobs/238053
parent 90dce1f7
No related branches found
No related tags found
1 merge request!234Add a custom BOBRC file
Pipeline #52350 failed
include LICENSE README.rst buildout.cfg version.txt
recursive-include doc conf.py *.rst *.sh *.png *.ico *.crt
recursive-include bob/devtools/data *.md *.yaml *.pem matplotlibrc
recursive-include bob/devtools/data *.md *.yaml *.pem matplotlibrc bobrc
recursive-include bob/devtools/templates conf.py *.rst *.png *.ico LICENSE COPYING MANIFEST.in .gitlab-ci.yml .gitignore *.cfg *.txt *.py *.yaml .flake8
......@@ -126,3 +126,7 @@ MATPLOTLIB_RCDIR = pkg_resources.resource_filename(__name__, "data")
It is required for certain builds that use matplotlib functionality.
"""
BOBRC_PATH = pkg_resources.resource_filename(__name__, "data", "bobrc")
"""The path to custom Bob configuration file to be used during the CI
"""
{
"bob_data_folder": "./bob_data",
}
......@@ -21,6 +21,7 @@ from ..build import next_build_number
from ..build import root_logger_protection
from ..build import should_skip_build
from ..constants import BASE_CONDARC
from ..constants import BOBRC_PATH
from ..constants import CONDA_BUILD_CONFIG
from ..constants import CONDA_RECIPE_APPEND
from ..constants import MATPLOTLIB_RCDIR
......@@ -218,6 +219,7 @@ def build(
conda_config = make_conda_config(config, python, append_file, condarc_options)
set_environment("MATPLOTLIBRC", MATPLOTLIB_RCDIR)
set_environment("BOBRC", BOBRC_PATH)
# setup BOB_DOCUMENTATION_SERVER environment variable (used for bob.extension
# and derived documentation building via Sphinx)
......
......@@ -10,6 +10,7 @@ from ..bootstrap import get_channels
from ..bootstrap import set_environment
from ..build import make_conda_config
from ..constants import BASE_CONDARC
from ..constants import BOBRC_PATH
from ..constants import CONDA_BUILD_CONFIG
from ..constants import CONDA_RECIPE_APPEND
from ..constants import MATPLOTLIB_RCDIR
......@@ -200,6 +201,7 @@ def graph(
conda_config = make_conda_config(config, python, append_file, condarc_options)
set_environment("MATPLOTLIBRC", MATPLOTLIB_RCDIR)
set_environment("BOBRC", BOBRC_PATH)
# setup BOB_DOCUMENTATION_SERVER environment variable (used for bob.extension
# and derived documentation building via Sphinx)
......
......@@ -22,6 +22,7 @@ from ..build import next_build_number
from ..build import root_logger_protection
from ..build import should_skip_build
from ..constants import BASE_CONDARC
from ..constants import BOBRC_PATH
from ..constants import CONDA_BUILD_CONFIG
from ..constants import CONDA_RECIPE_APPEND
from ..constants import MATPLOTLIB_RCDIR
......@@ -211,6 +212,7 @@ def rebuild(
conda_config = make_conda_config(config, python, append_file, condarc_options)
set_environment("MATPLOTLIBRC", MATPLOTLIB_RCDIR)
set_environment("BOBRC", BOBRC_PATH)
# setup BOB_DOCUMENTATION_SERVER environment variable (used for bob.extension
# and derived documentation building via Sphinx)
......
......@@ -14,6 +14,7 @@ from ..build import get_env_directory
from ..build import make_conda_config
from ..build import root_logger_protection
from ..constants import BASE_CONDARC
from ..constants import BOBRC_PATH
from ..constants import CONDA_BUILD_CONFIG
from ..constants import CONDA_RECIPE_APPEND
from ..constants import MATPLOTLIB_RCDIR
......@@ -189,6 +190,7 @@ def test(
conda_config = make_conda_config(config, None, append_file, condarc_options)
set_environment("MATPLOTLIBRC", MATPLOTLIB_RCDIR)
set_environment("BOBRC", BOBRC_PATH)
# setup BOB_DOCUMENTATION_SERVER environment variable (used for bob.extension
# and derived documentation building via Sphinx)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment