Skip to content

Commit 13f95a8

Browse files
authored
Merge pull request #157 from Pennycook/venv-docs
Add instructions for virtual environments
2 parents 7ee2e29 + ab7c9e0 commit 13f95a8

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
# -- General configuration ---------------------------------------------------
2020
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
2121

22-
extensions = ["sphinx.ext.mathjax"]
22+
extensions = ["sphinx.ext.mathjax", "sphinx_inline_tabs"]
2323

2424
templates_path = ["_templates"]
2525
exclude_patterns = []

docs/source/index.rst

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,27 @@ release, run the following::
6666
$ cd code-base-investigator
6767
$ pip install .
6868

69-
We strongly recommend installing CBI within a `virtual environment`_.
69+
We strongly recommend installing CBI within a virtual environment, to simplify
70+
dependency management and improve security. Some alternative methods of
71+
creating a virtual environment are shown below.
7072

71-
.. _`virtual environment`: https://docs.python.org/3/library/venv.html
73+
.. tab:: venv
7274

75+
.. code-block:: text
76+
77+
$ git clone --branch 1.2.0 https://github.com/intel/code-base-investigator.git
78+
$ python3 -m venv cbi
79+
$ source cbi/bin/activate
80+
$ cd code-base-investigator
81+
$ pip install .
82+
83+
.. tab:: uv
84+
85+
.. code-block:: text
86+
87+
$ git clone --branch 1.2.0 https://github.com/intel/code-base-investigator.git
88+
$ cd code-base-investigator
89+
$ uv tool install .
7390
7491
Getting Started
7592
###############

0 commit comments

Comments
 (0)