From unknown Sun Jun 22 00:33:22 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#72320] [PATCH 0/2] Add python-slycot and python-control Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 27 Jul 2024 12:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 72320 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 72320@debbugs.gnu.org Cc: Vinicius Monego X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.17220829164298 (code B ref -1); Sat, 27 Jul 2024 12:22:01 +0000 Received: (at submit) by debbugs.gnu.org; 27 Jul 2024 12:21:56 +0000 Received: from localhost ([127.0.0.1]:40797 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sXgQu-00016w-8F for submit@debbugs.gnu.org; Sat, 27 Jul 2024 08:21:56 -0400 Received: from lists.gnu.org ([209.51.188.17]:56120) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sXgQs-00016Q-Dk for submit@debbugs.gnu.org; Sat, 27 Jul 2024 08:21:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sXgOb-0005jV-2X for guix-patches@gnu.org; Sat, 27 Jul 2024 08:19:33 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sXgOY-0000yO-LC for guix-patches@gnu.org; Sat, 27 Jul 2024 08:19:32 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id CDD6B240028 for ; Sat, 27 Jul 2024 14:19:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1722082765; bh=DtvMud8Yci1UbTEb8Uk8FY22ZAYdzy7KNNSOlgTsQUA=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version: Content-Transfer-Encoding:From; b=T7lH6x9r4a4mnVPm5AYhaYBav9BNsoIhOMvfFZ/NCroVKn964Dq6zkZNILc9Mr5HP b08F1XudJdMZF0cKYcdnjjAiNJ3RVYKE92a8LH6fDy/orBtBUiErOHEFphicsUE0Uk 7KvHuTUwVXPLvC5fF3HP0+b3OIr6PX/CobmwzNVOyHl0Plx0duR7lJ2wTYQOeQwZ6H R3KfxlzN3bpvpfWKL39M0aMjJGSeVqKa3Ir6amOlfITYuLvampVEI97iTX9ZIkF7fr 5aJ3tDxLok3tMRjy0kWyrGHP1ypsq0gPH4A5/v9KVnF6av+3MQOt1kUgGf+/f57p2h HydBiH8/M4TQg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4WWNwC42Phz9rxF; Sat, 27 Jul 2024 14:19:23 +0200 (CEST) From: Vinicius Monego Date: Sat, 27 Jul 2024 12:18:20 +0000 Message-Id: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=185.67.36.65; envelope-from=monego@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) SLICOT is a Fortran 77 library for control computations. It was free software prior to version ~5.1 after which it became non-commercial, but seems to have been relicensed to bsd-3 in version ~5.8. It's in Debian main repo now and is the base for most Octave packages. The build system for the fortran library is a little weird and the package would need some work. But I'm sending a package for Slycot (a Python wrapper) which forks it for a seamless integration, and then for python-control which is the main consumer of that wrapper. Vinicius Monego (2): gnu: Add python-slycot. gnu: Add python-control. gnu/packages/engineering.scm | 66 ++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) base-commit: 81904c16aed72bb8ea1449587418d2a218d0b103 -- 2.39.2 From unknown Sun Jun 22 00:33:22 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#72320] [PATCH 1/2] gnu: Add python-slycot. References: In-Reply-To: Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 27 Jul 2024 12:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72320 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 72320@debbugs.gnu.org Cc: Vinicius Monego Received: via spool by 72320-submit@debbugs.gnu.org id=B72320.17220830034580 (code B ref 72320); Sat, 27 Jul 2024 12:24:02 +0000 Received: (at 72320) by debbugs.gnu.org; 27 Jul 2024 12:23:23 +0000 Received: from localhost ([127.0.0.1]:40802 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sXgSI-0001BX-NK for submit@debbugs.gnu.org; Sat, 27 Jul 2024 08:23:23 -0400 Received: from mout02.posteo.de ([185.67.36.66]:47423) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sXgSG-0001Ag-AU for 72320@debbugs.gnu.org; Sat, 27 Jul 2024 08:23:21 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 977B4240101 for <72320@debbugs.gnu.org>; Sat, 27 Jul 2024 14:23:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1722082983; bh=QUC3FVDQsgrHlrQlH0+VpxmjTRkzpAUq4cJV8HfgOS8=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version: Content-Transfer-Encoding:From; b=lXu6E4ts65pOZniAnJqgzdpPEZC7t798+zH1zYbKP0GwFolBNs4JJEblvOUqSrJy/ eADsBqDnf94PMdL4LcASUHTOGp8zXAv8OW0ZFcYNLffSybSSlCD5yceSYqR0DmrqCt 4+8Nf76F1/vhaFW81iWtUBkxxFJc916B3HKpscNffN5VX4WwPQiP2LTnukKo889vl4 JCMDCElEGMktEoy9ar8USnDs4koWh2jULyFAbxxMWyTEbV4UdUvYG47qAZHSSCdoLx RQLJp3S3yukAG7QHr+OGiiIDTvEOf9BT9Xn28elnyUG2dzflaj9JTLspWwSfkxY+ns Rodb/jlR0/V/Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4WWP0Q4Llzz9rxG; Sat, 27 Jul 2024 14:23:02 +0200 (CEST) From: Vinicius Monego Date: Sat, 27 Jul 2024 12:21:52 +0000 Message-Id: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/engineering.scm (python-slycot): New variable. Change-Id: If2fa334e2f9c73001570aa7eefd2e683313f1a54 --- gnu/packages/engineering.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm index 4e465ddb7d..688465b233 100644 --- a/gnu/packages/engineering.scm +++ b/gnu/packages/engineering.scm @@ -912,6 +912,32 @@ (define-public translate2geda fonts to gEDA.") (license license:gpl2+)))) +(define-public python-slycot + (package + (name "python-slycot") + (version "0.6.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "slycot" version)) + (sha256 + (base32 "08rwvawrcnyal66lljn2b8l9my0lzjg1d5fvykbf0v0cmnfg3v4q")))) + (build-system pyproject-build-system) + ;; Slycot uses a custom fork of slicot and does not allow to use a system + ;; package. We add gfortran, lapack and openblas to build it. + (native-inputs (list gfortran + python-pytest + python-scikit-build + python-scipy ; for tests + python-setuptools-scm)) + (inputs (list lapack openblas)) + (propagated-inputs (list python-numpy)) + (home-page "https://github.com/python-control/Slycot") + (synopsis "Wrapper for the SLICOT control and systems library") + (description "This package provides a Python wrapper for the SLICOT +control and systems library.") + (license license:gpl2+))) + (define-public libfive (let ((commit "b1ea998d8adb3884ab52798f7388f4354145f452") (revision "5")) base-commit: 81904c16aed72bb8ea1449587418d2a218d0b103 -- 2.39.2 From unknown Sun Jun 22 00:33:22 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#72320] [PATCH 2/2] gnu: Add python-control. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 27 Jul 2024 12:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72320 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 72320@debbugs.gnu.org Cc: Vinicius Monego Received: via spool by 72320-submit@debbugs.gnu.org id=B72320.17220830064644 (code B ref 72320); Sat, 27 Jul 2024 12:24:02 +0000 Received: (at 72320) by debbugs.gnu.org; 27 Jul 2024 12:23:26 +0000 Received: from localhost ([127.0.0.1]:40805 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sXgSM-0001Cc-2p for submit@debbugs.gnu.org; Sat, 27 Jul 2024 08:23:26 -0400 Received: from mout01.posteo.de ([185.67.36.65]:45005) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sXgSJ-0001Aq-Iv for 72320@debbugs.gnu.org; Sat, 27 Jul 2024 08:23:24 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id B901A240027 for <72320@debbugs.gnu.org>; Sat, 27 Jul 2024 14:23:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1722082987; bh=lvXPBwNWh1xgOQTVlG1n8r7tZawPOP1vQCWNUmhn7kc=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version: Content-Transfer-Encoding:From; b=M1DxYsFHs2r3HkfVIx7mUOfamI428K8mkMa8dxKsbGhhWgew1nHgWDR3GuYP6gXsx FNUOwZTE26HVd2EcmyvOHXxXDBaEj7ZQz24HKcRxkgv3ToAkhL9bnAV6yoYnDkQs3C 9QiMMK0CEXt+iUayUg5z+006pbX5ZMfEJ05vTC8MrEbY3aMJKMcNaRs85tfuMajBcg aZgdBNIaGWM7FTZYVsn9ieX9isrhwi4AQQZ2loQJwAkkhak524dQR1GvOq6iTqNjaw pw/kfqRSjHngZJLEKkcatNP4ubr7pvFxCE3yK1H+t8qpw4m8uXEXGDVsh4oMxQHQ6+ lsuyNj3nHO7ZQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4WWP0V5Vrhz9rxM; Sat, 27 Jul 2024 14:23:06 +0200 (CEST) From: Vinicius Monego Date: Sat, 27 Jul 2024 12:21:53 +0000 Message-Id: <8c9e8078d8eb8a711229f1bece82534a6e58cdf3.1722082592.git.monego@posteo.net> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/engineering.scm (python-control): New variable. Change-Id: Idc73713360c28b5e5570baedbaf4d3cde4b59b87 --- gnu/packages/engineering.scm | 40 ++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm index 688465b233..b082af532f 100644 --- a/gnu/packages/engineering.scm +++ b/gnu/packages/engineering.scm @@ -938,6 +938,46 @@ (define-public python-slycot control and systems library.") (license license:gpl2+))) +(define-public python-control + (package + (name "python-control") + (version "0.10.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "control" version)) + (sha256 + (base32 "0lxb1dbdidgdi3w54pwv94cl15p5zglazr5j0zywfibzadkvf61c")))) + (build-system pyproject-build-system) + (propagated-inputs (list python-matplotlib + python-numpy + python-scipy + python-slycot)) + (native-inputs (list python-pytest python-pytest-timeout)) + (home-page "https://github.com/python-control/python-control") + (synopsis "Python Control Systems Library") + (description "The Python Control Systems Library is a Python module that +implements basic operations for analysis and design of feedback control +systems. + +Features: + +@itemize +@item Linear input/output systems in state-space and frequency domain +@item Block diagram algebra: serial, parallel, feedback, and other +interconnections +@item Time response: initial, step, impulse +@item Frequency response: Bode, Nyquist, and Nichols plots +@item Control analysis: stability, reachability, observability, stability +margins, root locus +@item Control design: eigenvalue placement, linear quadratic regulator, +sisotool, hinfsyn, rootlocus_pid_designer +@item Estimator design: linear quadratic estimator (Kalman filter) +@item Nonlinear systems: optimization-based control, describing functions, +differential flatness +@end itemize") + (license license:bsd-3))) + (define-public libfive (let ((commit "b1ea998d8adb3884ab52798f7388f4354145f452") (revision "5")) -- 2.39.2