From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Enge Subject: bug#20765: (no subject) Date: Wed, 6 Apr 2016 20:17:24 +0200 Message-ID: <20160406181724.GA18933@bugis> References: <87zj4btfuo.fsf@gnu.org> <20160209045442.GA29136@jasmine> <87oabppnts.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33098) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ans1m-0007CS-Be for bug-guix@gnu.org; Wed, 06 Apr 2016 14:18:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ans1i-0003xp-89 for bug-guix@gnu.org; Wed, 06 Apr 2016 14:18:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:39716) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ans1i-0003xk-53 for bug-guix@gnu.org; Wed, 06 Apr 2016 14:18:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Content-Disposition: inline In-Reply-To: <87oabppnts.fsf@gnu.org> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 20765@debbugs.gnu.org I have stumbled over the same issue for another python package: python-pkgconfig (just committed) makes a system call to pkg-config. I rewrote the system call to use an absolute path, but the non-scanning of the compressed egg means that no reference to pkg-config is returned. Spending a week with Python wizards, I asked around and got the following advice, implemented in the package as #:configure-flags '("--single-version-externally-managed" "--root=/") Our Python build system adds these flags only to the install phase. We could do this automatically in our Python build system, but we would need to make sure to add these flags only when python-setuptools or python2-setuptools are part of the input, since the flags are not recognised by the setup.py from distutils. Another advice was to replace the call to "python setup.py install" by "pip install .", which apparently is becoming the standard approach of installing Python packages, not only over the Internet, but also locally (for which the "." stands). What do you think? Andreas