I use the Windows 11 system, and there is something wrong with the last step. Could you please help with this error?
Warning: passing language='c++' to cythonize() is deprecated. Instead, put "# distutils: language=c++" in your .pyx or .pxd file(s)
Compiling pysph/base/particle_array.pyx because it changed.
Compiling pysph/base/point.pyx because it changed.
Compiling pysph/base/nnps_base.pyx because it changed.
Compiling pysph/base/spatial_hash_nnps.pyx because it changed.
Compiling pysph/base/z_order_nnps.pyx because it changed.
Compiling pysph/base/stratified_hash_nnps.pyx because it changed.
Compiling pysph/base/stratified_sfc_nnps.pyx because it changed.
Compiling pysph/base/octree.pyx because it changed.
Compiling pysph/base/octree_nnps.pyx because it changed.
Compiling pysph/tools/mesh_tools.pyx because it changed.
Compiling pysph/base/z_order_gpu_nnps.pyx because it changed.
Compiling pysph/base/stratified_sfc_gpu_nnps.pyx because it changed.
Compiling pysph/base/octree_gpu_nnps.pyx because it changed.
[ 1/13] Cythonizing pysph/base/nnps_base.pyx
warning: pysph\base\nnps_base.pxd:27:13: 'INT_MAX' redeclared
warning: pysph\base\nnps_base.pyx:34:0: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See
https://github.com/cython/cython/issues/4310warning: pysph\base\nnps_base.pyx:51:0: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See
https://github.com/cython/cython/issues/4310Error compiling Cython file:
------------------------------------------------------------
...
cpdef set_number_of_threads(int n):
print("OpenMP not available, cannot set number of threads.")
IF UNAME_SYSNAME == "Windows":
cdef inline double fmin(double x, double y) nogil:
^
------------------------------------------------------------
pysph\base\nnps_base.pyx:52:9: Function signature does not match previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
IF UNAME_SYSNAME == "Windows":
cdef inline double fmin(double x, double y) nogil:
return x if x < y else y
cdef inline double fmax(double x, double y) nogil:
^
------------------------------------------------------------
pysph\base\nnps_base.pyx:54:9: Function signature does not match previous declaration
Traceback (most recent call last):
File "E:\myenv\Scripts\pysph\setup.py", line 782, in <module>
setup_package()
File "E:\myenv\Scripts\pysph\setup.py", line 723, in setup_package
ext_modules = cythonize(
File "E:\myenv\lib\site-packages\Cython\Build\Dependencies.py", line 1154, in cythonize
cythonize_one(*args)
File "E:\myenv\lib\site-packages\Cython\Build\Dependencies.py", line 1321, in cythonize_one
raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: pysph/base/nnps_base.pyx
Regards,
Wenwang