You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/install.rst
+33-11
Original file line number
Diff line number
Diff line change
@@ -30,13 +30,24 @@ TCRM.
30
30
Setting the environment
31
31
-----------------------
32
32
33
-
To enable TCRM to run flawlessly, you may need to change some environment settings. The important variable to set is the ``PYTHONPATH`` variable. This should be set to the path where you have extracted the contents of the zip file. In the examples below, change ``/path/to/tcrm`` to the location where you extracted the TCRM files.
33
+
To enable TCRM to run flawlessly, you may need to change some
34
+
environment settings. The important variable to set is the
35
+
``PYTHONPATH`` variable. This should be set to the path where you have
36
+
extracted the contents of the zip file. In the examples below, change
37
+
``/path/to/tcrm`` to the location where you extracted the TCRM files.
34
38
35
-
A complete discussion on environment variables in Python is given in the `Python documentation <https://docs.python.org/2/using/cmdline.html#environment-variables>`_.
39
+
A complete discussion on environment variables in Python is given in
The Python documentation contains some simple instructions for setting environment variables on Windows systems `here <https://docs.python.org/2/using/windows.html>`_. See `this link <http://www.computerhope.com/issues/ch000549.htm>`_ for setting the variables on different Windows systems.
45
+
46
+
The Python documentation contains some simple instructions for setting
47
+
environment variables on Windows systems `here
48
+
<https://docs.python.org/2/using/windows.html>`_. See `this link
49
+
<http://www.computerhope.com/issues/ch000549.htm>`_ for setting the
50
+
variables on different Windows systems.
40
51
41
52
BASH shell
42
53
~~~~~~~~~~
@@ -120,7 +131,7 @@ From the base directory, execute the build process::
120
131
Ubuntu
121
132
~~~~~~
122
133
The github branch issue_25 (created from the v2.0 branch) had an environment created by `installing miniconda
123
-
<https://conda.io/docs/install/quick.html#linux-miniconda-install>`_ and executing the following commands.
134
+
<https://conda.io/docs/install/quick.html#linux-miniconda-install>`_ and executing the following commands::
124
135
125
136
~/miniconda2/bin/conda create --name tcrm
126
137
~/miniconda2/bin/source activate tcrm
@@ -136,39 +147,50 @@ The github branch issue_25 (created from the v2.0 branch) had an environment cre
An error occurred where the include file seems to have changed paths. It may be a one off,
147
160
or it may reoccur in another version of Linux. The error was in KPDF.c and the change was to
148
-
comment out one line and replace it with another.
161
+
comment out one line and replace it with another.::
149
162
150
163
#include "numpy/arrayobject.h"
151
164
/* #include "arrayobject.h" */
152
165
153
166
A requiremements file was created in the root directory called ``linux_v20.yml`` and should (it hasn't been tested)
154
-
replace the ``conda install`` commands above. The command to use this file is:
167
+
replace the ``conda install`` commands above. The command to use this file is::
155
168
156
169
conda env create -f linux_v20.yml
157
170
158
-
Activating the environment would be
171
+
Activating the environment would be::
172
+
159
173
source activate linux_v20
160
174
161
175
162
176
Windows
163
177
~~~~~~~
164
178
165
179
For Windows users, the code includes the ``compile.cmd`` script in the
166
-
main TCRM diretory that will build these extensions in place. By default, TCRM uses the MinGW suite (http://www.mingw.org) for compiling the extensions. Other Windows-based packages can also be used (e.g. Cygwin). See the Python documentation on writing configuration files for the :mod:`distutils` package for more details.
180
+
main TCRM diretory that will build these extensions in place. By
181
+
default, TCRM uses the MinGW suite (http://www.mingw.org) for
182
+
compiling the extensions. Other Windows-based packages can also be
183
+
used (e.g. Cygwin). See the Python documentation on writing
184
+
configuration files for the :mod:`distutils` package for more details.
167
185
168
186
Notes
169
187
~~~~~
170
188
171
-
It is recommended to use a stand-alone Python installation for compiling and running TCRM. Installations linked to other software such as ArcGIS have resulted in compilation errors, as the required :mod:`numpy` libraries are pre-compiled and packaged with such installations.
189
+
It is recommended to use a stand-alone Python installation for
190
+
compiling and running TCRM. Installations linked to other software
191
+
such as ArcGIS have resulted in compilation errors, as the required
192
+
:mod:`numpy` libraries are pre-compiled and packaged with such
0 commit comments