@@ -24,24 +24,24 @@ installreqs: ## Install Python project requirements to root .venv
2424# ---------------------------------
2525.PHONY : build
2626build : installreqs # # Compile and install for development
27- cd python/pecos-rslib/ && uv run maturin develop --uv
28- cd python/quantum-pecos && uv pip install -e .[all]
27+ @unset CONDA_PREFIX && cd python/pecos-rslib/ && uv run maturin develop --uv
28+ @unset CONDA_PREFIX && cd python/quantum-pecos && uv pip install -e .[all]
2929
3030.PHONY : build-basic
3131build-basic : installreqs # # Compile and install for development but do not include install extras
32- cd python/pecos-rslib/ && uv run maturin develop --uv
33- cd python/quantum-pecos && uv pip install -e .
32+ @unset CONDA_PREFIX && cd python/pecos-rslib/ && uv run maturin develop --uv
33+ @unset CONDA_PREFIX && cd python/quantum-pecos && uv pip install -e .
3434
3535.PHONY : build-release
3636build-release : installreqs # # Build a faster version of binaries
37- cd python/pecos-rslib/ && uv run maturin develop --uv --release
38- cd python/quantum-pecos && uv pip install -e .[all]
37+ @unset CONDA_PREFIX && cd python/pecos-rslib/ && uv run maturin develop --uv --release
38+ @unset CONDA_PREFIX && cd python/quantum-pecos && uv pip install -e .[all]
3939
4040.PHONY : build-native
4141build-native : installreqs # # Build a faster version of binaries with native CPU optimization
42- cd python/pecos-rslib/ && RUSTFLAGS=' -C target-cpu=native' \
42+ @unset CONDA_PREFIX && cd python/pecos-rslib/ && RUSTFLAGS=' -C target-cpu=native' \
4343 && uv run maturin develop --uv --release
44- cd python/quantum-pecos && uv pip install -e .[all]
44+ @unset CONDA_PREFIX && cd python/quantum-pecos && uv pip install -e .[all]
4545
4646# Documentation
4747# -------------
@@ -79,14 +79,15 @@ rstest: ## Run Rust tests
7979.PHONY : pytest
8080pytest : # # Run tests on the Python package (not including optional dependencies). ASSUMES: previous build command
8181 uv run pytest ./python/tests/ -m " not optional_dependency"
82+ uv run pytest ./python/pecos-rslib/tests/
8283
8384.PHONY : pytest-dep
8485pytest-dep : # # Run tests on the Python package only for optional dependencies. ASSUMES: previous build command
8586 uv run pytest ./python/tests/ -m optional_dependency
8687
8788.PHONY : pytest-all
88- pytest-all : # # Run all tests on the Python package ASSUMES: previous build command
89- uv run pytest ./python/tests/
89+ pytest-all : pytest # # Run all tests on the Python package ASSUMES: previous build command
90+ uv run pytest ./python/tests/ -m " optional_dependency "
9091
9192# .PHONY: pytest-doc
9293# pydoctest: ## Run doctests with pytest. ASSUMES: A build command was ran previously. ASSUMES: previous build command
@@ -103,13 +104,13 @@ test: rstest pytest-all ## Run all tests. ASSUMES: previous build command
103104clean : # # Clean up caches and build artifacts
104105 @rm -rf * .egg-info
105106 @rm -rf dist
106- @rm -rf ** /build/
107+ @find . -type d -name " build " -exec rm -rf {} +
107108 @rm -rf python/docs/_build
108- @rm -rf ** / .pytest_cache/
109- @rm -rf ** / .ipynb_checkpoints
109+ @find . -type d -name " .pytest_cache" -exec rm -rf {} +
110+ @find . -type d -name " .ipynb_checkpoints" -exec rm -rf {} +
110111 @rm -rf .ruff_cache/
111- @rm -rf ** / .hypothesis/
112- @rm -rf ** /junit/
112+ @find . -type d -name " .hypothesis" -exec rm -rf {} +
113+ @find . -type d -name " junit " -exec rm -rf {} +
113114 @cargo clean
114115
115116.PHONY : pip-install-uv
0 commit comments