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

update installation instructions and mamba/boa versions

parent 3165c6e9
No related branches found
No related tags found
1 merge request!291Update docs and mamba/boa versions
Pipeline #61652 passed
...@@ -527,8 +527,8 @@ if __name__ == "__main__": ...@@ -527,8 +527,8 @@ if __name__ == "__main__":
conda_version = "4" conda_version = "4"
conda_build_version = "3" conda_build_version = "3"
mamba_version = "0.21" mamba_version = "0.23"
boa_version = "0.9" boa_version = "0.11"
conda_verbosity = [] conda_verbosity = []
# if args.verbose >= 2: # if args.verbose >= 2:
......
...@@ -33,8 +33,8 @@ requirements: ...@@ -33,8 +33,8 @@ requirements:
- click-plugins - click-plugins
- conda=4 - conda=4
- conda-build=3 - conda-build=3
- mamba=0.21 - mamba=0.23
- boa=0.9 - boa=0.11
- certifi - certifi
- docformatter - docformatter
- git # [linux] - git # [linux]
......
...@@ -36,6 +36,13 @@ assume you have ``bob.devtools`` installed on a conda environment named ``bdt`` ...@@ -36,6 +36,13 @@ assume you have ``bob.devtools`` installed on a conda environment named ``bdt``
$ bdt dev create -vv dev $ bdt dev create -vv dev
$ conda activate 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: * Build the package using pip:
.. code-block:: sh .. code-block:: sh
......
...@@ -28,17 +28,21 @@ We provide packages for both 64-bit Linux and MacOS, for Python 3.8+. ...@@ -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. recommend you install this package on the ``base`` environment.
Installing bob.devtools will create a terminal command called ``bdt`` which you 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 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 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 .. 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 $ conda activate base
$ echo "alias bdt=$(which bdt)" >> ~/.bashrc $ ln -s $(command -v bdt) $HOME/.local/bin/
# you will also need pre-commit which gets installed when you install bob.devtools $ ln -s $(command -v pre-commit) $HOME/.local/bin/
$ echo "alias pre-commit=$(which pre-commit)" >> ~/.bashrc # Make sure $HOME/.local/bin is in your PATH all the time.
$ echo 'export PATH=$HOME/.local/bin:$PATH' >> $HOME/.bashrc
$ source ~/.bashrc $ source ~/.bashrc
# test if it works # test if it works
$ conda deactivate $ conda deactivate
...@@ -96,10 +100,11 @@ pip-installable packages, create a section named ``create`` in the file ...@@ -96,10 +100,11 @@ pip-installable packages, create a section named ``create`` in the file
.. code-block:: ini .. code-block:: ini
[create] [create]
pip_extras = pre-commit pip_extras = ipdb
ipdbplugin
Then, by default, ``bdt dev create`` will automatically pip install Then, by default, ``bdt dev create`` will automatically pip install ``ipdb`` and
``pre-commit`` at environment creation time. You may reset this list to your ``ipdbplugin`` at environment creation time. You may reset this list to your
liking. liking.
.. include:: links.rst .. include:: links.rst
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