Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to disable using a python venv to run whisk #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

haadr
Copy link

@haadr haadr commented Feb 24, 2023

In some scenarios it's undesirable to have a requirement on python virtual environments and using pip to download dependencies at on-demand, for instance when building in a restricted CI environment.

This change let's users set the WHISK_NO_VENV shell variable to prevent the usage of python virtual environment and pip to install python dependencies required by whisk.py. The user must then make sure that these dependencies are available some other way, for instance by installing them via the system's native package manager.

In some scenarios it's undesirable to have a requirement on python
virtual environments and using pip to download dependencies at
on-demand, for instance when building in a restricted CI
environment.

This change let's users set the WHISK_NO_VENV shell variable to prevent
the usage of python virtual environment and pip to install python
dependencies required by whisk.py. The user must then make sure that
these dependencies are available some other way, for instance by
installing them via the system's native package manager.
@moto-timo
Copy link

I have a similar use case, because the host does not necessarily have the e.g python3.8-venv package installed (and the user is not necessarily able to install it). The workaround I did was to pip install --user virtualenv and then change python3 -m venv "venv" to python3 -m virtualenv "venv" in setup-venv.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants