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

Allow skipping load_site_packages #3693

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions libmamba/src/core/prefix_data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,12 @@ namespace mamba
// Load python packages installed with pip in the site-packages of the prefix.
void PrefixData::load_site_packages()
{
if (util::get_env("MAMBA_SKIP_LOAD_SITE_PACKAGES"))
{
LOG_INFO << "MAMBA_SKIP_LOAD_SITE_PACKAGES is set, skipping load_site_packages";
return;
}

LOG_INFO << "Loading site packages";

// Look for `pip` package and return if it doesn't exist
Expand Down
Loading