Skip to content

Bug: make create_environment fails on macOS and Linux when using virtualenv #51

@josephwilson8-nhs

Description

@josephwilson8-nhs

Problem

When virtualenv is selected as the environment manager, running make create_environment on macOS or Linux fails if virtualenvwrapper is not installed.

Current Behavior

The generated Makefile create_environment target for virtualenv runs a bash -c conditional that checks for virtualenvwrapper.sh. If it is not found, the fallback is:

mkvirtualenv.bat $(PROJECT_NAME) --python=$(PYTHON_INTERPRETER)

mkvirtualenv.bat is a Windows batch script. On macOS and Linux it does not exist, so the command fails with a "command not found" error. virtualenvwrapper itself is a largely legacy tool that users would not typically have installed.

Expected Behavior

make create_environment should create a local .venv virtual environment without requiring virtualenvwrapper to be present, and should work consistently across macOS, Linux, and Windows.

Metadata

Metadata

Labels

bugSomething isn't workingtemplateChanges to the generated template/project

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions