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 79 80 81 82 83 84 85 86 87 88
|
From: William Grzybowski <william@grzy.org>
Date: Tue, 28 Oct 2025 12:16:57 -0700
Subject: Do not install unneeded files
Forwarded: not-needed
Last-Update: 2024-06-30
---
MANIFEST.in | 17 +++++++++--------
setup.py | 36 ------------------------------------
2 files changed, 9 insertions(+), 44 deletions(-)
diff --git a/MANIFEST.in b/MANIFEST.in
index a304e89..6350b0d 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -1,8 +1,9 @@
-include *.rst *.txt *.md LICENSE-EPL LICENSE-APACHE *.pyx *.cpp *.hpp
-recursive-include pydevd_attach_to_process *.py *.dll *.so *.dylib *.txt *.c *.h *.bat Makefile *.sh *.pyx *.cpp *.hpp
-recursive-include pydevd_attach_to_process/common *.py *.dll *.so *.dylib *.txt *.c *.h *.bat Makefile *.sh *.pyx *.cpp *.hpp
-recursive-include pydevd_attach_to_process/linux_and_mac *.py *.dll *.so *.dylib *.txt *.c *.h *.bat Makefile *.sh *.pyx *.cpp *.hpp
-recursive-include pydevd_attach_to_process/winappdbg *.py *.dll *.so *.dylib *.txt *.c *.h *.bat Makefile *.sh *.pyx *.cpp *.hpp
-recursive-include pydevd_attach_to_process/windows *.py *.dll *.so *.dylib *.txt *.c *.h *.bat Makefile *.sh *.pyx *.cpp *.hpp
-recursive-include _pydevd_bundle *.pyx *.cpp *.hpp
-recursive-include build_tools *.py
\ No newline at end of file
+recursive-include pydevd_attach_to_process *.py *.so *.h *.bat *.sh *.cpp *.hpp
+recursive-include pydevd_attach_to_process/common *.h *.hpp
+recursive-include pydevd_attach_to_process/linux_and_mac *.py *.sh *.cpp
+recursive-include pydevd_attach_to_process/winappdbg *.py
+recursive-include pydevd_attach_to_process/windows *.h *.bat *.cpp *.hpp
+recursive-include _pydevd_bundle *.pyx *.pxd
+recursive-include _pydevd_frame_eval *.py *.pyx *.pxd *.h
+recursive-include _pydevd_sys_monitoring *.pyx *.pxd
+recursive-include build_tools *.py
diff --git a/setup.py b/setup.py
index 72141fb..0434634 100644
--- a/setup.py
+++ b/setup.py
@@ -30,41 +30,6 @@ class BinaryDistribution(Distribution):
def is_pure(self):
return False
-
-data_files = []
-
-this_dir = os.path.dirname(os.path.abspath(__file__))
-attach_to_process_dir = os.path.join(this_dir, "pydevd_attach_to_process")
-
-
-def accept_file(f):
- f = f.lower()
- for ext in ".py .dll .so .dylib .txt .cpp .h .bat .c .sh .md .txt".split():
- if f.endswith(ext):
- return True
-
- return f in ["readme", "makefile"]
-
-
-def make_rel(p):
- return os.path.relpath(p, this_dir)
-
-
-data_files.append(
- (
- "pydevd_attach_to_process",
- [make_rel(os.path.join(attach_to_process_dir, f)) for f in os.listdir(attach_to_process_dir) if accept_file(f)],
- )
-)
-for root, dirs, files in os.walk(attach_to_process_dir):
- for d in dirs:
- data_files.append(
- (
- make_rel(os.path.join(root, d)),
- [make_rel(os.path.join(root, d, f)) for f in os.listdir(os.path.join(root, d)) if accept_file(f)],
- )
- )
-
import pydevd
version = pydevd.__version__
@@ -136,7 +101,6 @@ args = dict(
"pydevd = pydevd:main",
],
},
- data_files=data_files,
keywords=["pydev", "pydevd", "pydev.debugger"],
include_package_data=True,
zip_safe=False,
|