Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 927771

Summary: dev-python/pplpy-0.8.10 fails to compile: ModuleNotFoundError: No module named ppl
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Michael Orlitzky <mjo>
Status: RESOLVED FIXED    
Severity: normal CC: frp.bissey, mgorny, mjo, proxy-maint, sci-mathematics
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2024-03-25 08:09:07 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-python/pplpy-0.8.10 fails to compile.
Discovered on: amd64 (internal ref: ci)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0014
Comment 1 Agostino Sarubbo gentoo-dev 2024-03-25 08:09:08 UTC
Created attachment 888495 [details]
build.log

build log and emerge --info
Comment 2 Michael Orlitzky gentoo-dev 2024-03-26 03:44:33 UTC
conf.py is trying to import the version from the just-built extension, but the extension lives in another directory under $BUILD_DIR that isn't on PYTHONPATH until the wheel is installed.

Is there some easy way to point python at the cython build dir while we run sphinx?
Comment 3 François Bissey 2024-03-26 05:05:51 UTC
I am just realising that's the new release. We did not have those issue in 0.8.9 and before. Let's figure out what changed.
Comment 4 François Bissey 2024-03-26 05:45:09 UTC
The change to doc/source/conf.py in this commit is what kills us.
https://github.com/sagemath/pplpy/commit/5710798bc65b567f99d6cd7e6fa22f478b8ad55f

All to get a version string.
Comment 5 Larry the Git Cow gentoo-dev 2024-03-26 06:57:45 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1840fa88f133431197ad4f656b0789372d19020a

commit 1840fa88f133431197ad4f656b0789372d19020a
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2024-03-26 06:56:53 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2024-03-26 06:57:41 +0000

    dev-python/pplpy: Fix building docs
    
    We need to call sphinx via `python -m` and to remove source `ppl`
    directory, to ensure that the correct site-packages are used.
    
    Closes: https://bugs.gentoo.org/927771
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 dev-python/pplpy/pplpy-0.8.10.ebuild | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)
Comment 6 Michael Orlitzky gentoo-dev 2024-03-26 12:10:28 UTC
In hindsight this is probably the same underlying issue you worked around in dev-memory-allocator's python_test(). Anyway thanks mgorny.