Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 9135E431FD0 for ; Thu, 13 Oct 2011 00:59:15 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0.001 X-Spam-Level: X-Spam-Status: No, score=0.001 tagged_above=-999 required=5 tests=[FREEMAIL_FROM=0.001] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id F4IpNNwDTWsJ for ; Thu, 13 Oct 2011 00:59:12 -0700 (PDT) Received: from mail.cryptobitch.de (cryptobitch.de [88.198.7.68]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id E2A0E431FB6 for ; Thu, 13 Oct 2011 00:59:11 -0700 (PDT) Received: from mail.jade-hamburg.de (unknown [85.183.11.228]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.cryptobitch.de (Postfix) with ESMTPSA id 8D858506BE2; Thu, 13 Oct 2011 09:59:10 +0200 (CEST) Received: by mail.jade-hamburg.de (Postfix, from userid 33) id 05A5CDF29F; Thu, 13 Oct 2011 09:59:09 +0200 (CEST) To: Tomi Ollila Subject: Re: [python] set rpath in setup.cfg X-PHP-Originating-Script: 0:func.inc MIME-Version: 1.0 Date: Thu, 13 Oct 2011 09:59:09 +0200 From: dtk In-Reply-To: References: <6d84224ab757d84968df4db3a7b00fcb@jadE-Hamburg.de> <20111012153051.GE21615@hayalet> <87pqi1s8ln.fsf@servo.finestructure.net> Message-ID: <6d9148a0bd27a27a2c06633e509d74fe@jadE-Hamburg.de> X-Sender: dtk@gmx.de User-Agent: RoundCube Webmail/0.3.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Cc: notmuch@notmuchmail.org X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Oct 2011 07:59:15 -0000 On Thu, 13 Oct 2011 10:09:47 +0300, Tomi Ollila wrote: > On Thu 13 Oct 2011 09:34, Jameson Graef Rollins > writes: > >> On Thu, 13 Oct 2011 08:12:03 +0200, dtk wrote: >>> in my experience, it tends to cause awkward side effects that are hard >>> to >>> debug, the main problem being that it overrides all default paths and is >>> hard to target at a single problematic application. > > I also have local notmuch installations (3 of them); notmuch command > (among others) are wrapped in a shell script which setups environment > variables like: > > PATH=/path/to/iroot/bin:$PATH > LD_LIBRARY_PATH=/path/to/iroot/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} > export PATH LD_LIBRARY_PATH True. Actually, I have expanded PATH and PYTHONPATH to include the local installations, so all that's missing is the path to the .so for the python bindings, so ~~~snip~~~ $ LD_LIBRARY_PATH=/home/dtk/.local/lib/ alot ~~~snip~~~ works perfectly; still I find it rather unelegant to have to bother about linker paths at runtime. I feel making the appropriate settings at build time would be way nicer! Of course you can write a wrapper script for that, but since there is RPATH (and I just don't know how to set it in Python's setup.py), I really don't feel like wrapping each of my bins manually :/ tx dtk