Skip to content

Commit 7b1860f

Browse files
authored
fix: determine an activated venv correctly when running make (#346)
1 parent 01477d7 commit 7b1860f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ SHELL := bash
55

66
# Set the package's name and version for use throughout the Makefile.
77
PACKAGE_NAME := package
8-
ifeq ($(wildcard .venv/upgraded-on),)
8+
ifeq ($(origin VIRTUAL_ENV),undefined)
99
PACKAGE_VERSION := unknown
1010
else
1111
PACKAGE_VERSION := $(shell python -c 'import $(PACKAGE_NAME); print($(PACKAGE_NAME).__version__)')

0 commit comments

Comments
 (0)