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

Task: Create scripts to automate venv creation #12061

Closed
feerrenrut opened this issue Feb 10, 2021 · 0 comments · Fixed by #12075
Closed

Task: Create scripts to automate venv creation #12061

feerrenrut opened this issue Feb 10, 2021 · 0 comments · Fixed by #12075
Assignees
Milestone

Comments

@feerrenrut
Copy link
Contributor

Several python scripts will need to be made to automate the manual process of creating a virtual env with a known location, installing the dependencies, checking dependencies installed match the requirements file, and removing the virtual environment.

This allows us to have full programmatic control over the virtual environment.
Because pip is quite slow, we can detect that dependencies have change simply by caching / copying the requirements file during install. If the files don't match, the deps have changed since the last installation of dependencies. Developers will need to be able to downgrade dependences (Eg when checking out beta after having master), pip doesn't support this well. To support this in a simple and reliable way, we can just delete the virtual environment, and re-install the dependencies from the (updated) requirements file. Because the packages are cached, this should be a fairly quick operation.

For now these can be left for developers to run manually. Point to these from the docs.

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 a pull request may close this issue.

3 participants