gap-packages in conda

120 views
Skip to first unread message

Vincent Delecroix

unread,
Mar 6, 2025, 4:21:16 AMMar 6
to sage-devel
Dear all,

I have code relying on the GAP package Images
(https://gap-packages.github.io/images/doc/chap0_mj.html). Short
version of the question : is there a (dirty short term or clean long
term) solution for having a working Images gap package in a conda
install of SageMath?

It does work when I use my (arch) system sage after installing
gap-packages with pacman and also from source (since the SageMath
gap_packages include Images). However

- Images is not listed in the documentation
https://doc.sagemath.org/html/en/reference/spkg/gap_packages.html
which is confusing. Why don't we have the full list in
src/buipkd/gap_packages/SPKG.rst?

- there does not seem to be a way to install the gap packages in
conda, is there?

Best
Vincent

Dima Pasechnik

unread,
Mar 6, 2025, 10:15:40 AMMar 6
to sage-...@googlegroups.com, Vincent Delecroix
On Thu, Mar 6, 2025 at 3:21 AM Vincent Delecroix
<20100.d...@gmail.com> wrote:

> I have code relying on the GAP package Images
> (https://gap-packages.github.io/images/doc/chap0_mj.html). Short
> version of the question : is there a (dirty short term or clean long
> term) solution for having a working Images gap package in a conda
> install of SageMath?

Images is just GAP code, so installing it just needs putting the
source in an appropriate directory.
E.g. GAP's PackageManager (which is itself a GAP package) should be
able to install it for you without
problems.
Or you can put it manually in ~/.gap/pkg/
- or in <whatever prefix>/pkg/ - where you other GAP packages are.
>
> It does work when I use my (arch) system sage after installing
> gap-packages with pacman and also from source (since the SageMath
> gap_packages include Images). However
>
> - Images is not listed in the documentation
> https://doc.sagemath.org/html/en/reference/spkg/gap_packages.html
> which is confusing. Why don't we have the full list in
> src/buipkd/gap_packages/SPKG.rst?

probably an oversight - we keep adding packages to gap_packages in an
ad hoc manner.

>
> - there does not seem to be a way to install the gap packages in
> conda, is there?

In principle, you can install (for your user) any GAP package in ~/.gap/pkg/
(if it needs building, you'd need to figure out where the appropriate
GAP configs file (called sysinfo.gap) lives,
and pass this location to the package's configure)

HTH
Dima

>
> Best
> Vincent
>
> --
> You received this message because you are subscribed to the Google Groups "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+...@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/sage-devel/CAGEwAA%3DH2oEdrhzCiWwtX6H-f1miBApAS191YfespwTqDF7XOQ%40mail.gmail.com.

Vincent Delecroix

unread,
Mar 7, 2025, 3:31:21 AMMar 7
to Dima Pasechnik, sage-...@googlegroups.com
Thanks Dima for the pointers.

Note that it does not exactly solve the issue in the "dirty short term
way" since images depends on ferret which contains C++ code.

Vincent Delecroix

unread,
Mar 7, 2025, 10:23:38 AMMar 7
to Dima Pasechnik, sage-...@googlegroups.com
It turns out that there are three packages concerned with gap in conda
- gap-core : only the gap executable
- gap-defaults : a tiny subset of gap packages
- gap : all packages (that build)

Installing gap solved my issue!

On Fri, 7 Mar 2025 at 09:31, Vincent Delecroix

Dima Pasechnik

unread,
Apr 2, 2025, 2:54:39 AMApr 2
to sage-devel
there is presently some kind of mess with GAP packages (i.e. "full" GAP) in Conda - only GAP 4.13 is available, no GAP 4.14.
And that GAP 4.13 is not compatible with Sage, as it uses old libflint and arb.
Reply all
Reply to author
Forward
0 new messages