-
Notifications
You must be signed in to change notification settings - Fork 2
Working in Virtual Environments
Benjamin Spriggs edited this page Mar 27, 2018
·
2 revisions
SPECtate
uses pipenv
to manage python installs and dependencies.
There's a fairly straightforward wiki here, which is more or less the GitHub readme with some additional comments from the maintainers.
The whole idea boils down to:
- You want to know what to install
- You want to know what versions to require
- You want builds and installs to be deterministic (no chance for setup failure)
- You don't want to manage all the details that require the above to work
pipenv
more or less works as a yarn
or a dep
for python, providing lockfiles and install commands for easy setup.
- Clone the repo
-
pipenv shell
- drops you into a shell where you're usingSPECtate
's version of python and its dependencies -
pipenv check
- ensures you have everything you need (resolve conflicts, error on wrong versions of python, etc)
Installing additional packages is as easy as pipenv install <package>
.
pipenv --help
can give you more information and specifics, if you need to do something more involved.