Mailinglist Archive: opensuse-packaging (267 mails)
| < Previous | Next > |
Re: [opensuse-packaging] Python 2 and Python 3 compatibility packaging
- From: Claudio Freire <klaussfreire@xxxxxxxxx>
- Date: Mon, 5 Dec 2011 18:50:00 -0300
- Message-id: <CAGTBQpZ=a3n_gg9C_QZSWZmYuZqe7g6g6-H0xo+VAZAuwQLg2w@mail.gmail.com>
On Mon, Dec 5, 2011 at 6:40 PM, todd rme <toddrme2178@xxxxxxxxx> wrote:
Ok, why do you think the following would not work (regardless of prettiness):
%install
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
mv %{buildroot}%{_bindir}/cxfreeze %{buildroot}%{_bindir}/cxfreeze3
python2 setup.py install --prefix=%{_prefix} --root=%{buildroot}
%files -n python3-%{mod_name}
%defattr(-,root,root,-)
%doc LICENSE.txt README.txt HISTORY.txt doc/%{mod_name}.html
%{_bindir}/cxfreeze3
...
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-packaging+owner@xxxxxxxxxxxx
I am working around the problem right now by making the packages
conflict, but if I didn't it would fail for factory and is overwriting
files for everything else.
Ok, why do you think the following would not work (regardless of prettiness):
%install
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
mv %{buildroot}%{_bindir}/cxfreeze %{buildroot}%{_bindir}/cxfreeze3
python2 setup.py install --prefix=%{_prefix} --root=%{buildroot}
%files -n python3-%{mod_name}
%defattr(-,root,root,-)
%doc LICENSE.txt README.txt HISTORY.txt doc/%{mod_name}.html
%{_bindir}/cxfreeze3
...
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-packaging+owner@xxxxxxxxxxxx
| < Previous | Next > |