Skip to content

Commit d69ad1e

Browse files
committed
remove sanity check since SENTRY_PYTHON_VERSION is only set if direnv succeeds; chicken egg
1 parent 053db49 commit d69ad1e

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

scripts/lib.sh

-12
Original file line numberDiff line numberDiff line change
@@ -58,18 +58,6 @@ get-pyenv-version() {
5858

5959
query-valid-python-version() {
6060
if [[ -n "$SENTRY_PYTHON_VERSION" ]]; then
61-
python_version=$(python3 -V 2>&1 | awk '{print $2}')
62-
if [ "$python_version" != "$SENTRY_PYTHON_VERSION" ]; then
63-
cat <<EOF
64-
${red}${bold}
65-
You have explicitly set a non-recommended Python version (${SENTRY_PYTHON_VERSION}),
66-
but it doesn't match the value of python's version: ${python_version}
67-
You should create a new ${SENTRY_PYTHON_VERSION} virtualenv by running "rm -rf ${venv_name} && direnv allow".
68-
${reset}
69-
EOF
70-
return 1
71-
fi
72-
7361
cat <<EOF
7462
${yellow}${bold}
7563
You have explicitly set a non-recommended Python version (${SENTRY_PYTHON_VERSION}). You're on your own.

0 commit comments

Comments
 (0)