Comments (7)
UPD: It is not related to the Compiled code actually.
I'm seeing the same problem consistently across other packages where distutils
being used. I can only assume that the build is broken, possibly due to deprecation of distutils which comes from setuptools
. And since we're using significantly newer setuptools
in our environment than the recommended version (<60), this might be because of that.
Worth thinking upgrading to skbuild, for instance?
from ccpi-regularisation-toolkit.
I found the same error somewhere else SyneRBI/SIRF-SuperBuild#832
from ccpi-regularisation-toolkit.
Probably it's better to start by changing this line
into using pip install .
like here
from ccpi-regularisation-toolkit.
On CI the current build process has the warning:
********************************************************************************
Please avoid running ``setup.py`` directly.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
********************************************************************************
from ccpi-regularisation-toolkit.
Worth thinking upgrading to skbuild, for instance?
or the successor scikit-build-core now :) - would also fix #114 -> #115
from ccpi-regularisation-toolkit.
I'm currently refactoring TomoPhantom
into Ctypes only package. Cmake still triggers the build of the C code into shared library but it is a totally independent entity from the Python code of the package, which can be simply pip installed. This is how TomoPy group does the build as well. They've got libtomo
library for C/Cuda-C code and then just Python stuff. This is very convenient when you're working as a developer as you don't need to rebuild the package all the time when you're concerned only with the Python code. I guess the down side is that you need two conda recipes, but that can be done easily (Tomopy uses conda-forge feedstock for that).
For Regularisation Toolkit, as there is not much of Python, may be Cython build would work OK, but yes skbuild
could be also an option. I've done a mini version of the toolkit slightly differently with Cython bindings and it seems to avoid the errors here. I can share it bellow. This is a pure play so far, but I guess we can potentially re-factor it in a similar way?
sofia.zip
from ccpi-regularisation-toolkit.
https://docs.cython.org/en/latest/src/userguide/source_files_and_compilation.html#configuring-the-c-build looks like we need to replace Cython.Distutils.build_ext
with Cython.Build.cythonize
from ccpi-regularisation-toolkit.
Related Issues (20)
- I have some troubles installing the toolkit in Win 10 for Matlab 2022a using mex compile. HOT 6
- NameError raised in tests is not caught, hence test crash if no GPU code is compiled HOT 1
- migrate repo to TomographicImaging HOT 4
- PatchSelect works only for 2D data
- version tags are inconsistent
- TGV discrepancy with CPU and GPU regularisers
- Conda build error HOT 10
- CMake: FindCUDA is deprecated
- missing `PatchSelect_GPU` if CUDA extension is not built
- Python/NumPy support matrix
- CI: CUDA, conda, windows
- Discontinue MATLAB support HOT 1
- pip install HOT 1
- Issue with 3D GPU regularisers in v. 24.0.0 HOT 4
- Lena Image HOT 3
- unit tests for 3D and 2D tests update
- TGV 3D GPU is erroneous
- Adding basic documentation
- Cuda PTX Error with RTX3090 on windows. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ccpi-regularisation-toolkit.