File: 0010-do-not-install-useless-example.patch

package info (click to toggle)
faiss 1.11.0-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 8,360 kB
  • sloc: cpp: 83,959; python: 27,238; sh: 905; ansic: 418; makefile: 38
file content (19 lines) | stat: -rw-r--r-- 799 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: Do not install useless example files
 This example is only used in dh_auto_test. And lintian will complain a
 lot if the native plugin is installed.
Author: Shengqi Chen <harry@debian.org>
Forwarded: not-needed
Last-Update: 2025-02-13 
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/faiss/python/setup.py
+++ b/faiss/python/setup.py
@@ -85,7 +85,7 @@
     shutil.copyfile("swigfaiss_sve.py", "faiss/swigfaiss_sve.py")
     shutil.copyfile(swigfaiss_sve_lib, f"faiss/_swigfaiss_sve{ext}")
 
-if found_faiss_example_external_module_lib:
+if False and found_faiss_example_external_module_lib:
     print(f"Copying {faiss_example_external_module_lib}")
     shutil.copyfile(
         "faiss_example_external_module.py", "faiss/faiss_example_external_module.py"