From a23eed04de92650900025965ae41e0d5e0efd2f6 Mon Sep 17 00:00:00 2001 From: Gabriel Kosmacher <73120774+kennykos@users.noreply.github.com> Date: Thu, 4 Sep 2025 17:48:56 -0600 Subject: [PATCH 1/2] Update Python bindings section in README Clarified the requirements for building Python bindings and added information about interoperability with pyttb. --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b83bd0cd0..5dd2be55d 100644 --- a/README.md +++ b/README.md @@ -197,9 +197,10 @@ 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). From 4273fca4736fd9d24e97d09fb6ed1ab2ee6d2593 Mon Sep 17 00:00:00 2001 From: Gabriel Kosmacher <73120774+kennykos@users.noreply.github.com> Date: Fri, 5 Sep 2025 08:39:22 -0600 Subject: [PATCH 2/2] Instr for adding PyGenten to python3 path after CMake install --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5dd2be55d..c889feb5c 100644 --- a/README.md +++ b/README.md @@ -202,7 +202,7 @@ GenTen provides Python bindings through a Python module called pygenten generate -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.