📝 docs: some rewording re dev environment

This commit is contained in:
Gina Häußge committed 2019-02-06 18:12:44 +01:00
1 parent 61136edeea
commit 1e42db040d
2 files changed
+30 -9

No files matched your search

+29 -8
View File
@@ -18,15 +18,14 @@ below.
* `Git <https://git-scm.com>`_
* Checkout the OctoPrint sources from their Git repository:
* ``git clone https://github.com/foosel/OctoPrint.git``
* ``git clone -b <your dev branch> https://github.com/foosel/OctoPrint.git``
* ``git clone -b devel https://github.com/foosel/OctoPrint.git``
* Enter the checked out source folder: ``cd OctoPrint``
* Create a virtual environment in the checked out source folder to use for installing and running OctoPrint and its
dependencies (this avoids potential versioning issues for the dependencies with system wide installed
instances):
* Create a virtual environments in the checked out source folder for both Python 2.7 and Python 3.7 to use for
installing and running OctoPrint and its dependencies (this avoids potential versioning issues for the dependencies
with system wide installed instances):
* PY2: ``virtualenv --python=python2 venv2``
* PY3: ``virtualenv --python=python3 venv3``
* Activate the virtual environment:
* Activate a virtual environments:
* PY2 : ``source venv2/bin/activate`` (Linux, MacOS) or ``source venv2/Scripts/activate`` (Git Bash under Windows, see below)
* PY3 : ``source venv3/bin/activate`` (Linux, MacOS) or ``source venv3/Scripts/activate`` (Git Bash under Windows, see below)
* Update ``pip`` in the virtual environment:
@@ -43,11 +42,21 @@ When the virtual environment is activated you can then:
* run the test suite from the checked out source folder via ``nosetests --with-doctest``
* build the documentation from the ``docs`` sub folder of the checked out sources via ``sphinx-build -b html . _build``
To switch the activated virtual environment, first deactivate the currently selected one:
* ``deactivate``
and then activate the other one as described above.
.. _sec-development-environment-source-linux:
Linux
.....
.. todo::
This guide is not yet adapted to the concurrent use of Python 2.7 and 3.7 environments during development.
This assumes you'll host your OctoPrint development checkout at ``~/devel/OctoPrint``. If you want to use a different
location, please substitute accordingly.
@@ -80,7 +89,7 @@ Then:
.. code-block:: none
cd ~/devel
git clone https://github.com/foosel/OctoPrint.git
git clone -b devel https://github.com/foosel/OctoPrint.git
cd OctoPrint
virtualenv venv
source ./venv/bin/activate
@@ -95,12 +104,16 @@ environment.
Windows
.......
.. todo::
This guide is not yet adapted to the concurrent use of Python 2.7 and 3.7 environments during development.
This assumes you'll host your OctoPrint development checkout at ``C:\Devel\OctoPrint``. If you want to use a different
location, please substitute accordingly.
First download & install:
* `Python 2.7.12 Windows x86 MSI installer <https://www.python.org/downloads/release/python-2712/>`_
* `Python 2.7.15 Windows x86 MSI installer <https://www.python.org/downloads/release/python-2715/>`_
* make sure to have the installer add Python to the ``PATH`` and have it install ``pip`` too
@@ -130,6 +143,10 @@ Mac OS X
This guide is based on the `Setup Guide for Mac OS X on OctoPrint's wiki <https://github.com/foosel/OctoPrint/wiki/Setup-on-Mac/>`_.
Please report back if it works for you, due to lack of access to a Mac I cannot test it myself. Thanks.
.. todo::
This guide is not yet adapted to the concurrent use of Python 2.7 and 3.7 environments during development.
This assumes you'll host your OctoPrint development checkout at ``~/devel/OctoPrint``. If you want to use a different
location, please substitute accordingly.
@@ -168,6 +185,10 @@ You'll need a user account with administrator privileges.
IDE Setup
---------
.. todo::
This guide is not yet adapted to the concurrent use of Python 2.7 and 3.7 environments during development.
.. todo::
Using another IDE than the ones below? Please send a
+1 -1
View File
@@ -1,7 +1,7 @@
.. _sec-modules-users:
octoprint.access.users
---------------
----------------------
.. automodule:: octoprint.access.users
:members: