Fix compilation of Python bindings for named build directories (#6244)
authoryoni206 <yoni206@users.noreply.github.com>
Wed, 31 Mar 2021 00:11:10 +0000 (17:11 -0700)
committerGitHub <noreply@github.com>
Wed, 31 Mar 2021 00:11:10 +0000 (17:11 -0700)
commit7ff3e6300f3adb64867b636c7638ee4e8b00ce5a
tree4dccf30b5a8cb5c837510a50b7b5cd8abc692a87
parent5250e3714929164004f8dd5d7551a07f888ee311
Fix compilation of Python bindings for named build directories (#6244)

In current master, the following fails whenever <name> contains a /:

./configure.sh --python-bindings --name=<name>

The reason is that src/api/python/genkinds.py adds a directory to the python path while relying on the fact that the build directory is located directly under the main repo directory, which is not the case if <name> contains a /.
This PR fixes this by having cmake determine the right directory to add to the python path.
src/api/python/CMakeLists.txt
src/api/python/genkinds.py [deleted file]
src/api/python/genkinds.py.in [new file with mode: 0644]