Skip to content

Commit 0115377

Browse files
authored
Merge pull request #88 from dihm/py38_removal
Remove explicit references to `py38` in the conda install directions.
2 parents 17d7967 + 1b9bda3 commit 0115377

File tree

3 files changed

+47
-36
lines changed

3 files changed

+47
-36
lines changed

docs/source/installation/developer-anaconda.rst

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Developer installations are useful for those who want to customise the *labscrip
88
Moreover, there is now an option to write and use custom labscript device drivers outside of the labscript-devices installation directory.
99

1010

11-
In this example, we will use an existing conda environment named `py38`.
11+
In this example, we will use an existing conda environment named `labscript`.
1212
Skip the first line/step if continuing on from the instructions to :ref:`set up this environment <installation/setting-up-an-environment:Anaconda Python>`.
1313

1414
.. attention::
@@ -21,8 +21,8 @@ Skip the first line/step if continuing on from the instructions to :ref:`set up
2121
Quick start
2222
-----------
2323

24-
.. note:: After the first line, the current directory is ommited from the command prompt
25-
for brevity.
24+
.. note::
25+
After the first line, the current directory is ommited from the command prompt for brevity.
2626

2727
.. code-block:: console
2828
@@ -35,16 +35,17 @@ Quick start
3535
(base) > git clone https://github.com/wkheisenberg/runviewer
3636
(base) > git clone https://github.com/wkheisenberg/labscript-devices
3737
(base) > git clone https://github.com/wkheisenberg/labscript-utils
38-
(base) > conda activate py38
39-
(py38) > conda config --env --append channels labscript-suite
40-
(py38) > conda install setuptools-conda pyqt pip desktop-app
41-
(py38) > setuptools-conda install-requirements ^
38+
(base) > conda activate labscript
39+
(labscript) > conda config --env --append channels labscript-suite
40+
(labscript) > conda install setuptools-conda pyqt pip desktop-app
41+
(labscript) > setuptools-conda install-requirements ^
4242
labscript runmanager blacs lyse runviewer labscript-devices labscript-utils
43-
(py38) > pip install --no-build-isolation --no-deps ^
43+
(labscript) > pip install --no-build-isolation --no-deps ^
4444
-e labscript -e runmanager -e blacs -e lyse ^
4545
-e runviewer -e labscript-devices -e labscript-utils
46-
(py38) > labscript-profile-create
47-
(py38) > desktop-app install blacs lyse runmanager runviewer
46+
(labscript) > labscript-profile-create
47+
(labscript) > desktop-app install blacs lyse runmanager runviewer
48+
(labscript) > conda remove conda # optional but highly recommended
4849
4950
Detailed instructions
5051
---------------------
@@ -96,7 +97,7 @@ The following is a detailed explanation of the steps provided in the Quick start
9697

9798
#. Continue from step 4 (create the labscript profile) in the :doc:`regular-anaconda` instructions.
9899

99-
#. (Optional, but Recommended) Remove `conda` and its dependencies from the `py38` environment.
100+
#. (Optional, but Recommended) Remove `conda` and its dependencies from the `labscript` environment.
100101
This will allow you to use the standard Anaconda Prompt again with this environment without issues.
101102
The particular issue being addressed is that `setuptools-conda` installs the `conda` package in a non-base environment, which can cause issues.
102103
Once the installation is complete, `setuptools-conda` and its dependices are no longer needed and can be safely removed using:
@@ -124,4 +125,4 @@ a :ref:`pip developer installation <installation/developer-pypi:Updating a devel
124125
.. The below is a hack in order to make a code block also a hyperlink, see https://docutils.sourceforge.io/docs/ref/rst/directives.html#replace
125126
126127
.. |GitClone| replace:: `git clone`
127-
.. _GitClone: https://help.github.com/en/github/creating-cloning-and-archiving-repositories/cloning-a-repository
128+
.. _GitClone: https://help.github.com/en/github/creating-cloning-and-archiving-repositories/cloning-a-repository

docs/source/installation/regular-anaconda.rst

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Regular installation (Anaconda Cloud)
22
=====================================
33

4-
In this example, we will use an existing conda environment named `py38`.
4+
In this example, we will use an existing conda environment named `labscript`.
55
Skip the first line/step if continuing on from the instructions to :ref:`set up this environment <installation/setting-up-an-environment:Anaconda Python>`.
66

77

@@ -10,11 +10,11 @@ Quick start
1010

1111
.. code-block:: console
1212
13-
(base) C:\> conda activate py38
13+
(base) C:\> conda activate labscript
1414
(base) C:\> conda config --env --append channels labscript-suite
15-
(py38) C:\> conda install labscript-suite pyqt
16-
(py38) C:\> labscript-profile-create
17-
(py38) C:\> desktop-app install blacs lyse runmanager runviewer
15+
(labscript) C:\> conda install labscript-suite pyqt
16+
(labscript) C:\> labscript-profile-create
17+
(labscript) C:\> desktop-app install blacs lyse runmanager runviewer
1818
1919
2020
Detailed instructions
@@ -24,34 +24,34 @@ Detailed instructions
2424

2525
.. code-block:: console
2626
27-
(base) C:\> conda activate py38
27+
(base) C:\> conda activate labscript
2828
2929
2. Add the `labscript-suite` channel on `Anaconda Cloud <https://anaconda.org/labscript-suite>`_ to the current conda environment:
3030

