From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Prototype for using Guix with python packages Date: Wed, 07 Sep 2016 16:01:12 +0200 Message-ID: <87fupbn713.fsf@gnu.org> References: <4174c012-8e2b-d6f2-8387-031e309b7daf@cbaines.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54332) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhdPn-0003Dr-6D for guix-devel@gnu.org; Wed, 07 Sep 2016 10:01:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bhdPh-0004U1-Pt for guix-devel@gnu.org; Wed, 07 Sep 2016 10:01:22 -0400 In-Reply-To: <4174c012-8e2b-d6f2-8387-031e309b7daf@cbaines.net> (Christopher Baines's message of "Tue, 6 Sep 2016 07:26:23 +0100") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Christopher Baines Cc: guix-devel@gnu.org Hello! Christopher Baines skribis: > For a few months now, I've been assembling a prototype for how packages > could be produced for software released as Python source distributions > (sdists) [1]. Woow, quite an achievement! Do you know how many of the automatically generated packages built from source flawlessly? IIRC, =E2=80=98guix import pypi=E2=80=99 currently produces templates that = can require extra tweaks, although that was improved by reading metadata from Wheels. How does sdist metadata differ from PyPI or Wheels metadata? Is it generally more complete, or of better quality? > I will also try to look at how what I have been doing could be used to > improve the Guix PyPI importer and the Python build system, as well as > submit the packages that are currently just in the guix-env.scm file in > the repository (pyguile, libsolv) for inclusion in Guix. That would be awesome! Anything towards making the output of =E2=80=98guix import=E2=80=99 work out of the box would be great. > I'm quite excited by the possibilities offered by approaches like this, > and was wondering if anyone has feedback, questions, opinions, or if > anyone is working on something similar? That reminds me of the =E2=80=9Crecursive importer=E2=80=9D that has been d= iscussed a few times and is currently implemented (but not in master yet) for the CRAN and NPM importers. Perhaps your work could be somehow integrated to get a recursive PyPI/sdist importer? An idea would be to automatically put all the imported packages into, say, ~/.cache/guix/python, and add that to GUIX_PACKAGE_PATH. Then we could run =E2=80=9Cguix import pypi --update=E2=80=9D to update it, or some= thing like that. Thanks for sharing! Ludo=E2=80=99.