diff --git a/bob/devtools/bootstrap.py b/bob/devtools/bootstrap.py index bfb79ed66cc8b693819cf2a13ea8aec288610749..be3d3d1cdbe7a34c3d94194093e8e91739c6c115 100644 --- a/bob/devtools/bootstrap.py +++ b/bob/devtools/bootstrap.py @@ -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: diff --git a/conda/meta.yaml b/conda/meta.yaml index cbeef8397b6ffbd7b728be501db7e86445eb2686..a4506c419babf485ecd1bd7b4561c9703076f36e 100644 --- a/conda/meta.yaml +++ b/conda/meta.yaml @@ -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] diff --git a/doc/development.rst b/doc/development.rst index 9dfb237ca11a572b7783bc26b17d3998b7791110..4b4b4eb38cba9652f7823e3b5b9a3b4a49dd6f77 100644 --- a/doc/development.rst +++ b/doc/development.rst @@ -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 diff --git a/doc/install.rst b/doc/install.rst index 9ad78842d486ca5e87f57f442652ec74935df571..9dec0d02e65264ec0e73e18ce766d24954ddfb72 100644 --- a/doc/install.rst +++ b/doc/install.rst @@ -28,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 @@ -96,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