From: William Grzybowski Date: Sun, 14 Aug 2022 07:56:26 +0000 (+0100) Subject: Do not install unneeded files X-Git-Tag: archive/raspbian/2.8.0+git20220826.8ee4065+ds-1+rpi1~9 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=7444e06b41c809bf440dcddefba24d12ce0f5601;p=pydevd.git Do not install unneeded files Forwarded: not-needed Last-Update: 2022-06-17 Gbp-Pq: Name do-not-install-data-files.patch --- diff --git a/MANIFEST.in b/MANIFEST.in index 61e38e3..d0660ac 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,8 +1,4 @@ -include *.rst *.txt *.md LICENSE *.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 +include LICENSE +recursive-include pydevd_attach_to_process *.py *.so +recursive-include _pydevd_bundle *.py *.c +recursive-include _pydevd_frame_eval *.py *.c diff --git a/setup.py b/setup.py index 1d4fc68..1dab024 100644 --- a/setup.py +++ b/setup.py @@ -32,24 +32,6 @@ class BinaryDistribution(Distribution): def is_pure(self): return False - -data_files = [] - - -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'] - - -data_files.append(('pydevd_attach_to_process', [os.path.join('pydevd_attach_to_process', f) for f in os.listdir('pydevd_attach_to_process') if accept_file(f)])) -for root, dirs, files in os.walk("pydevd_attach_to_process"): - for d in dirs: - data_files.append((os.path.join(root, d), [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__ @@ -121,7 +103,6 @@ args = dict( 'pydevd = pydevd:main', ], }, - data_files=data_files, keywords=['pydev', 'pydevd', 'pydev.debugger'], include_package_data=True, zip_safe=False,