File: README.rst

package info (click to toggle)
dolfin 2018.1.0.post1-16
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 28,764 kB
  • sloc: xml: 104,040; cpp: 98,856; python: 22,511; makefile: 204; sh: 182
file content (31 lines) | stat: -rw-r--r-- 836 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
DOLFIN Python interface
=======================

Building the DOLFIN Python interface uses pybind11.

1. Install pybdind11 version 2.2.1 or later. Use CMake to install
   pybind11, e.g.::

     wget -nc --quiet https://github.com/pybind/pybind11/archive/v2.2.1.tar.gz
     tar -xf v2.2.1.tar.gz
     cd pybind11-2.2.1
     mkdir build-dir
     cmake -DPYBIND11_TEST=off -DCMAKE_INSTALL_PREFIX=/path/to/pybind11/install ../
     make install

   The FEniCS Docker images are configured with pybind11.

2. Build and install the DOLFIN C++ library in the usual way.

3. Build DOLFIN Python interface::

     export PYBIND11_DIR=/path/to/pybind11/install
     pip3 -v install . --user

To install in a local build directory::

  python3 setup.py build

and set the ``PYTHONPATH``. To build in debug mode::

  python3 setup.py build --debug