-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
MAINT Clean-up more unused Makefile targets #29296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
86e56eb
5631512
b00e0cd
4b246f8
a2c3e40
2b8c59b
988f0eb
24e4c8b
ecadb07
6e48562
c51fb25
f082a64
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,30 @@ | ||
# simple makefile to simplify repetitive build env management tasks under posix | ||
|
||
# caution: testing won't work on windows, see README | ||
|
||
PYTHON ?= python | ||
CYTHON ?= cython | ||
PYTEST ?= pytest | ||
|
||
# skip doctests on 32bit python | ||
BITS := $(shell python -c 'import struct; print(8 * struct.calcsize("P"))') | ||
all: | ||
@echo "Please use 'make <target>' where <target> is one of" | ||
@echo " dev build scikit-learn with Meson" | ||
@echo " clean clean scikit-learn Meson build. Very rarely needed," | ||
@echo " one use case is when switching back to setuptools" | ||
@echo " dev-setuptools build scikit-learn with setuptools (deprecated)" | ||
@echo " clean-setuptools clean scikit-learn setuptools build (deprecated)" | ||
|
||
all: clean inplace test | ||
.PHONY: all | ||
|
||
clean: | ||
$(PYTHON) setup.py clean | ||
rm -rf dist | ||
|
||
in: inplace # just a shortcut | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. would be nice to replace this There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it would be a bit weird that There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would rather rename this to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah we could do this, although Keeping I am hoping to look at #29012 again so in the medium term it does not matter that much, so I am fine either way ... There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm also fine either way, we should not bother too much since we expect to have less and less people installing using setuptools. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. +1 for There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. dev-setuptools it is, I also reordered the targets in rough order of importance |
||
inplace: | ||
$(PYTHON) setup.py build_ext -i | ||
dev: dev-meson | ||
|
||
dev-meson: | ||
pip install --verbose --no-build-isolation --editable . --check-build-dependencies --config-settings editable-verbose=true | ||
|
||
clean: clean-meson | ||
|
||
clean-meson: | ||
pip uninstall -y scikit-learn | ||
|
||
test-code: in | ||
$(PYTEST) --showlocals -v sklearn --durations=20 | ||
test-sphinxext: | ||
$(PYTEST) --showlocals -v doc/sphinxext/ | ||
test-doc: | ||
ifeq ($(BITS),64) | ||
$(PYTEST) $(shell find doc -name '*.rst' | sort) | ||
endif | ||
test-code-parallel: in | ||
$(PYTEST) -n auto --showlocals -v sklearn --durations=20 | ||
|
||
test-coverage: | ||
rm -rf coverage .coverage | ||
$(PYTEST) sklearn --showlocals -v --cov=sklearn --cov-report=html:coverage | ||
test-coverage-parallel: | ||
rm -rf coverage .coverage .coverage.* | ||
$(PYTEST) sklearn -n auto --showlocals -v --cov=sklearn --cov-report=html:coverage | ||
|
||
test: test-code test-sphinxext test-doc | ||
|
||
cython: | ||
python setup.py build_src | ||
|
||
doc: inplace | ||
$(MAKE) -C doc html | ||
|
||
doc-noplot: inplace | ||
$(MAKE) -C doc html-noplot | ||
dev-setuptools: | ||
$(PYTHON) setup.py build_ext -i | ||
|
||
clean-setuptools: | ||
$(PYTHON) setup.py clean | ||
rm -rf dist |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
set -ex | ||
|
||
if [[ "$DISTRIB" =~ ^conda.* ]]; then | ||
source activate $VIRTUALENV | ||
elif [[ "$DISTRIB" == "ubuntu" || "$DISTRIB" == "pip-free-threaded" ]]; then | ||
source $VIRTUALENV/bin/activate | ||
fi | ||
source build_tools/shared.sh | ||
activate_environment | ||
|
||
make test-doc | ||
# XXX: for some unknown reason python -m pytest fails here in the CI, can't | ||
# reproduce locally and not worth spending time on this | ||
pytest $(find doc -name '*.rst' | sort) |
Uh oh!
There was an error while loading. Please reload this page.