From 261ccac1a07e82792f20832e204e7f123b2870ef Mon Sep 17 00:00:00 2001 From: Kumi Date: Thu, 8 Feb 2024 09:07:09 +0100 Subject: [PATCH] Extend .gitignore and update build setup for C++ integration The .gitignore file now ignores C++ build artifacts alongside existing ones. In setup.py, the build configuration for 'limedriver' was modified to include a new C++ source file, indicating a shift to or expansion of C++ code usage within the project. This change prepares the build process to handle and compile C++ code, potentially for performance improvements or new functionality that leverages C++ capabilities. --- .gitignore | 1 + setup.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index ca8bb68..e472d29 100644 --- a/.gitignore +++ b/.gitignore @@ -59,6 +59,7 @@ __pycache__/ # Cython / Python build files build/ *.c +*.cpp src/limedriver.egg-info # Data diff --git a/setup.py b/setup.py index 09cfe35..9236031 100644 --- a/setup.py +++ b/setup.py @@ -32,9 +32,10 @@ class BuildExtCommand(build_ext): ext_modules = [ Extension( 'limedriver', - sources=['src/limedriver/limedriver.pyx'], + sources=['src/limedriver/limedriver.pyx', 'extern/limedriver/src/limedriver.cpp'], include_dirs=["extern/limedriver/src/"], libraries=["LimeSuite"], + language="c++", ), ]