Got this error on a windows VS build. Moving this into the loop over cmake_extensions avoids the unbound local error and also handles the case where cmake_generator is None.
File "C:\Users\douglasc\AppData\Local\Temp\pip-build-env-sm21v1a3\overlay\Lib\site-packages\cmake_build_extension\build_extension.py", line 92, in run
if ext.cmake_generator.lower() == "ninja" and shutil.which("ninja") is None:
UnboundLocalError: local variable 'ext' referenced before assignment
[end of output]
Got this error on a windows VS build. Moving this into the loop over
cmake_extensions
avoids the unbound local error and also handles the case wherecmake_generator
isNone
.