mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Remote debugger: incorrect warning (PY-18780)
This commit is contained in:
@@ -27,10 +27,15 @@ elif use_cython is None:
|
||||
from _pydevd_bundle.pydevd_trace_dispatch_regular import trace_dispatch # @UnusedImport
|
||||
from _pydevd_bundle.pydevd_constants import CYTHON_SUPPORTED
|
||||
|
||||
dirname = os.path.dirname(os.path.dirname(__file__))
|
||||
if dirname.endswith('.egg'):
|
||||
# Do not show incorrect warning for .egg files for Remote debugger
|
||||
CYTHON_SUPPORTED = False
|
||||
|
||||
if CYTHON_SUPPORTED:
|
||||
from _pydev_bundle.pydev_monkey import log_error_once
|
||||
log_error_once("warning: Debugger speedups using cython not found. Run '\"%s\" \"%s\" build_ext --inplace' to build." % (
|
||||
sys.executable, os.path.join(os.path.dirname(os.path.dirname(__file__)), 'setup_cython.py')))
|
||||
sys.executable, os.path.join(dirname, 'setup_cython.py')))
|
||||
|
||||
else:
|
||||
raise RuntimeError('Unexpected value for PYDEVD_USE_CYTHON: %s (accepted: YES, NO)' % (use_cython,))
|
||||
|
||||
Reference in New Issue
Block a user