bh107 / bohrium

Automatic parallelization of Python/NumPy, C, and C++ codes on Linux and MacOSX
http://www.bh107.org
Apache License 2.0
220 stars 31 forks source link

Changing the installation directory of the python-module #637

Open cherti opened 4 years ago

cherti commented 4 years ago

I just tried to package bohrium 0.11.0, however, I run into the issue that when I run make DESTDIR=$pkgdir install, bohrium attempts to install to /usr/lib/python3.8... (which was set via -DCMAKE_INSTALL_PREFIX=/usr earlier, as this will be the location after the final installation). This is of course very unintended behavior for packaging. I haven't found any documentation or a flag to change this behavior so far.

How is this supposed to be changed?

For Python-packages, typically one can set the --root="$pkgdir/"-option, which takes care of this issue, such as

python setup.py install --root="$pkgdir/"

Is something like this configurable in bohrium?