Closed paskino closed 5 months ago
conda build
is failing with
error: Error: setup script specifies an absolute path:
/home/jenkins/conda-bld/ccpi-regulariser_1709812762250/work/src/Python/src/cpu_regularisers.cpp
setup() arguments must *always* be /-separated paths relative to the
setup.py directory, *never* absolute paths.
@casperdcl and I tried many things but we couldn't make cython build correctly.
Given https://github.com/vais-ral/CCPi-Regularisation-Toolkit/issues/178#issuecomment-1862593404 I am working at removing the Cython interface using ctypes
.
See https://github.com/vais-ral/CCPi-Regularisation-Toolkit/blob/use_ctypes/demos/test_ctypes.py
This PR uses
setuptools
,pip
andcythonize
to build and install the python wrapper. A newpyproject.toml
file is added insrc/Python
directory.Although it builds I still have troubles in testing after a local build as in #178
Notice that this PR simplifies the setup file and adds a second
Extension
in thesetup
command with the CMake variablesSETUP_GPU_WRAPPERS
andGPU_EXTRA_LIBRARIES
.This is built with the
cythonize
commandhttps://github.com/vais-ral/CCPi-Regularisation-Toolkit/blob/e229a7219797938e200174b8262a861ee766fb3f/src/Python/setup-regularisers.py.in#L57-L77