Closed vathomass closed 10 months ago
Hi,
I have also switched to scikit-build-core
for building the bindings, a module that uses CMake for building python packages. I assume it is better than the custom code I had added in the setup.py
file.
Best Thomas
Hi,
There were three issues when installing
pyclblast
in windows:python
module, you should provide to the linker theclblast
andopencl
include paths and theclblast
library path. If not the module will not compile.runtime_library_dirs
options indistutils.extension.Extension
, used by thesetup.py
script, is not available in windows platforms (see here).ImportError: DLL load failed
message when trying to import the module. This is probably related to this issue.This PR moves towards installing
pyclblast
in windows, without breaking the installation on others platforms. TheCLBlast
library usescmake
for building and installing, and also installs acmake
package for the library. Usingcmake
for building thepython
module also should address issues 1 and 2 (letcmake
take care of finding theclblast
installation and setting up the compiler and linker flags). To solve issue 3, one approach (found in the internet) is to copy the dll along with the binary module to the installation folder.Moreover, the PR switched from the
setup.py
style to thepyproject.toml
style installation, hopefully for good.I am a basic user of
cmake
, so I welcome any comments. I have tested the changes on windows and linux environments.Best, Thomas