From f96e70511d1e8fc9cdb6aa626524e11d1b9f6e9d Mon Sep 17 00:00:00 2001
From: Martin Larralde <martin.larralde@embl.de>
Date: Thu, 4 Aug 2022 00:42:27 +0200
Subject: [PATCH] Fix missing include path in `setup.py` for building against
 `cpu_features`

---
 setup.cfg | 2 +-
 setup.py  | 8 +++++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/setup.cfg b/setup.cfg
index b9c45fb..6a958b2 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -42,7 +42,7 @@ project_urls =
 
 [options]
 zip_safe = false
-packages = pyfastani, pyfastani.tests
+packages = pyfastani, pyfastani.tests, pyfastani.tests.data
 python_requires = >=3.6
 test_suite = pyfastani.tests
 include_package_data = true
diff --git a/setup.py b/setup.py
index 78aec70..10d7b9d 100644
--- a/setup.py
+++ b/setup.py
@@ -526,6 +526,7 @@ extensions = [
         include_dirs=[
             "include",
             "pyfastani",
+            os.path.join("vendor", "cpu_features", "include"),
             os.path.join("vendor", "boost-math", "include"),
             os.path.join("pyfastani", "_sequtils"),
         ],
@@ -539,7 +540,12 @@ extensions = [
     Extension(
         "pyfastani._fasta",
         [os.path.join("pyfastani", "_fasta.pyx")],
-        include_dirs=["include", "pyfastani", os.path.join("pyfastani", "simd")],
+        include_dirs=[
+            "include",
+            "pyfastani",
+            os.path.join("vendor", "cpu_features", "include"),
+            os.path.join("pyfastani", "simd")
+        ],
         language="c",
         libraries=["sequtils"],
     )
-- 
GitLab