[Buildroot] [PATCH] package/python-markdown: fix Python version dependency

Fabrice Fontaine fontaine.fabrice at gmail.com
Wed Mar 11 09:28:50 UTC 2020


Hi Yegor,

Le mer. 11 mars 2020 à 10:14, Yegor Yefremov
<yegorslists at googlemail.com> a écrit :
>
> Hi all,
>
> On Tue, Mar 10, 2020 at 7:53 PM Asaf Kahlon <asafka7 at gmail.com> wrote:
> >
> > On Tue, Mar 10, 2020 at 1:41 PM <yegorslists at googlemail.com> wrote:
> > >
> > > From: Yegor Yefremov <yegorslists at googlemail.com>
> > >
> > > The latest version has dropped Python 2 support.
> > >
> > > Fixes:
> > > http://autobuild.buildroot.net/results/6d1e796f6658accb3eafef265935db5e464638fe
> > >
> > > Signed-off-by: Yegor Yefremov <yegorslists at googlemail.com>
> > > ---
> > >  package/python-markdown/Config.in | 4 ++--
> > >  1 file changed, 2 insertions(+), 2 deletions(-)
> > >
> > > diff --git a/package/python-markdown/Config.in b/package/python-markdown/Config.in
> > > index 6706684142..454c2729bd 100644
> > > --- a/package/python-markdown/Config.in
> > > +++ b/package/python-markdown/Config.in
> > > @@ -1,8 +1,8 @@
> > >  config BR2_PACKAGE_PYTHON_MARKDOWN
> > >         bool "python-markdown"
> > > +       depends on BR2_PACKAGE_PYTHON3
> > >         # runtime dependency on Python's xml module
> > > -       select BR2_PACKAGE_PYTHON_PYEXPAT if BR2_PACKAGE_PYTHON
> > > -       select BR2_PACKAGE_PYTHON3_PYEXPAT if BR2_PACKAGE_PYTHON3
> > > +       select BR2_PACKAGE_PYTHON3_PYEXPAT
> > >         help
> > >           This is a Python implementation of John Gruber's Markdown
> > >
> > > --
> > > 2.17.0
> > >
> >
> > Reviewed-by: Asaf Kahlon <asafka7 at gmail.com>
>
> The issue is more complicated than I thought at the beginning.
>
> First of all, python-cheetah package that depends on python-markdown
> was abandoned. The new fork is Cheetah3 [1]. What should we do? Just
> replace the download location? Though the project is Py2/Py3
> compatible because of python-markdown we would restrict it to Py3
> only?
I sent a python-cheetah3 package nearly one year ago and Titouan sent
a v2 6 months ago: https://patchwork.ozlabs.org/patch/1184747.
>
> mongodb and gr-osmosdr both depend on python-cheetah. So they must be
> touched as well. Fabrice and Gwenhael could you take care of this?
Again, a patch to bump mongodb and switch dependency to cheetah3 is
waiting in patchwork:
https://patchwork.ozlabs.org/project/buildroot/list/?series=138894
Thomas wanted your feedback on the third patch of this serie about
making python3-pyyaml and python3-psutil packages.
>
> Because of this dependencies hell, a CI test for at least mongodb
> would be very welcome.
>
> [1] https://pypi.org/project/Cheetah3/
>
> Thanks.
>
> Yegor
Best Regards,

Fabrice


More information about the buildroot mailing list