PySide Bugzilla Closed for New Bugs

PySide is now a Qt Add-on and uses the Qt Project's JIRA Bug Tracker instead of this Bugzilla instance. This Bugzilla is left for reference purposes.

Bug 929 - pkg-config files do not know about Python version tags
: pkg-config files do not know about Python version tags
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: PySide
: 1.0.4
: All All
: P3 normal
Assigned To: Hugo Parente Lima
:
:
:
  Show dependency treegraph
 
Reported: 2011-07-14 16:12 EEST by Hugo Parente Lima
Modified: 2011-07-22 22:12 EEST (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hugo Parente Lima 2011-07-14 16:12:00 EEST
Quoting Neil Hodgson from PySide mailing list[1]:

Both PySide and Shiboken publish .pc files so that pkg-config can be used to
find build parameters. For example, to link to PySide it should be possible to
find the correct libs with

pkg-config --libs pyside

   On my Linux machines this produces

/usr/lib/libpython2.6.so -L/usr/local/lib -lpyside -lshiboken

   However, the files in /usr/local/lib include Python version tags in
their names

libpyside-python2.6.so
libpyside-python2.6.so.1.0
libpyside-python2.6.so.1.0.4

   This makes it more difficult to produce generic build files. Since
qmake supports pkg-config, it should be possible to include these
commands in a qmake project but this does not work:

CONFIG += link_pkgconfig
PKGCONFIG += shiboken pyside

   The relevant pkg-config file pyside,pc looks like this:

------------------------------------------------------------------------------
prefix=/usr/local
exec_prefix=/usr/local
libdir=/usr/local/lib
includedir=/usr/local/include/PySide
typesystemdir=/usr/local/share/PySide/typesystems
pythonpath=/usr/local/lib/python2.6/dist-packages

Name: PySide
Description: Support library for Python bindings of Qt-based libraries.
Version: 1.0.4
Libs: -L${libdir} -lpyside
Cflags: -I${includedir}
Requires: shiboken
------------------------------------------------------------------------------

   A solution may be to include the python version tag in the relevant
variables like

Libs: -L${libdir} -lpyside-python2.6

   The pyside.pc file has already been specialized to Python 2.6 by
the pythonpath variable so it is not losing any generality.

   I have seen this issue with packages downloaded using apt-get on
Ubuntu and yum on Fedora as well as when built from source.

[1] http://lists.pyside.org/pipermail/pyside/2011-July/002696.html
Comment 1 Hugo Parente Lima 2011-07-14 22:07:08 EEST
Fixed in commits:

shiboken/77f72e36154436abd4bbf5b147ad920767c866a3
pyside/f66c09e387682e92668cf951192076f20e6edebc
Comment 2 renato filho 2011-07-22 22:12:45 EEST
release 1.0.5