Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1716485

Summary: pystatgrab fails to build with Python 3.8
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: pystatgrabAssignee: Tim Orling <TicoTimo>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: rawhideCC: abdel.g.martinez.l, debarshir, helio, madko, mail, sven, TicoTimo
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://copr.fedorainfracloud.org/coprs/g/python/python3.8/package/pystatgrab/
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-05 07:43:30 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1686977    
Attachments:
Description Flags
0001-Fix-build-for-python-3.8.patch none

Description Miro Hrončok 2019-06-03 14:37:20 UTC
See https://copr.fedorainfracloud.org/coprs/g/python/python3.8/package/pystatgrab/ for actual logs. This report is automated and not very verbose, but feel free to ping me for help.

Comment 1 Tim Orling 2019-06-05 01:28:01 UTC
Created attachment 1577380 [details]
0001-Fix-build-for-python-3.8.patch

The issue is with how __pycache__ is handled in python 3.8. I have attached a patch which built cleanly in mock.

Comment 2 Tim Orling 2019-06-05 01:48:38 UTC
Actually, rawhide is also FTBFS and requires the same fix, so I have pushed the change to master.

Comment 3 Miro Hrončok 2019-06-05 07:43:30 UTC
I don't particularly like this fix, as what you did is discouraged in the guidelines, but it works. Thanks.

https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_files_to_include