Closed strogdon closed 1 year ago
The internet thing is new I think [I think I saw a PR for it] but should only happen if pplpy doc is not found locally. So, we should look at why it is not picked up in the first place. May be it is not found properly in the prefix?
This is https://github.com/sagemath/sage/pull/35536 - it should have worked if it was not for the internet connection issue. It could be a glitch, we have a report of DNS issues at the national level in NZ in the last 12 hours.
Nevertheless, I need to check what PPLPY_DOCS
is for you and whether it is wrong.
OK can you can check the value of PPLPY_DOCS
in usr/lib/python3.11/site-packages/_sage_conf/_conf.py
in your prefix? And whether that folder does contain objects.inv
?
PPLPY_DOCS = "/storage/strogdon/gentoo-rap/usr/share/doc//html"
This is not correct. It should be
PPLPY_DOCS = "/storage/strogdon/gentoo-rap/usr/share/doc/pplpy-0.8.7/html"
There is an objects.inv
in the correct folder.
For that to happen, pplpy
has to be missing when installing sage-conf
and I clearly put pplpy
in DEPENDS
.
Can you check your install of pplpy
and then remerge sage-conf
to see if this persist?
I have pplpy
installed and the docs are installed:
$ eix -I pplpy
[I] dev-python/pplpy [1]
Available versions: (~)0.8.7(0/0.8.7) {doc PYTHON_TARGETS="python3_10 python3_11"}
Installed versions: 0.8.7(0/0.8.7)(09:30:09 PM 04/07/2023)(doc PYTHON_TARGETS="python3_11 -python3_9 -python3_10")
Homepage: https://github.com/sagemath/pplpy
Description: A Python wrapper for the Parma Polyhedra Library (PPL)
[1] "sage-on-gentoo" /var/lib/layman/sage-on-gentoo
Perhaps something is not quite correct with the intersphinx
stuff in sage-conf
?
The above eix
was not for prefix. It should be
$ eix -I pplpy
[I] dev-python/pplpy [1]
Available versions: (~)0.8.7(0/0.8.7) {doc PYTHON_TARGETS="python3_10 python3_11"}
Installed versions: 0.8.7(0/0.8.7)(07:32:11 PM 11/23/2022)(doc PYTHON_TARGETS="python3_10 python3_11 -python3_8 -python3_9")
Homepage: https://github.com/sagemath/pplpy
Description: A Python wrapper for the Parma Polyhedra Library (PPL)
[1] "sage-on-gentoo" /storage/strogdon/gentoo-rap/var/db/repos/sage-on-gentoo
From the sage-conf-9999
ebuild:
$ equery -q l -F '$name-$fullversion' pplpy:0
Traceback (most recent call last):
File "/storage/strogdon/gentoo-rap/usr/lib/python-exec/python3.10/equery", line 31, in <module>
from gentoolkit import equery, errors
File "/storage/strogdon/gentoo-rap/usr/lib/python3.10/site-packages/gentoolkit/equery/__init__.py", line 26, in <module>
import portage
ModuleNotFoundError: No module named 'portage'
I thought it could be the issue. A bug in gentoolkit on prefix. I am not sure what to replace gentoolkit with to make it more bullet proof, I was never completely happy to depend on it. I have to think.
I had an old version of gentoolkit
installed. After updating gentoolkit
it now works
$ equery -q l -F '$name-$fullversion' pplpy:0
pplpy-0.8.7
I will now reinstall sage-conf
.
I still think that should go. I may be able to (ab)use a proper ebuild query function for my purpose.
PPLPY_DOCS
is now correct
PPLPY_DOCS = "/storage/strogdon/gentoo-rap/usr/share/doc/pplpy-0.8.7/html"
There is now a gentoolkit less version of sage-conf-9999 in the overlay (in both branch). Let me know if it works for you in prefix.
The changes work in Prefix.
cool. Closing.
I usually build sage for each new
beta
in this Prefix. For10.1.beta1
,sage-doc-9999
will not build. The failure isIt appears as if the build is attempting to make an internet connection? The Prefix is on a fairly old machine and that may be the issue. However, I have tried building the docs several times with the same failure.