Skip to content

Commit 11061c1

Browse files
committed
Build fixes: query numpy path directly; setup pyproject.toml for pip
1 parent 64c6df3 commit 11061c1

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ endif()
3939
# base site dir, use python installation for location specific includes
4040
execute_process(
4141
COMMAND "${PYTHON_EXECUTABLE}" -c
42-
"from distutils.sysconfig import get_python_lib as pl; print(pl())"
42+
"import os,numpy; print(os.path.dirname(numpy.__path__[0]))"
4343
OUTPUT_VARIABLE PYTHON_SITE
4444
OUTPUT_STRIP_TRAILING_WHITESPACE)
4545
if(WIN32)

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ include README.rst
66
include MANIFEST.in
77
include setup.cfg.in
88
include CMakeLists.txt
9+
include pyproject.toml
910
include slycot/CMakeLists.txt
1011
include slycot/tests/CMakeLists.txt
1112
include slycot/*.py

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[build-system]
2+
requires = ["setuptools", "wheel", "scikit-build", "cmake", "numpy"]

0 commit comments

Comments
 (0)