Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.devtools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.devtools
Commits
ee7d4f96
Commit
ee7d4f96
authored
2 years ago
by
Amir MOHAMMADI
Browse files
Options
Downloads
Patches
Plain Diff
update installation instructions and mamba/boa versions
parent
3165c6e9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!291
Update docs and mamba/boa versions
Pipeline
#61652
passed
2 years ago
Stage: qa
Stage: build
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
bob/devtools/bootstrap.py
+2
-2
2 additions, 2 deletions
bob/devtools/bootstrap.py
conda/meta.yaml
+2
-2
2 additions, 2 deletions
conda/meta.yaml
doc/development.rst
+7
-0
7 additions, 0 deletions
doc/development.rst
doc/install.rst
+13
-8
13 additions, 8 deletions
doc/install.rst
with
24 additions
and
12 deletions
bob/devtools/bootstrap.py
+
2
−
2
View file @
ee7d4f96
...
@@ -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.2
1
"
mamba_version
=
"
0.2
3
"
boa_version
=
"
0.
9
"
boa_version
=
"
0.
11
"
conda_verbosity
=
[]
conda_verbosity
=
[]
# if args.verbose >= 2:
# if args.verbose >= 2:
...
...
This diff is collapsed.
Click to expand it.
conda/meta.yaml
+
2
−
2
View file @
ee7d4f96
...
@@ -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.2
1
-
mamba=0.2
3
-
boa=0.
9
-
boa=0.
11
-
certifi
-
certifi
-
docformatter
-
docformatter
-
git
# [linux]
-
git
# [linux]
...
...
This diff is collapsed.
Click to expand it.
doc/development.rst
+
7
−
0
View file @
ee7d4f96
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
doc/install.rst
+
13
−
8
View file @
ee7d4f96
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment