Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 715344 - app-office/gnucash-3.8b[python] not byte-compiling Python modules
Summary: app-office/gnucash-3.8b[python] not byte-compiling Python modules
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Aaron W. Swenson
URL:
Whiteboard:
Keywords: PATCH
Depends on: 726804
Blocks:
  Show dependency tree
 
Reported: 2020-03-29 18:32 UTC by Chris Mayo
Modified: 2020-11-15 18:02 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 2020-03-29 18:32:06 UTC
Fixed for me by adding to src_install():

	if use python ; then
		python_optimize
		python_optimize "${ED}"/usr/share/gnucash/python
	fi



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

  /usr/lib/python3.7/site-packages/gnucash/__pycache__/gnucash_core_c.cpython-37.pyc
  /usr/lib/python3.7/site-packages/gnucash/__pycache__/gnucash_core_c.cpython-37.opt-1.pyc
  /usr/lib/python3.7/site-packages/gnucash/__pycache__/gnucash_core_c.cpython-37.opt-2.pyc
  /usr/lib/python3.7/site-packages/gnucash/__pycache__/gnucash_core.cpython-37.pyc
  /usr/lib/python3.7/site-packages/gnucash/__pycache__/gnucash_core.cpython-37.opt-1.pyc
  /usr/lib/python3.7/site-packages/gnucash/__pycache__/gnucash_core.cpython-37.opt-2.pyc
  /usr/lib/python3.7/site-packages/gnucash/__pycache__/gnucash_business.cpython-37.pyc
  /usr/lib/python3.7/site-packages/gnucash/__pycache__/gnucash_business.cpython-37.opt-1.pyc
  /usr/lib/python3.7/site-packages/gnucash/__pycache__/gnucash_business.cpython-37.opt-2.pyc
  /usr/lib/python3.7/site-packages/gnucash/__pycache__/function_class.cpython-37.pyc
  /usr/lib/python3.7/site-packages/gnucash/__pycache__/function_class.cpython-37.opt-1.pyc
  /usr/lib/python3.7/site-packages/gnucash/__pycache__/function_class.cpython-37.opt-2.pyc
  /usr/lib/python3.7/site-packages/gnucash/__pycache__/__init__.cpython-37.pyc
  /usr/lib/python3.7/site-packages/gnucash/__pycache__/__init__.cpython-37.opt-1.pyc
  /usr/lib/python3.7/site-packages/gnucash/__pycache__/__init__.cpython-37.opt-2.pyc
Comment 1 Larry the Git Cow gentoo-dev 2020-04-03 17:30:33 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=28c81d28176d8f2e6a0ee96b8195a9ce7035b44a

commit 28c81d28176d8f2e6a0ee96b8195a9ce7035b44a
Author:     Aaron W. Swenson <titanofold@gentoo.org>
AuthorDate: 2020-04-03 17:30:09 +0000
Commit:     Aaron W. Swenson <titanofold@gentoo.org>
CommitDate: 2020-04-03 17:30:14 +0000

    app-office/gnucash: Dep & python fix
    
    Correct mistaken change on sys-libs/gwenhywfar dependency. It's only needed with
    net-libs/aqbanking. Thanks to Karl-Johan Karlsson for spotting the error.
    
    Also, address QA warning by optimizing Python code. Thanks to Chris Mayo for
    submitting the fix.
    
    Bug: https://bugs.gentoo.org/715344
    Bug: https://bugs.gentoo.org/704632
    Package-Manager: Portage-2.3.89, Repoman-2.3.20
    Signed-off-by: Aaron W. Swenson <titanofold@gentoo.org>

 app-office/gnucash/gnucash-3.8b-r1.ebuild | 211 ++++++++++++++++++++++++++++++
 1 file changed, 211 insertions(+)