Setuptools build_wheel

I want to build a wheel file for a package, but get this problem below:

ERROR Backend subprocess exited when trying to invoke build_wheel

  • Building wheel from sdist
  • Creating venv isolated environment…
  • Installing packages in isolated environment… (–extra-index-url https://download.pytorch.org/whl/cu118, ninja, setuptools, torch==2.0.0+cu118)
  • Getting build dependencies for wheel…

when it comes to these
copying pyronn\ct_reconstruction\cores\kernels\fan_backprojector_2D_CudaKernel.cu → build\lib.win-amd64-cpython-311\pyronn\ct_reconstruction\cores\kernels
copying pyronn\ct_reconstruction\cores\kernels\fan_projector_2D_CudaKernel.cu → build\lib.win-amd64-cpython-311\pyronn\ct_reconstruction\cores\kernels
copying pyronn\ct_reconstruction\cores\kernels\par_backprojector_2D_CudaKernel.cu → build\lib.win-amd64-cpython-311\pyronn\ct_reconstruction\cores\kernels
copying pyronn\ct_reconstruction\cores\kernels\par_projector_2D_CudaKernel.cu → build\lib.win-amd64-cpython-311\pyronn\ct_reconstruction\cores\kernels
running build_ext
building ‘pyronn_layers’ extension
error: unknown file type ‘’ (from ‘ct_reconstruction’)

ERROR Backend subprocess exited when trying to invoke build_wheel

setup.py showed in image below

You would need to check which file type in pyronn is unknown as the error seems to come from this 3rd party library, not PyTorch itself.