Skip to content

Commit c17a0cb

Browse files
authored
Merge pull request #18 from openscm/fix-accidental-merge
Fix Makefile properly
2 parents ea7cd2b + acac875 commit c17a0cb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ TEMP_FILE := $(shell mktemp)
77
# Directory in which to build the Fortran when using a standalone build
88
BUILD_DIR := build
99

10-
JUNK := $(shell uv run --no-sync python -c 'from pathlib import Path; import example_fgen_basic; print(Path(example_fgen_basic.__file__).parent)'); \
1110
# A helper script to get short descriptions of each target in the Makefile
1211
define PRINT_HELP_PYSCRIPT
1312
import re, sys
@@ -52,6 +51,7 @@ test: ## run the tests (re-installs the package every time so you might want to
5251
# We don't have a solution to this yet.
5352
#
5453
# Coverage directory - needed to trick code cov to looking at the right place
54+
uv run --no-sync python -c 'from pathlib import Path; import example_fgen_basic' || ( echo "Run make virtual-environment first" && false )
5555
COV_DIR=$$(uv run --no-sync python -c 'from pathlib import Path; import example_fgen_basic; print(Path(example_fgen_basic.__file__).parent)'); \
5656
uv run --no-editable --reinstall-package example-fgen-basic pytest -r a -v tests src --doctest-modules --doctest-report ndiff --cov=$$COV_DIR
5757

changelog/18.trivial.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix up logic for failing `make test` if the environment isn't set up properly (merged #17 too quickly)

0 commit comments

Comments
 (0)