[opensuse-kde] Enabling PyKDE4 for python 3
Hello, Given the number of packages that provides a python3 version is increasing, in my opinion it would be nice to provide for 12.3 a package that builds PyKDE4 for Python 3. The underlying bindings should be already Py3-compatible, and Python 3 versions of their dependencies are already available in KDE:Qt. So without much ado, some questions: - did someone try this already? - if so, would they be wiling to submit their work to KDF? - Has anyone got any experience in packaging Python projects that offer Py2 and Py3 versions a the same time? I can try making a package, probably using a different specfile for the Python 3 version, unless as I said above said package is already around. -- Luca Beltrame - KDE Forums team KDE Science supporter GPG key ID: 6E1A4E79
In data lunedì 01 ottobre 2012 14:27:12, Luca Beltrame ha scritto:
I can try making a package, probably using a different specfile for the Python 3 version, unless as I said above said package is already around.
I'm very close to getting this, however I need to change the default linker flags as they treat Python stuff as undefined while it's not. Where to I adjust this? -- Luca Beltrame - KDE Forums team KDE Science supporter GPG key ID: 6E1A4E79
In data martedì 02 ottobre 2012 20:49:45, Luca Beltrame ha scritto:
I'm very close to getting this, however I need to change the default linker flags as they treat Python stuff as undefined while it's not. Where to I adjust this?
I cannot build this unless I can override the linker flags. Currently I have this in my specfile: %build export LDFLAGS=-Wl,--as-needed %cmake_kde4 -d build -- -DPYTHON_EXECUTABLE=/usr/bin/python3 -DPYTHON_LIBRARY=%{_libdir}/libpython3.so Hower --no-undefined keeps on being added to the default link flags, and that will *always* mean the compilation will fail since it will treat Python 3 symbols as missing even if they aren't (there was a bug report on Debian filed against python-qt4). Any help? I really don't know what to do here. -- Luca Beltrame - KDE Forums team KDE Science supporter GPG key ID: 6E1A4E79
In data mercoledì 3 ottobre 2012 07:37:37, Luca Beltrame ha scritto:
Python 3 symbols as missing even if they aren't (there was a bug report on Debian filed against python-qt4).
Turns out I was linking against the wrong library... Sorry for the noise. -- Luca Beltrame - KDE Forums team KDE Science supporter GPG key ID: 6E1A4E79
An update on this: - got it to build, I need to patch cmake files in kdelibs, however, because Python 3.2 changed the way py files are byte-compiled: I opened a review request, let's see what the KDE build system guys say - (up for discussion): Both python-kde4 and python3-kde4 have SIP files to install, but those are version agnostic (they're used when building), so the current packaging would likely need to be split somehow, to have a version- independent package keeping those. What would be the best way to proceed? -- Luca Beltrame - KDE Forums team KDE Science supporter GPG key ID: 6E1A4E79
participants (1)
-
Luca Beltrame