diff --git a/README.md b/README.md index b83bd0cd0..c889feb5c 100644 --- a/README.md +++ b/README.md @@ -197,11 +197,12 @@ to your configure options. #### Python -GenTen provides Python bindings through a Python module called pygenten generated by [pybind11](https://github.com/pybind/pybind11). This can be enabled by adding the configuration option +GenTen provides Python bindings through a Python module called pygenten generated by [pybind11](https://github.com/pybind/pybind11) and requires shared libraries to be built by `CMake`. The bindings can be enabled by adding the configuration option ``` -D ENABLE_PYTHON=ON \ + -D BUILD_SHARED_LIBS=ON \ ``` -which will compile GenTen to link against the version of python found in your environment. If the tests are going to be run, one must also have `pytest` installed. Furthermore, GenTen provides support for interoperability with pyttb. Several examples of using pygenten with and without pyttb can be found in [python/example](python/example). +which will compile GenTen to link against the version of python found in your environment. If the tests are going to be run, one must also have `pytest` installed. Furthermore, GenTen provides support for interoperability with pyttb. Several examples of using pygenten with and without pyttb can be found in [python/example](python/example). To `import pygenten` after a CMake build, add `//python` to your `$PYTHONPATH` environment variable. Alternatively, pygenten can be directly installed using pip. See [python/README.md](python/README.md) for more details.