diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2020-12-21 23:50:04 -0500 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2020-12-21 23:50:04 -0500 |
| commit | 5959c623204b221cd4efe413db1d0ae2f42d9108 (patch) | |
| tree | 5c3872f12291f22b89767ec219773c661caff5b2 | |
| parent | 4fc6e6f5186163ecf03582d74c668d2329cf031a (diff) | |
Add direnv support to streamline virtualenv management.
| -rw-r--r-- | .envrc | 1 | ||||
| -rw-r--r-- | .gitignore | 4 | ||||
| -rw-r--r-- | README.md | 4 |
3 files changed, 9 insertions, 0 deletions
@@ -0,0 +1 @@ +layout python3 @@ -1,3 +1,7 @@ +# If you're using direnv, the .envrc file will generate .direnv automatically +# when loaded. +/.direnv/ + # Generated metadata created by `pip install`, `setup.py sdist`, and friends. # Will be reconstituted from setup.py as needed. *.egg-info @@ -36,3 +36,7 @@ Some familiarity with Python is assumed, here: * Make a virtual environment; * `$VIRTUALENV/bin/pip install git+https://github.com/ojacobson/envdir-helper/#egg=envdir-helper`; and * Add its `bin` directory to `PATH` by other means, or invoke it by full path. + +## Development + +I use [`direnv`] to manage development. The configuration in `.envrc` will automatically create a virtual Python environment using your current Python version, and load it, once the configuration is allowed. See the `direnv` documentation for details. |
