Skip to content

python_setup.cmake: add FIREBASE_PYTHON_PYVENV_DEST_DIR cmake cache var #9669

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

Closed

Conversation

dconeybe
Copy link
Contributor

Add the cmake cache variable FIREBASE_PYTHON_PYVENV_DEST_DIR. This variable will be used by the FirebaseSetupPythonInterpreter() function added in #9662 to allow a custom directory to be specified for the root directory of the python virtualenvs it creates.

This can be used as a workaround for virtualenv paths that exceed the Windows maximum path length of 260. For example, this happened in the build-desktop-windows-latest-openssl workflow in the firebase-cpp-sdk repository.

#no-changelog

@dconeybe dconeybe self-assigned this Apr 20, 2022
@dconeybe
Copy link
Contributor Author

Turns out this workaround isn't needed. The Windows problem was using a Python interpreter without a good venv.

@dconeybe dconeybe closed this Apr 26, 2022
@firebase firebase locked and limited conversation to collaborators May 27, 2022
@dconeybe dconeybe deleted the dconeybe/PythonSetup_FIREBASE_PYTHON_PYVENV_DEST_DIR branch August 15, 2023 15:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant