Ticket #34271 (new defect)
python27 2.7.3_0 py27-gtk 2.22.0_1 etc -- pkg-config files not installed correctly for python 2.6 and 2.7 versions of pygtk and pygobject
|Reported by:||stephen.langer@…||Owned by:||macports-tickets@…|
|Keywords:||Cc:||jwa@…, mcalhoun@…, stephen.langer@…, michaelld@…, ryandesign@…, egall@…|
|Port:||py25-gtk py27-gtk py26-gtk py27-gobject py26-gobject py25-gobject python26 python27|
I don't know which port this bug belongs to, so I've included all of the possibilities. I hope that's not bad etiquette.
The ports py26-gtk, py27-gtk, py26-gobject, and py27-gobject do not install their .pc files (pygtk-2.0.pc and pygobject-2.0.pc) in /opt/local/lib/pkgconfig. Instead, they leave the files in /opt/local/Library/Frameworks/Python.framework/Versions/2.*/lib/pkgconfig/. Shouldn't "port select --set python python2.7" copy the appropriate files to /opt/local/lib/pkgconfig?
The problem may be that py25-gtk and py25-gobject install their .pc files directly into /opt/local/lib/pkgconfig, which means that port select can't install the py26 or py27 files without trashing the py25 files.
Background: I develop and distribute software that uses pkg-config in its installation script, and works with python 2.5, 2.6, or 2.7. I therefore have py25-gtk, py26-gtk, and py27-gtk all installed. When I build the software locally it uses the python 2.5 version of pygtk-2.0.pc and pygobject-2.0.pc no matter which python version I'm currently using. This doesn't actually seem to cause a problem. However, the build fails for users who have never installed py25-gtk and py25-gobject, unless they explicitly set PKG_CONFIG_PATH. I don't think this should be necessary.
comment:10 follow-up: ↓ 11 Changed 13 months ago by ryandesign@…
- Cc ryandesign@… added; openmaintainer@…, nomaintainer@… removed