NeuralUDF
NeuralUDF copied to clipboard
Update setup.py
much reasonable (no CFLAGS
tricks)
I checked it under Windows and WSL, compile and import are both OK.
To build under Windows: python setup.py build_ext --inplace --compiler=msvc
(setuptools/distutils will call vcvarsall.bat
, should be no worry about environment variables)
To build under WSL: python3 setup.py build_ext --inplace
(just like before)
Previous setup.py
will fail under Windows due to a Cython's old issue [cython/cython#1480], success under Linux is due to that CFLAGS
trick which doesn't seem to work with MSVC.