From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 9DD671381F3 for ; Sat, 3 Nov 2012 11:47:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5154E21C001; Sat, 3 Nov 2012 11:47:36 +0000 (UTC) Received: from mail-pb0-f53.google.com (mail-pb0-f53.google.com [209.85.160.53]) by pigeon.gentoo.org (Postfix) with ESMTP id 8546221C001 for ; Sat, 3 Nov 2012 11:47:35 +0000 (UTC) Received: by mail-pb0-f53.google.com with SMTP id wz12so2867305pbc.40 for ; Sat, 03 Nov 2012 04:47:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=HNz6mF9e74QPKGSHybpWnwDOgTjQdnjsoNQYKVDYb1Y=; b=V0R6Vt3YVX1huFJnja2JH1C/KlXjy2NYXtTpU/HYarKayCZv10YfOHq0cyuxBT17SA YRSZESTXCbr9/nHXmZRvmhincJ5hHnxjnHu31MfCkjz970pt6qK7EKda5wVt2pRkbDnD YhY6fgUHUWO40F3ytHIauxD8UDXto5iC1o1AMEiopg5r1Lo40ORTPIC3PaQr3oPblZd7 a45U8LJxoBkBf5Rle1586fv3OHm19nrrFY7bJ6bNNC576QyjlPxRtNSBZ4mV4YdmHTP/ SW2ny3pvD4iJOgbMOrGn9Nu6SMMCjKvyBkWlZUV5HwJ5gLeW6dzla0fBOw0lJmlY5vwT NLXw== Received: by 10.68.243.10 with SMTP id wu10mr14751869pbc.85.1351943254671; Sat, 03 Nov 2012 04:47:34 -0700 (PDT) Received: from smtp.gmail.com:587 (74-95-192-101-SFBA.hfc.comcastbusiness.net. [74.95.192.101]) by mx.google.com with ESMTPS id c7sm7300044pay.10.2012.11.03.04.47.31 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 03 Nov 2012 04:47:33 -0700 (PDT) Received: by smtp.gmail.com:587 (sSMTP sendmail emulation); Sat, 03 Nov 2012 04:47:31 -0700 Date: Sat, 3 Nov 2012 04:47:31 -0700 From: Brian Harring To: Micha?? G??rny Cc: Mike Gilbert , gentoo-python@lists.gentoo.org Subject: Re: [gentoo-python] Re: [PATCH eselect-python 1/2] Store per-version interpreter preference in a file as well. Message-ID: <20121103114731.GA3150@localhost> References: <1351770893-1217-1-git-send-email-mgorny@gentoo.org> <20121101222719.2717ff05@pomiocik.lan> <20121101224242.GE3299@localhost> <20121102100305.4acfc927@pomiocik.lan> <20121103033538.GI3299@localhost> <20121103083346.1d21d1a5@pomiocik.lan> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Discussions centering around the Python ecosystem in Gentoo Linux X-BeenThere: gentoo-python@gentoo.org X-BeenThere: gentoo-python@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20121103083346.1d21d1a5@pomiocik.lan> User-Agent: Mutt/1.5.21 (2010-09-15) X-Archives-Salt: a3f3eb9b-d617-4f3c-b5af-d87970fd3d3f X-Archives-Hash: b0401269fac7e56611c4cf9ccaa3926c On Sat, Nov 03, 2012 at 08:33:46AM +0100, Micha?? G??rny wrote: > On Fri, 2 Nov 2012 20:35:38 -0700 > Brian Harring wrote: > > > On Fri, Nov 02, 2012 at 10:03:05AM +0100, Micha?? G??rny wrote: > > > On Thu, 1 Nov 2012 15:42:42 -0700 > > > Brian Harring wrote: > > What I have written here is a python-shebang based solution. That > > shebang target includes the EPYTHON's it supports. > > > > For the usual sphinx-build example, sphinx-build-2.7 goes from > > #!/usr/bin/python2.7 > > > > to > > > > #!/usr/bin/python-shebang python2.7,python3.2 > > > > This means that sphinx-build-2.7 and sphinx-build-3.2 are now the same > > content. They can be hardlinked together (space savings). > > > > This additionally means that sphinx-build can be hardlinked to the > > same underlying inode. Why? Because python-shebang is smart enough > > to recognize the context it is invoked in. > > > > This additionally means that the follow commands: > > > > eselect python set 3.2 > > python2.7 /usr/bin/sphinx-build > > > > properly work- invoking sphinx-bulid in a 2.7 context (for anyone > > trying to write distutils/setup bits that aren't gentoo/EPYTHON > > specific, this is fricking useful to say the least). > > I think you've missed my question: what code does the 'sphinx-build' > contain, except for the shebang? Is that a Python version > of the wrapper? Some kind of os.exec()? Covered this in the email. As I said, if dedup'ing