Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 866207 - sci-libs/gdal-3.5.1[python] Python modules not byte-compiled
Summary: sci-libs/gdal-3.5.1[python] Python modules not byte-compiled
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Sci-geo Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-23 18:50 UTC by Chris Mayo
Modified: 2022-10-21 15:05 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Mayo 2022-08-23 18:50:06 UTC
Fixed for me by adding to src_install():

use python && python_optimize


QA Notice: This package installs one or more Python modules that are
not byte-compiled.
The following files are missing:

  /usr/lib/python3.10/site-packages/osgeo/__pycache__/__init__.cpython-310.opt-1.pyc
  /usr/lib/python3.10/site-packages/osgeo/__pycache__/__init__.cpython-310.opt-2.pyc
  /usr/lib/python3.10/site-packages/osgeo/__pycache__/__init__.cpython-310.pyc
  /usr/lib/python3.10/site-packages/osgeo/__pycache__/gdal.cpython-310.opt-1.pyc
  /usr/lib/python3.10/site-packages/osgeo/__pycache__/gdal.cpython-310.opt-2.pyc
  /usr/lib/python3.10/site-packages/osgeo/__pycache__/gdal.cpython-310.pyc
  /usr/lib/python3.10/site-packages/osgeo/__pycache__/gdal_array.cpython-310.opt-1.pyc
  /usr/lib/python3.10/site-packages/osgeo/__pycache__/gdal_array.cpython-310.opt-2.pyc
  /usr/lib/python3.10/site-packages/osgeo/__pycache__/gdal_array.cpython-310.pyc
...
Comment 1 Larry the Git Cow gentoo-dev 2022-10-21 15:05:39 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1fc7fd23fb6eee83dae168e2bab950db4dbe9f02

commit 1fc7fd23fb6eee83dae168e2bab950db4dbe9f02
Author:     Andrew Ammerlaan <andrewammerlaan@gentoo.org>
AuthorDate: 2022-10-21 11:18:17 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan@gentoo.org>
CommitDate: 2022-10-21 15:04:48 +0000

    sci-libs/gdal: enable python3.11 and byte-compile python
    
    Closes: https://bugs.gentoo.org/866207
    Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>

 sci-libs/gdal/{gdal-3.5.2.ebuild => gdal-3.5.2-r1.ebuild} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)