From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id oHlxBjf+UWHTSQAAgWs5BA (envelope-from ) for ; Mon, 27 Sep 2021 19:24:07 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id GEP9ATf+UWHhdQAAbx9fmQ (envelope-from ) for ; Mon, 27 Sep 2021 17:24:07 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7B949A55F for ; Mon, 27 Sep 2021 19:24:06 +0200 (CEST) Received: from localhost ([::1]:40848 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mUuMD-00019J-PI for larch@yhetil.org; Mon, 27 Sep 2021 13:24:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52730) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mUuAe-00009Z-6e for guix-patches@gnu.org; Mon, 27 Sep 2021 13:12:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:59389) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mUuAd-0001w6-UY for guix-patches@gnu.org; Mon, 27 Sep 2021 13:12:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mUuAd-0006mX-NG for guix-patches@gnu.org; Mon, 27 Sep 2021 13:12:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50490] [PATCH 0/5] Some julia packages Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 27 Sep 2021 17:12:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50490 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Efraim Flashner Cc: 50490@debbugs.gnu.org Received: via spool by 50490-submit@debbugs.gnu.org id=B50490.163276272126013 (code B ref 50490); Mon, 27 Sep 2021 17:12:03 +0000 Received: (at 50490) by debbugs.gnu.org; 27 Sep 2021 17:12:01 +0000 Received: from localhost ([127.0.0.1]:42688 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUuAa-0006lK-Mx for submit@debbugs.gnu.org; Mon, 27 Sep 2021 13:12:01 -0400 Received: from mail-wm1-f46.google.com ([209.85.128.46]:54045) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUuAR-0006k0-4X for 50490@debbugs.gnu.org; Mon, 27 Sep 2021 13:11:51 -0400 Received: by mail-wm1-f46.google.com with SMTP id z2so1111733wmc.3 for <50490@debbugs.gnu.org>; Mon, 27 Sep 2021 10:11:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=Jc+0gPz0GVBrEeHnLOLwlq9choWn5J4O6OjQ/urP49A=; b=R3R2QcqE1iqC+h8BdssFHKDju/JIi1to3/YnCi/fHACZvpnpYG+ujlTJsF8MXm+y7N efj24hxK2inH2iC3Qtn1G6zTgHWL3rNFnT3Doq815/vz42nWnh3hsMNy7bc+vQdqctdX DzcaboGMNPJA6W561k54EJDgPG8n3Fp0vE6ztNQ8jyDBLF16YChkQ6n5EKdl2ReUJcBz EICpki0GzhyLjXMfMWYawp7fodTJ4hP0MfVDxlXS66ptuXUhvqo4/FZq3c2wS7G06PLL Vfaxz9CzUcE9TWMKGyNeiGmJb/T31uWLIdcT9GwF3UtOsAl7w5ho7eZDXTO7PKgl6mN8 yzKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=Jc+0gPz0GVBrEeHnLOLwlq9choWn5J4O6OjQ/urP49A=; b=2BHTcaryfw4MCJ82yPzZ0PogMDCnCKbR/Rm1Q3OS1ZqxJDUpOJ0UKQKwOJ7n2Uz3yT 3NYXSQP06bpqhgWCvsJ/sjmZR+dfdVWsl2G/amWUvUY4M1l4Ou2Bbqh2haJ+2EROQQDI Gm8FwHVgNnjonaA10BCcPuB3iNhmY9owu13fh7gfr0MHc7gyv0r+vLEaBWoCVOV4duwZ frOrlcnQfvnS3APEjUNDDEx3RZeHHjYkTEECJY8NR4DnjuntVqdXoi6uae7DnZPZyXM1 iTkLhK2yGWor2YR8QwVl2+A4a3RWBh4mduMri9eTFUABZovZQdytWX+8k57fccBb/PH0 B8YQ== X-Gm-Message-State: AOAM531+0rWFhsH3G31RZ0q+IQEfpECUb6+0nwFp4FHz8W8xSK5WwxOs oeuvsA02HuW4JbPyKqSKk8AQQgsPNsE= X-Google-Smtp-Source: ABdhPJzoxXBZ0s+FTzABC4y4tkCs9TU5DSAbqjmGiuu7TrJRcVMIOl8i3BV4wAhIWbuAcJZbjHzMyQ== X-Received: by 2002:a05:600c:26d4:: with SMTP id 20mr198828wmv.40.1632762705628; Mon, 27 Sep 2021 10:11:45 -0700 (PDT) Received: from jack-Precision-7820-Tower ([193.48.40.117]) by smtp.gmail.com with ESMTPSA id s13sm111093wmj.9.2021.09.27.10.11.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Sep 2021 10:11:45 -0700 (PDT) From: zimoun References: <4c2974bdaa47fcb961ead03fe56c8b06ca9317cf.1631211286.git.efraim@flashner.co.il> Date: Mon, 27 Sep 2021 18:58:18 +0200 In-Reply-To: <4c2974bdaa47fcb961ead03fe56c8b06ca9317cf.1631211286.git.efraim@flashner.co.il> (Efraim Flashner's message of "Wed, 22 Sep 2021 15:13:19 +0300") Message-ID: <868rzi0xcl.fsf_-_@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1632763446; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=Jc+0gPz0GVBrEeHnLOLwlq9choWn5J4O6OjQ/urP49A=; b=NQmqJXWg5jeQgsgRmZaGsoLy/6e5BCFOzMzsgAb0RYW+0NXT+zyUqSDAQea/dzOhIxjnSr 24KKixWZDhtRwfd34SRRS/2QjkcAUQzlamKgAmjjHZ6vAtcYylfACH8/1o7q7jz+yi5e82 zfw5tywq2cSMF/saGn9dz3rkWuMLC7NDN1+uTUxOWRxxANehet5RZzs4+4QF2MLHHZ8X/j +PJZ9fQjXnkQDtGc3GOUz1RpfSX2MoHErmWmGrL/BcSdoLf39oy+j2D0WJTs96wqSBpxTC o8hZlF4TXkxwg7be4wDSsd7fkj0YvVz4xeWAFbw9mlf82HvzKBKd7Xokj7BSnQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632763446; a=rsa-sha256; cv=none; b=n5D81k88WMSNbCO3qrwapSpfNXUpR3KIk1DPq3b8DtOY+wR9Tq2apeGDcXSty0w2DZiBMt J0kAJRHuou09pkuYhEHNhHX5EoCUZyaFDnA5nY/4sE95WnO2FrF++Qr6GlLaCAxHLj2yKE NVuUtqLUSFLCTyPKXLNjVYu+2LZkCIbFL8uJG6IFSUNXoPAMTaRtJfSZf6Jk41qBssZPRb XHJPCWkZhZakqS0hjoZyo8hZn+f3iL84iOTpXK/9dUWNwEMd4o46irCh7d8fJdnoQ8psmL 9ob1/MBlkutq5pRc4mYBiO62Azzi3n6UfSq1084Y20LZkbt2mZzq2TUjpDJOWw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=R3R2QcqE; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 0.21 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=R3R2QcqE; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 7B949A55F X-Spam-Score: 0.21 X-Migadu-Scanner: scn0.migadu.com X-TUID: xEEACzsEMkW3 Hi Efraim, On mer., 22 sept. 2021 at 15:13, Efraim Flashner wrote: > * gnu/packages/julia-xyz.scm (julia-pycall): New variable. > --- > gnu/packages/julia-xyz.scm | 79 +++++++++++++++++++++++++++++++++++++- > 1 file changed, 78 insertions(+), 1 deletion(-) > > diff --git a/gnu/packages/julia-xyz.scm b/gnu/packages/julia-xyz.scm > index 3616ffd006..1038d3f80b 100644 > --- a/gnu/packages/julia-xyz.scm > +++ b/gnu/packages/julia-xyz.scm > @@ -26,7 +26,9 @@ > #:use-module (guix git-download) > #:use-module (guix build-system julia) > #:use-module (gnu packages gcc) > - #:use-module (gnu packages julia-jll)) > + #:use-module (gnu packages julia-jll) > + #:use-module (gnu packages python) > + #:use-module (gnu packages python-xyz)) > > (define-public julia-abstractffts > (package > @@ -3038,6 +3040,81 @@ everything from run time algorithm choice to code generation at compile time.") > human-readable format.") > (license license:expat))) > > +(define-public julia-pycall > + (package > + (name "julia-pycall") > + (version "1.92.3") > + (source > + (origin > + (method git-fetch) > + (uri (git-reference > + (url "https://github.com/JuliaPy/PyCall.jl") > + (commit (string-append "v" version)))) > + (file-name (git-file-name name version)) > + (sha256 > + (base32 > + "07r99ni6nkxpyrp3wsb5qg4jxz7i2r08dyqbiffy2zm3g0bn88jq")))) > + (build-system julia-build-system) > + (arguments > + `(#:imported-modules ((guix build python-build-system) > + ,@%julia-build-system-modules) > + #:modules ((guix build julia-build-system) > + (guix build utils) > + ((guix build python-build-system) #:prefix python:)) > + #:phases > + (modify-phases %standard-phases > + (add-after 'unpack 'remove-conda > + (lambda _ > + (substitute* "Project.toml" > + ((".*Conda.*") "")) > + (substitute* (list "src/PyCall.jl" > + "test/runtests.jl") > + (("import Conda") "")) > + (substitute* "deps/depsutils.jl" > + (("Conda.PYTHONDIR") "\"/\"")) > + #t)) > + (add-after 'unpack 'set-python > + (lambda* (#:key inputs outputs #:allow-other-keys) > + (let ((python (assoc-ref inputs "python"))) > + (setenv "PYCALL_JL_RUNTIME_PYTHON" > + (string-append python "/bin/python3")) > + (with-output-to-file "deps/deps.jl" > + (lambda _ > + (format #t > + "const python = \"~a/bin/python3\"~@ > + const pyprogramname = \"~a/bin/python3\"~@ > + const libpython = \"~a/lib/libpython~a.so.1.0\"~@ > + const PYTHONHOME = \"~a\"~@ > + const pyversion_build = v\"~a\"~@ > + const conda = false~%" > + python > + python > + python > + (python:python-version python) > + python > + ,(package-version python)))) > + #t))) > + (add-before 'check 'pre-check > + (lambda _ > + (setenv "CI" "true") > + (setenv "JULIA_PKGEVAL" "true") > + #t))))) > + (propagated-inputs > + `(("julia-macrotools" ,julia-macrotools) > + ("julia-versionparsing" ,julia-versionparsing))) > + (inputs > + `(("python" ,python))) > + (native-inputs > + `(("python-numpy" ,python-numpy))) > + (home-page "https://github.com/JuliaPy/PyCall.jl") > + (synopsis "Call Python functions from the Julia language") > + (description "This package provides the ability to directly call and fully > +interoperate with Python from the Julia language. You can import arbitrary > +Python modules from Julia, call Python functions (with automatic conversion of > +types between Julia and Python), define Python classes from Julia methods, and > +share large data structures between Julia and Python without copying them.") > + (license license:expat))) LGTM! Cheers, simon