Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #65816
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Pete Forman <petef4+usenet@gmail.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: Using virtualenv to bypass sudoer issues |
| Date | Mon, 10 Feb 2014 14:23:40 +0000 |
| Organization | A noiseless patient Spider |
| Lines | 29 |
| Message-ID | <86iosnujv7.fsf@gmail.com> (permalink) |
| References | <mailman.6617.1392027901.18130.python-list@python.org> |
| Mime-Version | 1.0 |
| Content-Type | text/plain |
| Injection-Info | mx05.eternal-september.org; posting-host="cdf6132ee4c43c2d1457a368e89c85c9"; logging-data="13411"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX198kDc96YKc1C2y0L9MTGLi" |
| User-Agent | Gnus/5.13 (Gnus v5.13) Emacs/24.3 (windows-nt) |
| Cancel-Lock | sha1:3H/ljIPQJbDjPRjCl1YITTmqvLM= sha1:uYEDWQRVzUwz36YWAXyIy/Z3mQQ= |
| Xref | csiph.com comp.lang.python:65816 |
Show key headers only | View raw
Jean-Michel Pichavant <jeanmichel@sequans.com> writes:
> Thank you all for you insights.
>
> I'll probably go with virtualenv, I'll be able to distribute it among
> the team.
> There's still one point worrying me though:
> We're doing a lot a remote execution. We're using "execnet"
> http://codespeak.net/execnet/, and I'm not sure it can be compatible
> with virtualenv. execnet working at the "python level" I don't see how
> I can execute shell stuff before.
>
> I had a look at fabric http://docs.fabfile.org/en/1.8/, and it looks
> like it can handle virtual env (anyone confirm?).
>
> Has someone already successfully remotely activated a venv then
> execute a python scripts within that env, getting back the
> stdout/stderr ?
>
> I'm afraid right now that switching to venv would mean switching from
> execnet to fabric as well (I hate redoing stuff that works :-/ ).
Call the venv version of python and activation is handled.
E.g. in a fabfile
myenv/bin/python myscript.py
--
Pete Forman
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: Using virtualenv to bypass sudoer issues Jean-Michel Pichavant <jeanmichel@sequans.com> - 2014-02-10 11:06 +0100 Re: Using virtualenv to bypass sudoer issues Pete Forman <petef4+usenet@gmail.com> - 2014-02-10 14:23 +0000
csiph-web