Hi, as per the "Python 3 as Default" [1] change for F22, I'd like to ask you to use Python 3 instead of Python 2 in caribou. I think that the correct way to do this for caribou is providing python3-caribou subpackage with Python 3 bindings and making all the other subpackages depend on it. I'd suggest leaving the Python 2 subpackage present, as other people/packages may be using it and they may want to use both to test that their software switches to Python 3 the right way. Thanks! [1] http://fedoraproject.org/wiki/Changes/Python_3_as_Default
Hi, can you please do this before the deadline for Changes for F22? Otherwise we'd probably have to postpone even https://fedoraproject.org/wiki/Changes/Python_3_Migration_Improvements. Thanks.
I am trying my best but looks like its not that easy the way we generally copy as py3dir and compile and install it as python3 subpackage. Here its a Makefile.am and pkgpythondir variable to decide python version. I am checking on this today more.
(In reply to Parag from comment #2) > I am trying my best but looks like its not that easy the way we generally > copy as py3dir and compile and install it as python3 subpackage. Here its a > Makefile.am and pkgpythondir variable to decide python version. I am > checking on this today more. Thanks. If you need help with this, feel free to say so and I'll help.
I think I will need your help.
This should work: %build %configure --disable-static make V=1 %{?_smp_mflags} %install rm -fr %{buildroot} make install DESTDIR=%{buildroot} INSTALL="install -p" %if 0%{?with_python3} make clean %configure --disable-static PYTHON=python3 make install DESTDIR=%{buildroot} INSTALL="install -p" %endif # with_python3
libxml2 is using this^^ approach http://pkgs.fedoraproject.org/cgit/libxml2.git/commit/libxml2.spec?h=f22
Little fix (for further reference) posted link points to latest commit to f22 branch of libxml2 (which happens to be the correct one atm), this one points to commit id. http://pkgs.fedoraproject.org/cgit/libxml2.git/commit/?h=f22&id=2b37fdf7bdb4d5f2c2f067ab723c31e46fa4049f
Robert, Thanks I tried that way but it failed to build python3 subpackage. Error for configure is configure:17519: WARNING: unrecognized options: --with-python Here is my current modified rawhide package (not committed) SPEC URL: https://pnemade.fedorapeople.org/fedora-work/SPECS/caribou.spec SRPM URL:https://pnemade.fedorapeople.org/fedora-work/SRPMS/caribou-0.4.17-2.fc23.src.rpm Scratch failed build -> http://koji.fedoraproject.org/koji/taskinfo?taskID=9004572
Hi Parag, your config doesn't have --with-python option, check out my comment #5 again: %configure --disable-static PYTHON=python3 you pass python3 as an environment variable.
Awesome!! Thank you Robert for your brief help. Thanks Bohuslav for offering me the help. I need to use 2to3 and add few BuildRequires: to get the python3 build. Built this package in rawhide and f22 now.