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
23632a05
"doc/git@gitlab.idiap.ch:bob/bob.learn.em.git" did not exist on "b840780a44c1174ca9a0396c36c5c4a0ef18a6dc"
Commit
23632a05
authored
2 years ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
[doc] Update installation instructions
parent
dbfdd60e
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!325
Update installation instructions
Pipeline
#64839
passed
2 years ago
Stage: qa
Stage: build
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
bob/devtools/build.py
+1
-0
1 addition, 0 deletions
bob/devtools/build.py
doc/install.rst
+40
-25
40 additions, 25 deletions
doc/install.rst
doc/links.rst
+1
-0
1 addition, 0 deletions
doc/links.rst
with
42 additions
and
25 deletions
bob/devtools/build.py
+
1
−
0
View file @
23632a05
...
...
@@ -349,6 +349,7 @@ def parse_dependencies(recipe_dir, config):
requirements
+=
[
"
pip
"
,
# required for installing further packages
"
ipdb
"
,
# for debugging
"
pre-commit
"
,
# for quality-assurance
]
# remove duplicates without affecting the order
...
...
This diff is collapsed.
Click to expand it.
doc/install.rst
+
40
−
25
View file @
23632a05
...
...
@@ -7,8 +7,9 @@
Installation
==============
You can install this package via conda_ or mamba_, simply pointing to our beta channel.
We provide packages for both 64-bit Linux and MacOS, for Python 3.9+.
You can install this package via mamba_ (advised, but also works with conda_),
simply pointing to our beta channel. We provide packages for both 64-bit Linux
and MacOS, for Python 3.9+.
.. code-block:: sh
...
...
@@ -17,6 +18,29 @@ We provide packages for both 64-bit Linux and MacOS, for Python 3.9+.
-c conda-forge \
bob.devtools
.. tip:: **Alternative install command**
To avoid long command-lines prefixing the channel list above, it is also
possible to setup a ``condarc`` file, on the root of your mamba_ (or conda_)
installation, to contain the following:
.. code-block:: sh
$ cat ~/mamba/condarc
show_channel_urls: true
channel_priority: strict
channels:
- https://www.idiap.ch/software/bob/conda/label/beta
- https://www.idiap.ch/software/bob/conda
- conda-forge
This allows one to issue a simplified installation command-line like the
following, instead of the long command-line above:
.. code-block:: sh
$ mamba install -n base bob.devtools
.. warning::
Some commands from this package will use the ``mamba`` CLI to install
...
...
@@ -27,27 +51,16 @@ We provide packages for both 64-bit Linux and MacOS, for Python 3.9+.
duplicating the size of your conda installation. For this reason, we
recommend you install this package on the ``base`` environment.
Installing bob.devtools will create a terminal command called ``bdt`` which you
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 to make that available in your ``PATH`` environment variable as well:
Installing bob.devtools will create a terminal command called ``bdt``, which
you can access by first activating the base environment. You can test this by
running:
.. 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
$ 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
$ bdt --help
$ pre-commit --help
(base) $ bdt --help
...
.. _bob.devtools.install.setup:
...
...
@@ -73,6 +86,7 @@ repeatitive. Your ``~/.python-gitlab.cfg`` should roughly look like this
private_token = <obtain token at your settings page in gitlab>
api_version = 4
We recommend you set ``chmod 600`` to this file to avoid prying eyes to read
out your personal token. Once you have your token set up, communication should
work transparently between the built-in gitlab client and the server.
...
...
@@ -83,12 +97,12 @@ that server inside the file ``~/.bdtrc``. Here is a skeleton:
.. code-block:: ini
[webdav]
server = http://example.com
username = username
password = password
You may obtain these parameters from our internal page explaining the `WebDAV
configuration`_. For security reasons, you should also set ``chmod 600`` to
this file.
...
...
@@ -100,11 +114,12 @@ pip-installable packages, create a section named ``create`` in the file
.. code-block:: ini
[create]
pip_extras = ipdb
ipdbplugin
pip_extras = logging-tree
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.
Then, by default, ``bdt dev create`` will automatically pip install the package
``logging-tree`` at environment creation time. You may reset this list to your
liking. Packages for documentation building (Sphinx), testing (pytest), and
quality-assurance (pre-commit) are installed by default and you do not need to
further specify them here.
.. include:: links.rst
This diff is collapsed.
Click to expand it.
doc/links.rst
+
1
−
0
View file @
23632a05
...
...
@@ -16,6 +16,7 @@
.. _gitlab: https://gitlab.idiap.ch/bob/
.. _pytest: https://docs.pytest.org/
.. _python: http://www.python.org
.. _pip: https://pypi.org/project/pip/
.. _pypi: http://pypi.python.org
.. _setuptools: https://setuptools.readthedocs.io
.. _zc.buildout: http://www.buildout.org/
...
...
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