diff --git a/python/helpers/pydev/_pydevd_bundle/pydevd_trace_dispatch.py b/python/helpers/pydev/_pydevd_bundle/pydevd_trace_dispatch.py index 57b70d1b137d..a9c953fea692 100644 --- a/python/helpers/pydev/_pydevd_bundle/pydevd_trace_dispatch.py +++ b/python/helpers/pydev/_pydevd_bundle/pydevd_trace_dispatch.py @@ -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,))