Do not install unneeded files
authorWilliam Grzybowski <william@grzy.org>
Mon, 8 Aug 2022 19:07:18 +0000 (20:07 +0100)
committerJulian Gilbey <jdg@debian.org>
Mon, 8 Aug 2022 19:07:18 +0000 (20:07 +0100)
Forwarded: not-needed
Last-Update: 2022-06-17

Gbp-Pq: Name do-not-install-data-files.patch

MANIFEST.in
setup.py

index 61e38e324ed5f1c2ddbb547999d426e5e72911e6..d0660ace4cb202a0bc2845b78c2d76eef394f9fa 100644 (file)
@@ -1,8 +1,4 @@
-include *.rst *.txt *.md LICENSE *.pyx *.cpp *.hpp\r
-recursive-include pydevd_attach_to_process *.py *.dll *.so *.dylib *.txt *.c *.h *.bat Makefile *.sh *.pyx *.cpp *.hpp\r
-recursive-include pydevd_attach_to_process/common *.py *.dll *.so *.dylib *.txt *.c *.h *.bat Makefile *.sh *.pyx *.cpp *.hpp\r
-recursive-include pydevd_attach_to_process/linux_and_mac *.py *.dll *.so *.dylib *.txt *.c *.h *.bat Makefile *.sh *.pyx *.cpp *.hpp\r
-recursive-include pydevd_attach_to_process/winappdbg *.py *.dll *.so *.dylib *.txt *.c *.h *.bat Makefile *.sh *.pyx *.cpp *.hpp\r
-recursive-include pydevd_attach_to_process/windows *.py *.dll *.so *.dylib *.txt *.c *.h *.bat Makefile *.sh *.pyx *.cpp *.hpp\r
-recursive-include _pydevd_bundle *.pyx *.cpp *.hpp\r
-recursive-include build_tools *.py
\ No newline at end of file
+include LICENSE\r
+recursive-include pydevd_attach_to_process *.py *.so\r
+recursive-include _pydevd_bundle *.py *.c\r
+recursive-include _pydevd_frame_eval *.py *.c\r
index 1d4fc68bbffd21f7ae7b41832e49fde8b0df059a..1dab024918d4c50d919d017e6bb102584344ccf4 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -32,24 +32,6 @@ class BinaryDistribution(Distribution):
     def is_pure(self):\r
         return False\r
 \r
-\r
-data_files = []\r
-\r
-\r
-def accept_file(f):\r
-    f = f.lower()\r
-    for ext in '.py .dll .so .dylib .txt .cpp .h .bat .c .sh .md .txt'.split():\r
-        if f.endswith(ext):\r
-            return True\r
-\r
-    return f in ['readme', 'makefile']\r
-\r
-\r
-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)]))\r
-for root, dirs, files in os.walk("pydevd_attach_to_process"):\r
-    for d in dirs:\r
-        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)]))\r
-\r
 import pydevd\r
 version = pydevd.__version__\r
 \r
@@ -121,7 +103,6 @@ args = dict(
             'pydevd = pydevd:main',\r
         ],\r
     },\r
-    data_files=data_files,\r
     keywords=['pydev', 'pydevd', 'pydev.debugger'],\r
     include_package_data=True,\r
     zip_safe=False,\r