File: README.md

package info (click to toggle)
pyvenv-el 1.21%2Bgit20211014.31ea715-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 200 kB
  • sloc: lisp: 718; makefile: 30; sh: 12
file content (26 lines) | stat: -rw-r--r-- 1,127 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# pyvenv.el, Python virtual environment support for Emacs

This is a simple global minor mode which will replicate the changes
done by virtualenv activation inside Emacs.

The main entry points are `pyvenv-activate`, which queries the user
for a virtual environment directory to activate, and `pyvenv-workon`,
which queries for a virtual environment in `$WORKON_HOME` (from
virtualenvwrapper.sh).

## Similar Projects

[virtualenv.el](https://github.com/aculich/virtualenv.el) is the
original virtualenv implementation for Emacs. I used it for a long
time, but didn’t like some of the design decisions.

For example, it does not modify `process-environment` so does not set
a virtual environment for `M-x compile` and other external processes.
Also, `M-x virtualenv-workon` requires a prefix argument to actually
change the current virtual environment. And it does not support
virtualenvwrapper’s hooks, which I use to set up a working
environment.

All in all, too much magic for too little gain. So I figured I’d write
my own. Still, it’s an excellent package and I’m very grateful to have
used it for a long time.