GNU bug report logs -
#70336
[PATCH] gnu: Add python-libensemble.
Previous Next
Reported by: Vinicius Monego <monego <at> posteo.net>
Date: Thu, 11 Apr 2024 09:44:01 UTC
Severity: normal
Tags: patch
Done: Vinicius Monego <monego <at> posteo.net>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 70336 in the body.
You can then email your comments to 70336 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#70336
; Package
guix-patches
.
(Thu, 11 Apr 2024 09:44:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Vinicius Monego <monego <at> posteo.net>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Thu, 11 Apr 2024 09:44:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/maths.scm (python-libensemble): New variable.
Change-Id: I45d4ba209af746f22f3f6c74a01063726478de0f
---
gnu/packages/maths.scm | 53 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 53 insertions(+)
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 03760f3f3e..6f7e67329e 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -839,6 +839,59 @@ (define-public glpk-4
(base32
"040sfaa9jclg2nqdh83w71sv9rc1sznpnfiripjdyr48cady50a2"))))))
+(define-public python-libensemble
+ (package
+ (name "python-libensemble")
+ (version "1.2.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "libensemble" version))
+ (sha256
+ (base32 "0y46b8rk3dnnjnap76l80cj3ddkjcic1vcl706cajac19vnk8vlk"))))
+ (build-system pyproject-build-system)
+ (native-inputs (list ncurses
+ python-mock
+ python-mpi4py
+ python-pytest
+ python-pytest-cov
+ python-pytest-timeout))
+ (propagated-inputs (list python-numpy
+ python-psutil
+ python-pydantic-2
+ python-pyyaml
+ python-tomli))
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'relax-psutil
+ (lambda _
+ (substitute* "setup.py"
+ (("psutil>=5.9.4") "psutil>=5.9.2"))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ ;; These files require MPI and call subprocesses.
+ (delete-file
+ "libensemble/tests/unit_tests/test_executor.py")
+ (delete-file
+ "libensemble/tests/unit_tests/test_executor_gpus.py")
+ ;; Run only unit tests, regression tests require MPI.
+ (setenv "TERM" "xterm")
+ ;; A very bad way to skip another MPI test.
+ (substitute* "libensemble/tests/run-tests.sh"
+ (("export UNIT_TEST_MPI_SUBDIR=.*")
+ "export UNIT_TEST_MPI_SUBDIR=''"))
+ ;; Run the test script.
+ (invoke "bash" "libensemble/tests/run-tests.sh" "-u")))))))
+ (home-page "https://github.com/Libensemble/libensemble")
+ (synopsis "Toolkit for dynamic ensembles of calculations")
+ (description "@code{libensemble} is a a complete toolkit for dynamic
+ensembles of calculations. It connects @code{deciders} to experiments or
+simulations.")
+ (license license:bsd-3)))
+
(define-public linasm
(package
(name "linasm")
base-commit: 51de844a0ff6ea224367a384092896bce6848b9f
--
2.39.2
Information forwarded
to
guix-patches <at> gnu.org
:
bug#70336
; Package
guix-patches
.
(Mon, 15 Apr 2024 22:37:03 GMT)
Full text and
rfc822 format available.
Message #8 received at 70336 <at> debbugs.gnu.org (full text, mbox):
On 2024-04-11 09:42, Vinicius Monego wrote:
> * gnu/packages/maths.scm (python-libensemble): New variable.
>
> Change-Id: I45d4ba209af746f22f3f6c74a01063726478de0f
> ---
> gnu/packages/maths.scm | 53 ++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 53 insertions(+)
>
> diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
> index 03760f3f3e..6f7e67329e 100644
> --- a/gnu/packages/maths.scm
> +++ b/gnu/packages/maths.scm
> @@ -839,6 +839,59 @@ (define-public glpk-4
> (base32
> "040sfaa9jclg2nqdh83w71sv9rc1sznpnfiripjdyr48cady50a2"))))))
>
> +(define-public python-libensemble
> + (package
> + (name "python-libensemble")
> + (version "1.2.2")
> + (source
> + (origin
> + (method url-fetch)
> + (uri (pypi-uri "libensemble" version))
> + (sha256
> + (base32 "0y46b8rk3dnnjnap76l80cj3ddkjcic1vcl706cajac19vnk8vlk"))))
> + (build-system pyproject-build-system)
> + (native-inputs (list ncurses
> + python-mock
> + python-mpi4py
> + python-pytest
> + python-pytest-cov
> + python-pytest-timeout))
> + (propagated-inputs (list python-numpy
> + python-psutil
> + python-pydantic-2
> + python-pyyaml
> + python-tomli))
> + (arguments
> + (list
> + #:phases
> + #~(modify-phases %standard-phases
> + (add-after 'unpack 'relax-psutil
> + (lambda _
> + (substitute* "setup.py"
> + (("psutil>=5.9.4") "psutil>=5.9.2"))))
> + (replace 'check
> + (lambda* (#:key tests? #:allow-other-keys)
> + (when tests?
> + ;; These files require MPI and call subprocesses.
> + (delete-file
> + "libensemble/tests/unit_tests/test_executor.py")
> + (delete-file
> + "libensemble/tests/unit_tests/test_executor_gpus.py")
> + ;; Run only unit tests, regression tests require MPI.
> + (setenv "TERM" "xterm")
> + ;; A very bad way to skip another MPI test.
> + (substitute* "libensemble/tests/run-tests.sh"
> + (("export UNIT_TEST_MPI_SUBDIR=.*")
> + "export UNIT_TEST_MPI_SUBDIR=''"))
> + ;; Run the test script.
> + (invoke "bash" "libensemble/tests/run-tests.sh" "-u")))))))
> + (home-page "https://github.com/Libensemble/libensemble")
> + (synopsis "Toolkit for dynamic ensembles of calculations")
> + (description "@code{libensemble} is a a complete toolkit for dynamic
Just a little typo here (double a), otherwise LGTM.
guix lint only complains on archival, but it's fine.
built and rebuilt.
> +ensembles of calculations. It connects @code{deciders} to experiments or
> +simulations.")
> + (license license:bsd-3)))
> +
> (define-public linasm
> (package
> (name "linasm")
>
> base-commit: 51de844a0ff6ea224367a384092896bce6848b9f
--
Best regards,
Nicolas Graves
Reply sent
to
Vinicius Monego <monego <at> posteo.net>
:
You have taken responsibility.
(Sat, 11 May 2024 17:31:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Vinicius Monego <monego <at> posteo.net>
:
bug acknowledged by developer.
(Sat, 11 May 2024 17:31:01 GMT)
Full text and
rfc822 format available.
Message #13 received at 70336-done <at> debbugs.gnu.org (full text, mbox):
Em 15/04/2024 19:35, Nicolas Graves escreveu:
> On 2024-04-11 09:42, Vinicius Monego wrote:
>
>> * gnu/packages/maths.scm (python-libensemble): New variable.
>>
>> Change-Id: I45d4ba209af746f22f3f6c74a01063726478de0f
>> ---
>> gnu/packages/maths.scm | 53 ++++++++++++++++++++++++++++++++++++++++++
>> 1 file changed, 53 insertions(+)
>>
>> diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
>> index 03760f3f3e..6f7e67329e 100644
>> --- a/gnu/packages/maths.scm
>> +++ b/gnu/packages/maths.scm
>> @@ -839,6 +839,59 @@ (define-public glpk-4
>> (base32
>> "040sfaa9jclg2nqdh83w71sv9rc1sznpnfiripjdyr48cady50a2"))))))
>>
>> +(define-public python-libensemble
>> + (package
>> + (name "python-libensemble")
>> + (version "1.2.2")
>> + (source
>> + (origin
>> + (method url-fetch)
>> + (uri (pypi-uri "libensemble" version))
>> + (sha256
>> + (base32 "0y46b8rk3dnnjnap76l80cj3ddkjcic1vcl706cajac19vnk8vlk"))))
>> + (build-system pyproject-build-system)
>> + (native-inputs (list ncurses
>> + python-mock
>> + python-mpi4py
>> + python-pytest
>> + python-pytest-cov
>> + python-pytest-timeout))
>> + (propagated-inputs (list python-numpy
>> + python-psutil
>> + python-pydantic-2
>> + python-pyyaml
>> + python-tomli))
>> + (arguments
>> + (list
>> + #:phases
>> + #~(modify-phases %standard-phases
>> + (add-after 'unpack 'relax-psutil
>> + (lambda _
>> + (substitute* "setup.py"
>> + (("psutil>=5.9.4") "psutil>=5.9.2"))))
>> + (replace 'check
>> + (lambda* (#:key tests? #:allow-other-keys)
>> + (when tests?
>> + ;; These files require MPI and call subprocesses.
>> + (delete-file
>> + "libensemble/tests/unit_tests/test_executor.py")
>> + (delete-file
>> + "libensemble/tests/unit_tests/test_executor_gpus.py")
>> + ;; Run only unit tests, regression tests require MPI.
>> + (setenv "TERM" "xterm")
>> + ;; A very bad way to skip another MPI test.
>> + (substitute* "libensemble/tests/run-tests.sh"
>> + (("export UNIT_TEST_MPI_SUBDIR=.*")
>> + "export UNIT_TEST_MPI_SUBDIR=''"))
>> + ;; Run the test script.
>> + (invoke "bash" "libensemble/tests/run-tests.sh" "-u")))))))
>> + (home-page "https://github.com/Libensemble/libensemble")
>> + (synopsis "Toolkit for dynamic ensembles of calculations")
>> + (description "@code{libensemble} is a a complete toolkit for dynamic
> Just a little typo here (double a), otherwise LGTM.
> guix lint only complains on archival, but it's fine.
> built and rebuilt.
Pushed with that correction and an update to 1.3.0, thanks.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 09 Jun 2024 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 year and 25 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.