From bf7e5d1b2ff9fff76f62c4460c375549a7cbf351 Mon Sep 17 00:00:00 2001 From: Lucas Hosseini Date: Mon, 31 Aug 2020 01:10:28 -0700 Subject: [PATCH] Bundle all files from contrib/ in python extension. (#1386) Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/1386 Reviewed By: mdouze Differential Revision: D23416997 Pulled By: beauby fbshipit-source-id: 9fc64d709046f65f49268cf2b9908dbd853d108d --- faiss/python/CMakeLists.txt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/faiss/python/CMakeLists.txt b/faiss/python/CMakeLists.txt index 7ce1533e2..0b4366d70 100644 --- a/faiss/python/CMakeLists.txt +++ b/faiss/python/CMakeLists.txt @@ -98,7 +98,5 @@ configure_file(setup.py setup.py COPYONLY) configure_file(__init__.py __init__.py COPYONLY) configure_file(loader.py loader.py COPYONLY) -configure_file(${PROJECT_SOURCE_DIR}/../../contrib/client_server.py contrib/client_server.py COPYONLY) -configure_file(${PROJECT_SOURCE_DIR}/../../contrib/exhaustive_search.py contrib/exhaustive_search.py COPYONLY) -configure_file(${PROJECT_SOURCE_DIR}/../../contrib/ondisk.py contrib/ondisk.py COPYONLY) -configure_file(${PROJECT_SOURCE_DIR}/../../contrib/rpc.py contrib/rpc.py COPYONLY) +file(GLOB files "${PROJECT_SOURCE_DIR}/../../contrib/*.py") +file(COPY ${files} DESTINATION contrib/)