Skip to content

Cython 0.28 #25

Description

@ingo-m

Cython 0.28 broke backwards compatibility.

When trying to compile with cython 0.28, the following problem occurs:

# *****************************************************************************
# *** Function for fast calculation of residuals

cdef (float[:], float[:]) funcCyRes(float[:] vecPrfTc_view,
    ^
------------------------------------------------------------

pyprf/analysis/cython_leastsquares.pyx:120:5: C struct/union member cannot be a memory view
Traceback (most recent call last):
  File "cython_leastsquares_setup.py", line 32, in <module>
    setup(ext_modules=cythonize('pyprf/analysis/cython_leastsquares.pyx'),
  File "/Users/john/miniconda2/envs/py_main/lib/python3.6/site-packages/Cython/Build/Dependencies.py", line 1026, in cythonize
    cythonize_one(*args)
  File "/Users/john/miniconda2/envs/py_main/lib/python3.6/site-packages/Cython/Build/Dependencies.py", line 1146, in cythonize_one
    raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: pyprf/analysis/cython_leastsquares.pyx

For now, the solution is to pin the cython dependency to cython==0.27.1.

See:

mcedit/mcedit2#399 (comment)

cython/cython@0961b9a

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions