python312Packages.macfsevents: do not include unnecessary files

`data_files` installs into Python's installation prefix (not into the directory of the python module), potentially causing collisions if other packages do the same (with such general files).
This commit is contained in:
Peter Kling
2025-03-05 09:52:05 +01:00
parent 06c74dc086
commit 8f2084a6d0
2 changed files with 18 additions and 0 deletions
@@ -16,6 +16,8 @@ buildPythonPackage rec {
hash = "sha256-v3KD8dUXdkzNyBlbIWMdu6wcUGuSC/mo6ilWsxJ2Ucs=";
};
patches = [ ./fix-packaging.patch ];
buildInputs = [
CoreFoundation
CoreServices
@@ -0,0 +1,16 @@
diff --git a/setup.py b/setup.py
index d7f9bb0..7707e38 100644
--- a/setup.py
+++ b/setup.py
@@ -21,11 +21,6 @@ def read(fname):
description = "Thread-based interface to file system observation primitives.",
long_description = "\n\n".join((read('README.rst'), read('CHANGES.rst'))),
license = "BSD",
- data_files = [("", [
- "compat.h",
- "LICENSE.txt",
- "CHANGES.rst"
- ])],
author = "Malthe Borch",
author_email = "mborch@gmail.com",
url = 'https://github.com/malthe/macfsevents',