Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #65805

Re: Using virtualenv to bypass sudoer issues

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <prvs=1113b28d4=jeanmichel@sequans.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status UNSURE 0.209
X-Spam-Level **
X-Spam-Evidence '*H*': 0.60; '*S*': 0.02; 'scripts': 0.03; 'though:': 0.07; 'subject:virtualenv': 0.09; 'python': 0.11; '"python': 0.16; ':-/': 0.16; 'before.': 0.16; 'virtualenv.': 0.16; 'shell': 0.22; 'looks': 0.24; 'distribute': 0.26; 'header:In-Reply-To:1': 0.27; 'point': 0.28; "i'm": 0.30; 'getting': 0.31; 'team.': 0.31; 'remotely': 0.31; 'probably': 0.32; 'compatible': 0.32; 'stuff': 0.32; "we're": 0.32; 'doing': 0.36; "i'll": 0.36; 'url:org': 0.36; 'virtual': 0.37; 'remote': 0.38; 'thank': 0.38; 'handle': 0.38; 'to:addr:python-list': 0.38; 'sure': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'you.': 0.62; 'back': 0.62; 'information': 0.63; 'received:194': 0.64; 'afraid': 0.65; 'within': 0.65; 'notice:': 0.67; 'person,': 0.68; 'privileged.': 0.69; 'disclose': 0.74; 'activated': 0.84; 'env': 0.84; 'execution.': 0.84; 'level"': 0.84; 'subject:Using': 0.84; 'hate': 0.91; 'medium.': 0.91
X-IronPort-AV E=Sophos;i="4.95,816,1384297200"; d="scan'208";a="2431624"
X-Virus-Scanned amavisd-new at zimbra.sequans.com
Date Mon, 10 Feb 2014 11:06:31 +0100 (CET)
From Jean-Michel Pichavant <jeanmichel@sequans.com>
To python-list@python.org
In-Reply-To <qotsirtznhn.fsf@ruuvi.it.helsinki.fi>
Subject Re: Using virtualenv to bypass sudoer issues
MIME-Version 1.0
X-Mailer Zimbra 7.2.4_GA_2900 (ZimbraWebClient - GC32 (Win)/7.2.4_GA_2900)
Content-Type text/plain; charset="utf-8"
Content-Transfer-Encoding base64
X-Mailman-Approved-At Mon, 10 Feb 2014 11:25:00 +0100
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.6617.1392027901.18130.python-list@python.org> (permalink)
Lines 21
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1392027901 news.xs4all.nl 2879 [2001:888:2000:d::a6]:38384
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:65805

Show key headers only | View raw


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 :-/ ).

JM  


-- IMPORTANT NOTICE: 

The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


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