@@ -38,7 +38,9 @@ Other optional dependencies include:
38
38
* `pandas <https://pandas.pydata.org/ >`_ and
39
39
`scikit-image <https://scikit-image.org/ >`_ (for more advanced feature tracking)
40
40
41
-
41
+ **Important **: If you only want to use pysteps, you can continue reading below.
42
+ But, if you want to contribute to pysteps or edit the package, you need to install
43
+ pysteps in development mode: :ref: `Contributing to pysteps <contributor_guidelines >`.
42
44
43
45
Anaconda install (recommended)
44
46
------------------------------
@@ -88,9 +90,10 @@ to adhere to the [PEP517 standards](https://www.python.org/dev/peps/pep-0517/).
88
90
Using `pip ` instead of `setup.py ` guarantees that all the package dependencies
89
91
are properly handled during the installation process.
90
92
93
+ .. _install_osx_users :
91
94
92
- OSX users
93
- ~~~~~~~~~
95
+ OSX users: gcc compiler
96
+ ~~~~~~~~~~~~~~~~~~~~~~~
94
97
95
98
pySTEPS uses Cython extensions that need to be compiled with multi-threading
96
99
support enabled. The default Apple Clang compiler does not support OpenMP.
@@ -131,15 +134,15 @@ the homebrew installation. For example::
131
134
132
135
Then, you can continue with the normal installation procedure described next.
133
136
134
- Installation
135
- ~~~~~~~~~~~~
137
+ Installation using pip
138
+ ~~~~~~~~~~~~~~~~~~~~~~
136
139
137
140
The latest pysteps version in the repository can be installed using pip by
138
141
simply running in a terminal::
139
142
140
143
pip install git+https://github.com/pySTEPS/pysteps
141
144
142
- Or, from a local copy of the repo (global installation) ::
145
+ Or, from a local copy of the repo::
143
146
144
147
git clone https://github.com/pySTEPS/pysteps
145
148
cd pysteps
@@ -148,18 +151,6 @@ Or, from a local copy of the repo (global installation)::
148
151
The above commands install the latest version of the **master ** branch,
149
152
which is continuously under development.
150
153
151
- .. _development_mode_install :
152
-
153
- Development mode
154
- ################
155
-
156
- The latest version can also be installed in Development Mode, i.e.,
157
- in such a way that the project appears to be installed,
158
- but yet is still editable from the source tree::
159
-
160
- pip install -e <path to local pysteps repo>
161
-
162
-
163
154
Setting up the user-defined configuration file
164
155
----------------------------------------------
165
156
@@ -177,6 +168,24 @@ that can be accessed as attributes or as items.
177
168
Set-up the user-defined configuration file <set_pystepsrc >
178
169
Example pystepsrc file <pystepsrc_example >
179
170
171
+ .. _import_pysteps :
172
+
173
+ Final test: import pysteps in Python
174
+ ------------------------------------
175
+
176
+ Activate the pysteps environment::
177
+
178
+ conda activate pysteps
179
+
180
+ Launch Python and import pysteps::
181
+
182
+ python
183
+ >>> import pysteps
184
+
185
+ **Important **: The Python interpreter must be launched outside of the pysteps directory.
186
+ Otherwise, it confuses the name of the directory with the package name.
187
+ See :ref: `Issue 40 <https://github.com/pySTEPS/pysteps/issues/40 >`.
188
+
180
189
181
190
182
191
0 commit comments