Skip to content

Commit

Permalink
docs/installation: Add virtualenv --download flag
Browse files Browse the repository at this point in the history
In Python 3.12, python -m venv seemingly no longer pulls in
pip and setuptools, so switch to virtualenv instead

`python setup.py develop` is now even more heavily
discouraged, so use `pip install -e` instead
  • Loading branch information
ix5 committed May 5, 2024
1 parent dc42c73 commit 50de740
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions docs/docs/contributing/documentation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Install via pip:

.. code-block:: console
$ virtualenv .venv && $ source .venv/bin/activate
$ virtualenv --download .venv && $ source .venv/bin/activate
(.venv) $ pip install sphinx
(.venv) $ sphinx-build --version
~> sphinx-build 4.5.0
Expand Down Expand Up @@ -157,7 +157,7 @@ Use ``.. code-block:: <language>`` and indent the code by one level:
.. code-block:: console
$ sudo apt install python3 python3-pip python3-virtualenv
$ virtualenv .venv
$ virtualenv --download .venv
$ source .venv/bin/activate
(.venv) $ python [cmd]
Expand Down
6 changes: 3 additions & 3 deletions docs/docs/reference/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ but not recommended):

.. code-block:: console
$ virtualenv /opt/isso
$ virtualenv --download /opt/isso
$ source /opt/isso/bin/activate
.. note::
Expand Down Expand Up @@ -216,7 +216,7 @@ To create a virtual environment (recommended), run:

.. code-block:: console
$ virtualenv .venv
$ virtualenv --download .venv
$ source .venv/bin/activate
Install JavaScript modules using ``npm``:
Expand All @@ -235,7 +235,7 @@ Install Isso and its dependencies:

.. code-block:: console
(.venv) $ python setup.py develop # or `pip install -e .`
(.venv) $ pip install -e . # -e = "editable" installation for development
(.venv) $ isso -c /path/to/isso.cfg run
.. _init-scripts:
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/technical-docs/testing-client.rst
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ Start the server and ensure that the comment database is empty:
.. code-block:: bash
$ mv comments.db comments.db.bak
$ virtualenv .venv
$ virtualenv --download .venv
$ source .venv/bin/activate
(.venv) $ isso -c contrib/isso-dev.cfg run
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/technical-docs/testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ a development server available at ``localhost:8080``.

.. code-block:: bash
$ virtualenv .venv
$ virtualenv --download .venv
$ source .venv/bin/activate
(.venv) $ isso -c contrib/isso-dev.cfg run
Expand Down

0 comments on commit 50de740

Please sign in to comment.