@@ -84,6 +84,11 @@ On a Debian-based system (Ubuntu, Mint, etc.) install them by running::
84
84
sudo apt-get install -y build-essential python-dev git-core mercurial \
85
85
cmake cmake-curses-gui python-pip swig
86
86
87
+ **Note: ** You may find the version of pip this installs is too old, in
88
+ which case you can tell pip to upgrade itself::
89
+
90
+ sudo pip install pip
91
+
87
92
Dependencies
88
93
------------
89
94
@@ -92,8 +97,9 @@ install to a user site use ``pip install --user ...``. If you don't want
92
97
PyOP2 or its dependencies interfering with your existing Python environment,
93
98
consider creating a `virtualenv <http://virtualenv.org/ >`__.
94
99
95
- **Note: ** In the following we will use ``pip install ... `` to mean any
96
- of the above options.
100
+ **Note: ** In the following we will use ``sudo pip install ... ``. If
101
+ you want either of the other options you should change the command
102
+ appropriately.
97
103
98
104
**Note: ** Installing to the user site does not always give packages
99
105
priority over system installed packages on your ``sys.path ``.
@@ -129,7 +135,7 @@ can selectively upgrade packages via ``pip``, see below.
129
135
130
136
Install dependencies via ``pip ``::
131
137
132
- pip install "Cython>=0.17" decorator "numpy>=1.6"
138
+ sudo pip install "Cython>=0.17" decorator "numpy>=1.6"
133
139
134
140
Additional Python 2.6 dependencies:
135
141
@@ -138,7 +144,7 @@ Additional Python 2.6 dependencies:
138
144
139
145
Install these via ``pip ``::
140
146
141
- pip install argparse ordereddict
147
+ sudo pip install argparse ordereddict
142
148
143
149
PETSc
144
150
~~~~~
@@ -160,7 +166,7 @@ compiler) are installed. On a Debian based system, run::
160
166
161
167
Then install PETSc _ via ``pip `` ::
162
168
163
- PETSC_CONFIGURE_OPTIONS="--download-ctetgen --download-triangle --download-chaco" \
169
+ sudo PETSC_CONFIGURE_OPTIONS="--download-ctetgen --download-triangle --download-chaco" \
164
170
pip install git+https://bitbucket.org/petsc/petsc.git
165
171
unset PETSC_DIR
166
172
unset PETSC_ARCH
@@ -170,7 +176,7 @@ should be left unset when building petsc4py_.
170
176
171
177
Install petsc4py _ via ``pip ``::
172
178
173
- pip install git+https://bitbucket.org/petsc/petsc4py.git
179
+ sudo pip install git+https://bitbucket.org/petsc/petsc4py.git
174
180
175
181
If you have previously installed and older version of PETSc _ or petsc4py _,
176
182
``pip `` might tell you that the requirements are already satisfied when running
@@ -208,7 +214,7 @@ is too old, you will need to install it via ``pip``, see below.
208
214
209
215
Install dependencies via ``pip ``::
210
216
211
- pip install codepy Jinja2 mako pycparser>=2.10
217
+ sudo pip install codepy Jinja2 mako pycparser>=2.10
212
218
213
219
If a pycuda package is not available, it will be necessary to install it
214
220
manually. Make sure ``nvcc `` is in your ``$PATH `` and ``libcuda.so `` in
@@ -258,7 +264,7 @@ location you need to configure pyopencl manually::
258
264
259
265
Otherwise, install dependencies via ``pip ``::
260
266
261
- pip install Jinja2 mako pyopencl>=2012.1 pycparser>=2.10
267
+ sudo pip install Jinja2 mako pyopencl>=2012.1 pycparser>=2.10
262
268
263
269
Installing the Intel OpenCL toolkit (64bit systems only)::
264
270
@@ -296,7 +302,7 @@ On a Debian-based system, run::
296
302
297
303
sudo apt-get install libhdf5-mpi-dev python-h5py
298
304
299
- Alternatively, if the HDF5 library is available, ``pip install h5py ``.
305
+ Alternatively, if the HDF5 library is available, ``sudo pip install h5py ``.
300
306
301
307
Building PyOP2
302
308
--------------
@@ -327,7 +333,7 @@ and FIAT_. Note that FFC_ requires a version of Instant_.
327
333
328
334
Install FFC _ and all dependencies via pip::
329
335
330
- pip install \
336
+ sudo pip install \
331
337
git+https://bitbucket.org/mapdes/ffc.git#egg=ffc
332
338
git+https://bitbucket.org/mapdes/ufl.git#egg=ufl
333
339
git+https://bitbucket.org/mapdes/fiat.git#egg=fiat
@@ -368,12 +374,12 @@ manager::
368
374
369
375
or pip::
370
376
371
- pip install "pytest>=2.3"
377
+ sudo pip install "pytest>=2.3"
372
378
373
379
The code linting test uses `flake8 <http://flake8.readthedocs.org >`__.
374
380
Install via pip::
375
381
376
- pip install "flake8>=2.1.0"
382
+ sudo pip install "flake8>=2.1.0"
377
383
378
384
If you install *pytest * and *flake8 * using ``pip --user ``, you should
379
385
include the binary folder of your local site in your path by adding the
0 commit comments