Skip to content

Commit

Permalink
Add more numpy search paths
Browse files Browse the repository at this point in the history
  • Loading branch information
xhochy committed Aug 19, 2024
1 parent 15240d3 commit 5327d6e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ pybind11

PyTest/PyTest
contrib/sdist
# pixi environments
.pixi
*.egg-info
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 2.8.12)
cmake_minimum_required(VERSION 3.10)
project(turbodbc_intern CXX)

# Take precedence over system modules
Expand Down
4 changes: 4 additions & 0 deletions cmake_scripts/Findnumpy.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,16 @@ find_path(
numpy/npy_common.h
HINTS
$ENV{VIRTUAL_ENV}/lib/*/site-packages/numpy/core/include
$ENV{VIRTUAL_ENV}/lib/*/site-packages/numpy/_core/include
$ENV{CONDA_PREFIX}/lib/*/site-packages/numpy/core/include
$ENV{CONDA_PREFIX}/lib/*/site-packages/numpy/_core/include
$ENV{CONDA_PREFIX}/Library/lib/*/site-packages/numpy/core/include
$ENV{CONDA_PREFIX}/Library/lib/*/site-packages/numpy/_core/include
ENV PYTHON_INCLUDE_DIR
/usr/local/lib/python2.7/dist-packages/numpy/core/include
$ENV{PYTHON}/lib/site-packages/numpy/core/include
$ENV{CONDA_PREFIX}/lib/site-packages/numpy/core/include
$ENV{CONDA_PREFIX}/lib/site-packages/numpy/_core/include
DOC "Path to the numpy headers"
)

0 comments on commit 5327d6e

Please sign in to comment.