Message from discussion
site-wide distutils.cfg
Received: by 10.236.161.42 with SMTP id v30mr33981yhk.30.1308161502251;
Wed, 15 Jun 2011 11:11:42 -0700 (PDT)
X-BeenThere: python-virtualenv@googlegroups.com
Received: by 10.151.33.30 with SMTP id l30ls922876ybj.0.gmail; Wed, 15 Jun
2011 11:11:41 -0700 (PDT)
Received: by 10.236.180.8 with SMTP id i8mr21638yhm.55.1308161501313;
Wed, 15 Jun 2011 11:11:41 -0700 (PDT)
Received: by 10.236.180.8 with SMTP id i8mr21637yhm.55.1308161501275;
Wed, 15 Jun 2011 11:11:41 -0700 (PDT)
Return-Path: <rsyr...@gmail.com>
Received: from mail-iy0-f175.google.com (mail-iy0-f175.google.com [209.85.210.175])
by gmr-mx.google.com with ESMTPS id g20si245341icm.5.2011.06.15.11.11.41
(version=TLSv1/SSLv3 cipher=OTHER);
Wed, 15 Jun 2011 11:11:41 -0700 (PDT)
Received-SPF: pass (google.com: domain of rsyr...@gmail.com designates 209.85.210.175 as permitted sender) client-ip=209.85.210.175;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of rsyr...@gmail.com designates 209.85.210.175 as permitted sender) smtp.mail=rsyr...@gmail.com; dkim=pass (test mode) header...@gmail.com
Received: by iye7 with SMTP id 7so528798iye.6
for <python-virtualenv@googlegroups.com>; Wed, 15 Jun 2011 11:11:41 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=gamma;
h=domainkey-signature:message-id:date:from:user-agent:mime-version:to
:subject:references:in-reply-to:content-type
:content-transfer-encoding;
bh=uy9g/JOoeJ7VuoLg93aOFVZE2sU3+TH6df6NUO8s1LE=;
b=BPsvnh+2d8Pq9fEY5kHToMhD5JBOgiQtkWbjV3RQfCvtNZ6xvRH3xVodaAIoiSUgsn
Si5+YQO1h7b6TPVaoVM9Ar2ybTQDFQBf53RkrJRJGymIjFq4ihIyycLpaihSnuMw7CjI
s1dlIcP8pn30EYk6GkqMB22qu/J0kjrqfCvK0=
DomainKey-Signature: a=rsa-sha1; c=nofws;
d=gmail.com; s=gamma;
h=message-id:date:from:user-agent:mime-version:to:subject:references
:in-reply-to:content-type:content-transfer-encoding;
b=CPO1UHYcYM/RCLlQByGNKaE0j4a18rcP1T0I6YSKyXeJfFZawchvjDFk37OAc3j4/g
+SW4ha7AxlSs4XFMpXF9Zxy5Q6rPr+fwbahU2hv8djUM0wO43u/AAVkncYTgCX53FJNh
/Z8Lgk1uLayG+FszMZWowXa1LXir0zLX/eqn4=
Received: by 10.231.48.71 with SMTP id q7mr25679ibf.68.1308161501068;
Wed, 15 Jun 2011 11:11:41 -0700 (PDT)
Return-Path: <rsyr...@gmail.com>
Received: from [192.168.200.22] (74-128-244-206.dhcp.insightbb.com [74.128.244.206])
by mx.google.com with ESMTPS id hw7sm604111icc.15.2011.06.15.11.11.38
(version=TLSv1/SSLv3 cipher=OTHER);
Wed, 15 Jun 2011 11:11:38 -0700 (PDT)
Message-ID: <4DF8F5D9.5000...@gmail.com>
Date: Wed, 15 Jun 2011 14:11:37 -0400
From: Randy Syring <rsyr...@gmail.com>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110424 Thunderbird/3.1.10
MIME-Version: 1.0
To: python-virtualenv@googlegroups.com
Subject: Re: [venv] site-wide distutils.cfg
References: <11fcc332-8685-47b6-96d8-74ee89e90...@j23g2000yqc.googlegroups.com> <4DF8E9F8.2070...@oddbird.net>
In-Reply-To: <4DF8E9F8.2070...@oddbird.net>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
On 06/15/2011 01:20 PM, Carl Meyer wrote:
> The problem is that there are quite a few options that can be placed in
> distutils.cfg that pretty much break the operation of virtualenv. I
> suppose we could include the option you're proposing with the proviso
> "if you use this, you're on your own" -- but I really would prefer not to.
>
> Is there something particularly onerous about writing a tiny wrapper
> script that creates a virtualenv and then appends the option(s) you need
> to its internal distutils.cfg file?
>
> Carl
Thanks Carl for your response. In some circumstances, no its not a big
deal to wrap the script so that each virtualenv gets its distutils.cfg
file updated with the correct setting. In fact, that is what I am doing
right now with my jenkins build script.
However, from a system administration perspective, I do think it would
be helpful to be able to specify the default distutils.cfg file used
with virtualenvs. What if, instead of using the system file, virtualenv
has an option to use a custom file:
--distutilscfg = /etc/python/venv-distutils.cfg
or environment variable:
VENV_DISTUTILSCFG = /etc/python/venv-distutils.cfg
If set, virtualenv would use that file as the default instead of the
blank one it currently uses. That would give the sysadmin control,
without needing users or tools to be modified to use a wrapper script,
and without the possible dangers of including the site-wide file.
--------------------------------------
Randy Syring
Intelicom
Direct: 502-276-0459
Office: 502-212-9913
For the wages of sin is death, but the
free gift of God is eternal life in
Christ Jesus our Lord (Rom 6:23)