Bug 1490997

Summary: RFE: Install python bindings
Product: [Fedora] Fedora Reporter: Jason Tibbitts <j>
Component: clangAssignee: Rex Dieter <rdieter>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: airlied, davejohansen, rdieter, sbergman, siddharth.kde, tstellar
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-10-04 16:35:16 UTC Type: Bug
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: 1490964    

Description Jason Tibbitts 2017-09-12 17:19:54 UTC
We are trying to do some work on packaging the Python bindings for the modern KDE Frameworks.  For whatever reason, the build process for that requires the Clang Python bindings.  These are included in the Clang sources but not built or installed by the existing Fedora package.

There is also a split-out version of the module on pypi (https://pypi.python.org/pypi/clang/4.0.post1) which could be used, though that runs the risk of being out of date.

The in-tree module (in src/bindings/python) is kind of crufty, supports only python 2, and has no setup.py for ease of installation.  It should be sufficient to simply copy the src/bindings/python/clang directory it to %python2_sitelib and have a %package -n python2-clang that owns that directory.  I can send a PR if you like, but I can understand if you'd prefer not to bother.

The out of tree module is similarly crufty, but does include a setup.py and the usual python metadata for a proper installation.  Using the internal version is still probably better, though.

Comment 1 Rex Dieter 2017-10-04 13:39:44 UTC
I can take a stab at implementing this packaging-wise (assuming there are no objections, since there has been no response or comment to this bug for a few weeks)

Comment 2 Rex Dieter 2017-10-04 16:35:16 UTC
%changelog
* Wed Oct 04 2017 Rex Dieter <rdieter> - 4.0.1-6
- python2-clang subpkg (#1490997)
- tools-extras: tighten (internal) -libs dep
- %%install: avoid cd