Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cython 3.0.0a8 dropped support in cpdef #1801

Closed
matan-cohen opened this issue Jul 6, 2021 · 0 comments · Fixed by #1803
Closed

Cython 3.0.0a8 dropped support in cpdef #1801

matan-cohen opened this issue Jul 6, 2021 · 0 comments · Fixed by #1803

Comments

@matan-cohen
Copy link

  • gevent version: latest From source
  • Python version: python3.8
  • Operating System: alpine

Description:

trying to Install gevent from source . Cython 3.0.0a8 dropped support in cpdef -
Need to change references of cpdef to cdef .
Currently fixed in my fork branch with just specifying Cython 3.0

#8 11.21   Installing build dependencies: started                                                                                                                                     
#8 26.03   Installing build dependencies: finished with status 'done'
#8 26.04   Getting requirements to build wheel: started
#8 32.14   Getting requirements to build wheel: finished with status 'error'
#8 32.14   ERROR: Command errored out with exit status 1:
#8 32.14    command: /usr/bin/python3 /usr/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmpgcqmbgst
#8 32.14        cwd: /tmp/pip-install-hlv7tbei/gevent_b3d9dac86db94fddb3d005ad2a4d967a
#8 32.14   Complete output (53 lines):
#8 32.14   Compiling src/gevent/resolver/cares.pyx because it changed.
#8 32.14   [1/1] Cythonizing src/gevent/resolver/cares.pyx
#8 32.14   Compiling src/gevent/libev/corecext.pyx because it changed.
#8 32.14   [1/1] Cythonizing src/gevent/libev/corecext.pyx
#8 32.14   Compiling src/gevent/_greenlet_primitives.py because it changed.
#8 32.14   [1/1] Cythonizing src/gevent/_greenlet_primitives.py
#8 32.14   Compiling src/gevent/_hub_primitives.py because it changed.
#8 32.14   [1/1] Cythonizing src/gevent/_hub_primitives.py
#8 32.14   Compiling src/gevent/_hub_local.py because it changed.
#8 32.14   [1/1] Cythonizing src/gevent/_hub_local.py
#8 32.14   Compiling src/gevent/_waiter.py because it changed.
#8 32.14   [1/1] Cythonizing src/gevent/_waiter.py
#8 32.14   warning: src/gevent/_gevent_cgreenlet.pxd:112:33: Declarations should not be declared inline.
#8 32.14   
#8 32.14   Error compiling Cython file:
#8 32.14   ------------------------------------------------------------
#8 32.14   ...
#8 32.14   cdef load_traceback
#8 32.14   cdef Waiter
#8 32.14   cdef wait
#8 32.14   cdef iwait
#8 32.14   cdef reraise
#8 32.14   cpdef GEVENT_CONFIG
#8 32.14        ^
#8 32.14   ------------------------------------------------------------
#8 32.14   
#8 32.14   src/gevent/_gevent_cgreenlet.pxd:182:6: Variables cannot be declared with 'cpdef'. Use 'cdef' instead.
#8 32.14   Compiling src/gevent/greenlet.py because it changed.
#8 32.14   [1/1] Cythonizing src/gevent/greenlet.py
#8 32.14   Traceback (most recent call last):
#8 32.14     File "/usr/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py", line 280, in <module>
#8 32.14       main()
#8 32.14     File "/usr/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py", line 263, in main
#8 32.14       json_out['return_val'] = hook(**hook_input['kwargs'])
#8 32.14     File "/usr/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py", line 114, in get_requires_for_build_wheel
#8 32.14       return hook(config_settings)
#8 32.14     File "/tmp/pip-build-env-ty6hvg5r/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 154, in get_requires_for_build_wheel
#8 32.14       return self._get_build_requires(
#8 32.14     File "/tmp/pip-build-env-ty6hvg5r/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 135, in _get_build_requires
#8 32.14       self.run_setup()
#8 32.14     File "/tmp/pip-build-env-ty6hvg5r/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 258, in run_setup
#8 32.14       super(_BuildMetaLegacyBackend,
#8 32.14     File "/tmp/pip-build-env-ty6hvg5r/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 150, in run_setup
#8 32.14       exec(compile(code, __file__, 'exec'), locals())
#8 32.14     File "setup.py", line 294, in <module>
#8 32.14       EXT_MODULES.append(cythonize1(mod))
#8 32.14     File "/tmp/pip-install-hlv7tbei/gevent_b3d9dac86db94fddb3d005ad2a4d967a/_setuputils.py", line 237, in cythonize1
#8 32.14       new_ext = cythonize(
#8 32.14     File "/tmp/pip-build-env-ty6hvg5r/overlay/lib/python3.8/site-packages/Cython/Build/Dependencies.py", line 1116, in cythonize
#8 32.14       cythonize_one(*args)
#8 32.14     File "/tmp/pip-build-env-ty6hvg5r/overlay/lib/python3.8/site-packages/Cython/Build/Dependencies.py", line 1283, in cythonize_one
#8 32.14       raise CompileError(None, pyx_file)
#8 32.14   Cython.Compiler.Errors.CompileError: src/gevent/greenlet.py
#8 32.14   ----------------------------------------
#8 32.14 WARNING: Discarding git+git://github.com/gevent/gevent.git#egg=gevent. Command errored out with exit status 1: /usr/bin/python3 /usr/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmpgcqmbgst Check the logs for full command output.
#8 32.14 ERROR: Could not find a version that satisfies the requirement gevent (unavailable)
#8 32.14 ERROR: No matching distribution found for gevent (unavailable)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant