Commit 4c25c7de authored by Jason Madden's avatar Jason Madden

Disable auto-pickling to work around...

Disable auto-pickling to work around https://github.com/cython/cython/issues/1786. We don't want to allow that in a point-release of gevent anyway.
parent 80269506
# cython: auto_pickle=False
cdef class Semaphore: cdef class Semaphore:
cdef public int counter cdef public int counter
cdef readonly object _links cdef readonly object _links
......
# cython: auto_pickle=False
import sys import sys
from gevent.hub import get_hub, getcurrent from gevent.hub import get_hub, getcurrent
from gevent.timeout import Timeout from gevent.timeout import Timeout
......
# Copyright (c) 2011-2012 Denis Bilenko. See LICENSE for details. # Copyright (c) 2011-2012 Denis Bilenko. See LICENSE for details.
# Automatic pickling of cdef classes was added in 0.26. Unfortunately it
# seems to be buggy (at least for the `result` class) and produces code that
# can't compile ("local variable 'result' referenced before assignment").
# See https://github.com/cython/cython/issues/1786
# cython: auto_pickle=False
cimport cares cimport cares
import sys import sys
from python cimport * from python cimport *
......
# Copyright (c) 2009-2012 Denis Bilenko. See LICENSE for details. # Copyright (c) 2009-2012 Denis Bilenko. See LICENSE for details.
# This directive, supported in Cython 0.24+, causes sources files to be # This directive, supported in Cython 0.24+, causes sources files to be
# much smaller and thus cythonpp.py to be slightly faster. But it does make # much smaller and thus cythonpp.py to be slightly faster. But it does make
# debugging more difficult. # debugging more difficult. Auto-pickling was added in 0.26, and that's a new feature
# cython: emit_code_comments=False # that we don't need or want to allow in a gevent point release.
# cython: emit_code_comments=False, auto_pickle=False
cimport cython cimport cython
cimport libev cimport libev
# Note this is not the standard cython 'cpython' (which has a backwards compat alias of 'python') # Note this is not the standard cython 'cpython' (which has a backwards compat alias of 'python')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment