Summary: | dev-python/pyphen-0.11.0 doesn’t include dictionaries | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Guillaume Ayoub <guillaume> |
Component: | Current packages | Assignee: | Thomas Deutschmann (RETIRED) <whissi> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | ago, mgorny, sam |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://github.com/mgorny/pyproject2setuppy/issues/18 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 805422 | ||
Attachments: | New pyphen-0.11.0 ebuild |
Created attachment 720993 [details]
New pyphen-0.11.0 ebuild
This is a more simple ebuild for Pyphen. It relies on the source package distributed on PyPI instead of GitHub’s repository export. No need for pyproject2setuppy, the source package already contains generated setup.py. It’s a bit more "future-proof", as it doesn’t depend on the packaging tool.
(I also changed the project homepage.)
Comment on attachment 720993 [details]
New pyphen-0.11.0 ebuild
It also doesn't run tests which makes it unsuitable.
(that said, it's my fault, I'll look into fixing it today) *** Bug 805923 has been marked as a duplicate of this bug. *** Ok, this is actually a bug in pyproject2setuppy. I'm going to revert the version bump until I've fixed it, and then readd with new revision and appropriate pyproj2setuppy dep. ..or actually, I think p.mask would be better. The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f7e22dcbaa9151fb09523ee73acf0f03fa08b00 commit 3f7e22dcbaa9151fb09523ee73acf0f03fa08b00 Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2021-08-01 10:46:15 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2021-08-01 12:24:09 +0000 package.mask: Mask broken =pyphen-0.11.0 Bug: https://bugs.gentoo.org/799836 Signed-off-by: Michał Górny <mgorny@gentoo.org> profiles/package.mask | 5 +++++ 1 file changed, 5 insertions(+) The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c5752c28fff71b00c44491ea790cbe5678de241 commit 9c5752c28fff71b00c44491ea790cbe5678de241 Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2021-08-01 12:32:51 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2021-08-01 12:33:41 +0000 dev-python/pyphen: Require pyproj2setuppy with dict install fix Closes: https://bugs.gentoo.org/799836 Signed-off-by: Michał Górny <mgorny@gentoo.org> dev-python/pyphen/{pyphen-0.11.0.ebuild => pyphen-0.11.0-r1.ebuild} | 2 +- profiles/package.mask | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) |
When installed, pyphen-0.11.0 doesn’t include dictionaries, leading to this backtrace when trying to import it: >>> import pyphen Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python3.9/site-packages/pyphen/__init__.py", line 45, in <module> for filename in sorted(os.listdir(dictionaries_root)): FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3.9/site-packages/pyphen/dictionaries' The packaging system has been changed between 0.10.0 and 0.11.0, that’s probably the cause of the problem. But the source package works when used with pip for example. (PS: I’m the maintainer of Pyphen) Reproducible: Always Steps to Reproduce: 1. Install pyphen 2. Launch python 3. Type "import pyphen" Actual Results: It crashes. Expected Results: It imports the module.