Browse Source

feat: Provide a way to opt out of venv management (#12143)

Armin Ronacher 6 years ago
parent
commit
92f3a2fba6
1 changed files with 5 additions and 0 deletions
  1. 5 0
      scripts/ensure-venv.sh

+ 5 - 0
scripts/ensure-venv.sh

@@ -1,6 +1,11 @@
 #!/bin/bash
 set -xe
 
+# optionally opt out of virtualenv creation
+if [ "x$SENTRY_NO_VIRTUALENV_CREATION" == "x1" ]; then
+  exit 0
+fi
+
 # if we already have a venv, we can leave
 if .venv/bin/python --version &> /dev/null; then
   exit 0