Bug 1490997 - RFE: Install python bindings
Summary: RFE: Install python bindings
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: clang
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Rex Dieter
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1490964
TreeView+ depends on / blocked
 
Reported: 2017-09-12 17:19 UTC by Jason Tibbitts
Modified: 2017-10-04 16:35 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-10-04 16:35:16 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.