-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bump version, merge pull request #37 from AMYPAD/pybind11
- Loading branch information
Showing
36 changed files
with
1,222 additions
and
743 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# NOTE: cannot `pip install -U -e .[dev]` (install in-place for pytest) | ||
# since `-e .` doesn't work yet (https://github.com/scikit-build/scikit-build-core/issues/114). | ||
# Instead, do `make deps-build build-editable deps-run` | ||
CUVEC_DEBUG=0 | ||
CXX_FLAGS=-Wall -Wextra -Wpedantic -Werror -Wno-missing-field-initializers -Wno-unused-parameter -Wno-cast-function-type | ||
CUDA_ARCHITECTURES=native | ||
BUILD_CMAKE_FLAGS=-Ccmake.define.CUVEC_DEBUG=$(CUVEC_DEBUG) -Ccmake.define.CMAKE_CXX_FLAGS="$(CXX_FLAGS)" -Ccmake.define.CMAKE_CUDA_ARCHITECTURES=$(CUDA_ARCHITECTURES) | ||
CCACHE= | ||
ifneq ($(CCACHE),) | ||
BUILD_CMAKE_FLAGS+= -Ccmake.define.CMAKE_CXX_COMPILER_LAUNCHER=ccache | ||
endif | ||
.PHONY: build-editable clean deps-build deps-run build-wheel deps-docs docs docs-serve | ||
build-editable: | ||
git diff --exit-code --quiet '*/src/**' || (echo "Uncommitted changes in */src"; exit 1) | ||
pip install --no-build-isolation --check-build-dependencies -Cbuild-dir=build --no-deps -t . -U -v . $(BUILD_CMAKE_FLAGS) | ||
git restore '*/src/**' | ||
test: | ||
pytest -k "not perf" -n=3 | ||
pytest -k "perf" -n=0 --cov-append | ||
clean: | ||
git clean -Xdf | ||
deps-build: | ||
pip install toml | ||
python -c 'import toml; c=toml.load("pyproject.toml"); print("\0".join(c["build-system"]["requires"] + ["cmake>=" + c["tool"]["scikit-build"]["cmake"]["minimum-version"]]), end="")' | xargs -0 pip install ninja | ||
deps-run: | ||
pip install toml | ||
python -c 'import toml; c=toml.load("pyproject.toml"); print("\0".join(c["project"]["dependencies"] + c["project"]["optional-dependencies"]["dev"]), end="")' | xargs -0 pip install | ||
build-wheel: | ||
pip install build | ||
python -m build -n -w $(BUILD_CMAKE_FLAGS) | ||
deps-docs: | ||
cd docs && pip install -r requirements.txt | ||
docs: | ||
cd docs && PYTHONPATH=. pydoc-markdown --build --site-dir=../../../dist/site | ||
docs-serve: docs | ||
python -m http.server -d dist/site |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.