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

Merge branch 'update-docs' into 'master'

Update docs and mamba/boa versions

Closes #97

See merge request !291
parents 7c8ce468 ee7d4f96
Branches
Tags
1 merge request!291Update docs and mamba/boa versions
Pipeline #61662 passed
......@@ -527,8 +527,8 @@ if __name__ == "__main__":
conda_version = "4"
conda_build_version = "3"
mamba_version = "0.21"
boa_version = "0.9"
mamba_version = "0.23"
boa_version = "0.11"
conda_verbosity = []
# if args.verbose >= 2:
......
......@@ -33,8 +33,8 @@ requirements:
- click-plugins
- conda=4
- conda-build=3
- mamba=0.21
- boa=0.9
- mamba=0.23
- boa=0.11
- certifi
- docformatter
- git # [linux]
......
......@@ -36,6 +36,13 @@ assume you have ``bob.devtools`` installed on a conda environment named ``bdt``
$ bdt dev create -vv dev
$ conda activate dev
.. note::
``bdt`` might try to install the cuda version of deep learning packages. If
you don't have cuda drivers installed and face errors such as ``nothing
provides __cuda``, you might need to run: ``export CONDA_OVERRIDE_CUDA=11.6``
where instead of ``11.6`` you should put the latest version of cuda.
* Build the package using pip:
.. code-block:: sh
......
......@@ -12,7 +12,10 @@ We provide packages for both 64-bit Linux and MacOS, for Python 3.8+.
.. code-block:: sh
$ mamba install -n base -c https://www.idiap.ch/software/bob/conda/label/beta -c conda-forge bob.devtools
$ mamba install -n base \
-c https://www.idiap.ch/software/bob/conda/label/beta \
-c conda-forge \
bob.devtools
.. warning::
......@@ -25,17 +28,21 @@ We provide packages for both 64-bit Linux and MacOS, for Python 3.8+.
recommend you install this package on the ``base`` environment.
Installing bob.devtools will create a terminal command called ``bdt`` which you
must create an alias for it because some ``bdt`` commands require another conda
must make available in your ``PATH`` because some ``bdt`` commands require another conda
environment to be activated. Moreover, development of Bob packages depend on
pre-commit_ (pre-commit gets installed as a dependency of bob.devtools) so you
will need an alias for that as well:
will need to make that available in your ``PATH`` environment variable as well:
.. code-block:: sh
# Make sure bdt and pre-commit are available in your PATH
$ mkdir -pv $HOME/.local/bin
$ export PATH=$HOME/.local/bin:$PATH
$ conda activate base
$ echo "alias bdt=$(which bdt)" >> ~/.bashrc
# you will also need pre-commit which gets installed when you install bob.devtools
$ echo "alias pre-commit=$(which pre-commit)" >> ~/.bashrc
$ ln -s $(command -v bdt) $HOME/.local/bin/
$ ln -s $(command -v pre-commit) $HOME/.local/bin/
# Make sure $HOME/.local/bin is in your PATH all the time.
$ echo 'export PATH=$HOME/.local/bin:$PATH' >> $HOME/.bashrc
$ source ~/.bashrc
# test if it works
$ conda deactivate
......@@ -93,10 +100,11 @@ pip-installable packages, create a section named ``create`` in the file
.. code-block:: ini
[create]
pip_extras = pre-commit
pip_extras = ipdb
ipdbplugin
Then, by default, ``bdt dev create`` will automatically pip install
``pre-commit`` at environment creation time. You may reset this list to your
Then, by default, ``bdt dev create`` will automatically pip install ``ipdb`` and
``ipdbplugin`` at environment creation time. You may reset this list to your
liking.
.. include:: links.rst
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment