summaryrefslogtreecommitdiff
blob: 7047877ef279a59065c67099605bbb0d9055a4db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
diff --git a/setup.py b/setup.py
index ee5bbba..f69dc95 100644
--- a/setup.py
+++ b/setup.py
@@ -21,12 +21,10 @@ del sys.path[0]
 
 sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), "src"))
 import debugpy
-import debugpy._vendored
 
 del sys.path[0]
 
 
-PYDEVD_ROOT = debugpy._vendored.project_root("pydevd")
 DEBUGBY_ROOT = os.path.dirname(os.path.abspath(debugpy.__file__))
 
 
@@ -36,27 +34,6 @@ def get_buildplatform():
     return None
 
 
-def cython_build():
-    print("Compiling extension modules (set SKIP_CYTHON_BUILD=1 to omit)")
-    subprocess.call(
-        [
-            sys.executable,
-            os.path.join(PYDEVD_ROOT, "setup_cython.py"),
-            "build_ext",
-            "-i",
-        ]
-    )
-
-
-def iter_vendored_files():
-    # Add pydevd files as data files for this package. They are not
-    # treated as a package of their own, because we don't actually
-    # want to provide pydevd - just use our own copy internally.
-    for project in debugpy._vendored.list_all():
-        for filename in debugpy._vendored.iter_packaging_files(project):
-            yield filename
-
-
 # bdist_wheel determines whether the package is pure or not based on ext_modules.
 # However, all pydevd native modules are prebuilt and packaged as data, so they
 # should not be in the list.
@@ -121,8 +98,6 @@ with open("DESCRIPTION.md", "r") as fh:
 
 
 if __name__ == "__main__":
-    if not os.getenv("SKIP_CYTHON_BUILD"):
-        cython_build()
 
     extras = {}
     platforms = get_buildplatform()
@@ -165,11 +140,9 @@ if __name__ == "__main__":
             "debugpy.common",
             "debugpy.launcher",
             "debugpy.server",
-            "debugpy._vendored",
         ],
         package_data={
             "debugpy": ["ThirdPartyNotices.txt"],
-            "debugpy._vendored": list(iter_vendored_files()),
         },
         ext_modules=ExtModules(),
         has_ext_modules=lambda: True,
diff --git a/src/debugpy/server/__init__.py b/src/debugpy/server/__init__.py
index e6a1ad6..a79a86b 100644
--- a/src/debugpy/server/__init__.py
+++ b/src/debugpy/server/__init__.py
@@ -3,7 +3,3 @@
 # for license information.
 
 from __future__ import absolute_import, division, print_function, unicode_literals
-
-# "force_pydevd" must be imported first to ensure (via side effects)
-# that the debugpy-vendored copy of pydevd gets used.
-import debugpy._vendored.force_pydevd  # noqa