Skip to content

Commit ee25475

Browse files
committed
Update install instructions to match COMPAS
1 parent 2f725a5 commit ee25475

File tree

3 files changed

+64
-22
lines changed

3 files changed

+64
-22
lines changed

.bumpversion.cfg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ tag = True
88
search = version = release = '{current_version}'
99
replace = version = release = '{new_version}'
1010

11+
[bumpversion:file:docs/getting_started.rst]
12+
search = {current_version}
13+
replace = {new_version}
14+
1115
[bumpversion:file:docs/doc_versions.txt]
1216
search = {current_version}
1317
replace = {new_version}

docs/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@
9292
html_last_updated_fmt = '%b %d, %Y'
9393
html_copy_source = False
9494
html_show_sourcelink = False
95+
html_permalinks = False
9596
html_add_permalinks = ''
9697
html_experimental_html5_writer = True
9798
html_compact_lists = True

docs/getting_started.rst

Lines changed: 59 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,45 +4,82 @@ Getting started
44

55
.. highlight:: bash
66

7-
Installation
8-
============
7+
**COMPAS FAB** can be easily installed on multiple platforms,
8+
using popular package managers such as conda or pip.
99

10-
The recommended way to install **COMPAS FAB** is to use `Anaconda/conda <https://docs.conda.io/>`_:
10+
Install with conda
11+
==================
12+
13+
The recommended way to install **COMPAS FAB** is with `conda <https://conda.io/docs/>`_.
14+
For example, create an environment named ``my-project`` and install COMPAS and COMPAS FAB.
1115

1216
::
1317

14-
conda install -c conda-forge compas_fab
18+
conda config --add channels conda-forge
19+
conda create -n my-project compas_fab
1520

21+
Afterwards, simply activate the environment
22+
and run the following command to check if the installation process was successful.
1623

17-
But it can also be installed using ``pip``:
24+
.. code-block:: bash
1825
19-
::
26+
conda activate my-project
27+
python -c "import compas_fab; print(compas_fab.__version__)"
28+
29+
.. code-block:: none
30+
31+
0.17.0
32+
33+
You are ready to use **COMPAS FAB**!
34+
35+
Installation options
36+
--------------------
37+
38+
Install COMPAS FAB in an environment with a specific version of Python.
39+
40+
.. code-block:: bash
41+
42+
conda create -n my-project python=3.8 compas_fab
43+
44+
Install COMPAS FAB in an existing environment.
45+
46+
.. code-block:: bash
47+
48+
conda install -n my-project compas_fab
49+
50+
Install with pip
51+
================
52+
53+
Install COMPAS FAB using ``pip`` from the Python Package Index.
54+
55+
.. code-block:: bash
2056
2157
pip install compas_fab
2258
59+
Install an editable version from local source.
2360

24-
.. note::
61+
.. code-block:: bash
2562
26-
On Windows, you may need to install
27-
`Microsoft Visual C++ 14.0 <https://www.scivision.dev/python-windows-visual-c-14-required/>`_.
63+
cd path/to/compas_fab
64+
pip install -e .
2865
66+
Note that installation with ``pip`` is also possible within a ``conda`` environment.
2967

30-
Once the installation is completed, you can verify your setup.
31-
Start Python from the command prompt and run the following:
68+
.. code-block:: bash
3269
33-
::
70+
conda activate my-project
71+
pip install -e .
3472
35-
>>> import compas_fab
73+
.. note::
3674

37-
You are ready to use **COMPAS FAB**!
75+
On Windows, you may need to install
76+
`Microsoft Visual C++ 14.0 <https://www.scivision.dev/python-windows-visual-c-14-required/>`_.
3877

39-
Update
40-
======
4178

4279
Update with conda
43-
-----------------
80+
=================
4481

45-
To update COMPAS to the latest version with ``conda``
82+
To update COMPAS FAB to the latest version with ``conda``
4683

4784
.. code-block:: bash
4885
@@ -52,13 +89,13 @@ To switch to a specific version
5289

5390
.. code-block:: bash
5491
55-
conda install compas_fab=0.15.0
92+
conda install compas_fab=0.17.0
5693
5794
5895
Update with pip
59-
---------------
96+
===============
6097

61-
If you installed COMPAS with ``pip`` the update command is the following
98+
If you installed COMPAS FAB with ``pip`` the update command is the following
6299

63100
.. code-block:: bash
64101
@@ -68,7 +105,7 @@ Or to switch to a specific version
68105

69106
.. code-block:: bash
70107
71-
pip install compas_fab==0.15.0
108+
pip install compas_fab==0.17.0
72109
73110
74111
Working in Rhino

0 commit comments

Comments
 (0)