Remote debugger: incorrect warning (PY-18780)

This commit is contained in:
Elizaveta Shashkova
2016-03-14 19:27:53 +03:00
parent 2d0d9408bb
commit 69c5314f8a
@@ -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,))