3131
.. code-block:: console
3232
33-
(py38) C:\> conda config --env --add channels labscript-suite
33+
(labscript) C:\> conda config --env --add channels labscript-suite
3434
3535
3. Install the meta-package (`labscript-suite`) and bindings to the GUI toolkit (`pyqt`) from Anaconda Cloud.
3636
This will install blacs, labscript, labscript-devices, labscript-utils, lyse, runmanager, runviewer, and all dependencies:
3737

3838
.. code-block:: console
3939
40-
(py38) C:\> conda install labscript-suite pyqt
40+
(labscript) C:\> conda install labscript-suite pyqt
4141
4242
4343
4. Create a profile directory in your home directory (the location of user data; see :doc:`/changes`):
4444

4545
.. code-block:: console
4646
47-
(py38) C:\> labscript-profile-create
47+
(labscript) C:\> labscript-profile-create
4848
4949
5050
5. (Optional) Create shortcuts for the GUI applications (blacs, lyse, runmanager, and runviewer) and place them in the start-menu (or non-Windows OS equivalent).
5151

5252
.. code-block:: console
5353
54-
(py38) C:\> desktop-app install blacs lyse runmanager runviewer
54+
(labscript) C:\> desktop-app install blacs lyse runmanager runviewer
5555
5656
5757
These will be named, e.g. 'runmanager – the labcript suite (py38)' which when clicked on will:
@@ -67,7 +67,7 @@ Alternatively, you can launch the applications from the Anaconda Prompt in the ,
6767

6868
.. code-block:: console
6969
70-
(py38) C:\> runmanager
70+
(labscript) C:\> runmanager
7171
7272
7373
This will print debugging information to the console.
@@ -92,28 +92,28 @@ Individual components of the labscript suite can be updated using the |conda-upd
9292

9393
.. code-block:: console
9494
95-
(py38) C:\> conda update -c labscript-suite runmanager
95+
(labscript) C:\> conda update -c labscript-suite runmanager
9696
9797
9898
To upgrade to a pre-release version, you can use the test label:
9999

100100
.. code-block:: console
101101
102-
(py38) C:\> conda upadte -c labscript-suite/label/test runmanager
102+
(labscript) C:\> conda upadte -c labscript-suite/label/test runmanager
103103
104104
105105
If updating multiple components, use a single |conda-update|_ command to assist dependency resolution:
106106

107107
.. code-block:: console
108108
109-
(py38) C:\> conda update -c labscript-suite labscript lyse runmanager
109+
(labscript) C:\> conda update -c labscript-suite labscript lyse runmanager
110110
111111
112112
You can also update (or downgrade) to a specific version:
113113

114114
.. code-block:: console
115115
116-
(py38) C:\> conda update runmanager==2.5.0
116+
(labscript) C:\> conda update runmanager==2.5.0
117117
118118
119119
.. |conda-update| replace:: ``conda update``

docs/source/installation/setting-up-an-environment.rst

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ Below we outline how to create and activate a virtual environment for Anaconda P
99
Anaconda Python
1010
---------------
1111
Anaconda Python includes a `virtual environment manager <https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html>`_ as part of the `conda` executable.
12-
Here's an example (on Windows):
12+
Below is an example (on Windows).
13+
1314

1415
.. note::
1516

@@ -27,33 +28,39 @@ Here's an example (on Windows):
2728
Quickstart
2829
**********
2930

31+
When creating a new virtual enviornment, it is preferrable to specify the python version to use.
32+
You will need to specify a python version that is compatible with the **labscript-suite**.
33+
The currently compatible versions are |PyPI pyversions|.
34+
It is recommended to select a newer version of python for a new install,
35+
though some device drivers may require an older version of python to operate correctly.
36+
3037
.. code-block:: console
3138
32-
(base) C:\> conda create -n py38 python=3.8
33-
(base) C:\> conda activate py38
34-
(py38) C:\>
39+
(base) C:\> conda create -n labscript python=3.11
40+
(base) C:\> conda activate labscript
41+
(labscript) C:\>
3542
36-
Once activated, the name of the virtual environment (in this case, `py38` ) will prefix the command line.
43+
Once activated, the name of the virtual environment (in this case, `labscript` ) will prefix the command line.
3744

3845
.. _Conda Instructions:
3946

4047
Detailed Instructions
4148
*********************
4249

4350
1. Create a virtual (conda) environment.
44-
Here we name it `py38` and ask conda to use Python 3.8 within the virtual environment (name and Python version are variable but these are conventional choices):
51+
Here we name it `labscript` and ask conda to use Python 3.11 within the virtual environment (name and Python version are variable but these are conventional choices):
4552

4653
.. code-block:: console
4754
48-
(base) C:\> conda create -n py38 python=3.8
55+
(base) C:\> conda create -n labscript python=3.11
4956
5057
5158
2. Activate the virtual (conda) environment:
5259

5360
.. code-block:: console
5461
55-
(base) C:\> conda activate py38
56-
(py38) C:\>
62+
(base) C:\> conda activate labscript
63+
(labscript) C:\>
5764
5865
5966
Regular Python
@@ -122,3 +129,6 @@ Once you have a virtual environment up and running, choose from one of the follo
122129
2. :doc:`regular-anaconda`;
123130
3. :doc:`developer-pypi`; or
124131
4. :doc:`developer-anaconda`.
132+
133+
.. |PyPI pyversions| image:: https://img.shields.io/pypi/pyversions/labscript-suite.svg
134+
:target: https://pypi.python.org/pypi/labscript-suite/

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy