Skip to content

Commit

Permalink
Fix missing include path in setup.py for building against `cpu_feat…
Browse files Browse the repository at this point in the history
…ures`
  • Loading branch information
althonos committed Aug 3, 2022
1 parent 0d06f6a commit f96e705
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 7 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,7 @@ def run(self):
include_dirs=[
"include",
"pyfastani",
os.path.join("vendor", "cpu_features", "include"),
os.path.join("vendor", "boost-math", "include"),
os.path.join("pyfastani", "_sequtils"),
],
Expand All @@ -539,7 +540,12 @@ def run(self):
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"],
)
Expand Down

0 comments on commit f96e705

Please sign in to comment.