8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac96119 commit dd88e21Copy full SHA for dd88e21
Makefile
@@ -1,6 +1,7 @@
1
# simple makefile to simplify repetitive build env management tasks under posix
2
3
PYTHON ?= python
4
+DEFAULT_MESON_BUILD_DIR = build/cp$(shell python -c 'import sys; print(f"{sys.version_info.major}{sys.version_info.minor}")' )
5
6
all:
7
@echo "Please use 'make <target>' where <target> is one of"
@@ -21,6 +22,11 @@ clean: clean-meson
21
22
23
clean-meson:
24
pip uninstall -y scikit-learn
25
+ # It seems in some cases removing the folder avoids weird compilation
26
+ # errors (e.g. when switching from numpy>=2 to numpy<2). For some
27
+ # reason ninja clean -C $(DEFAULT_MESON_BUILD_DIR) is not
28
+ # enough
29
+ rm -rf $(DEFAULT_MESON_BUILD_DIR)
30
31
dev-setuptools:
32
$(PYTHON) setup.py build_ext -i
0 commit comments