[Sugar-devel] Multiversion Packages of toolkit.
James Cameron
quozl at laptop.org
Tue Jul 9 03:19:15 EDT 2019
Only if it will work. Demonstrate that if you wish.
It is not much different already. It's not the problem; the problem
is the packaging directory; debian/rules and debian/control,
especially for anyone wishing to package 0.114 which won't have the
change.
As you will have seen;
1. sugar-toolkit-gtk3 calls AM_PATH_PYTHON for selected version
passed in from command line arguments, either --with-python2 or
--with-python3.
2. dbus-python calls AM_PATH_PYTHON without version. When --with
python3 is added, an AM_CONDITIONAL checks the version is not less
than '3'. debian/rules calls configure --with python2,python3
3. gyoto debian/rules calls configure --with python2,python3
autoconf support for multiple Python versions seems to have matured,
and "--with python2,python3" is a common way to configure in Debian
packaging (462 package samples).
On Tue, Jul 09, 2019 at 12:21:50PM +0530, ANIKET MATHUR wrote:
> Yes, Agreed. It would not be good if we configure the toolkit for only one
> version of Python.
> May we change our [1]configure.ac as gyoto and dbus-python and then try?
>
> Thanks!
>
> On Tue, Jul 9, 2019 at 12:18 PM ANIKET MATHUR <[2]amathur at ec.iitr.ac.in> wrote:
>
> Thanks for reminding.
>
> That's what I have got to track progress
> [3]https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=931666
>
> On Tue, Jul 9, 2019 at 12:15 PM James Cameron <[4]quozl at laptop.org> wrote:
>
> Debian's bug tracking system should send you a bug number by e-mail.
>
> Without that number, few others will be able to see progress or
> outcome.
>
> On Tue, Jul 09, 2019 at 08:40:17AM +0530, ANIKET MATHUR wrote:
> > Reported the problem as a bug to Debian using the reportbug program.
> >
> > Thanks!
> >
> > On Fri, Jul 5, 2019 at 8:22 PM ANIKET MATHUR <[1][5]
> amathur at ec.iitr.ac.in> wrote:
> >
> > Sent the email to [2][6]debian-devel at lists.debian.org as well.
> >
> > On Fri, Jul 5, 2019 at 4:13 PM ANIKET MATHUR <[3][7]
> amathur at ec.iitr.ac.in>
> > wrote:
> >
> > Sent an email to the Debian user mailing list [4]
> > [8]debian-user at lists.debian.org requesting for packaging
> v0.114.
> >
> > Packaging of Sugar-toolkit-gtk3 (sugar3) v0.114.
> >
> > [profile_ma]
> > ANIKET MATHUR <[5] 4:10 PM (2 minutes
> > [9]amathur at ec.iitr.ac.in> ago)
> [cleardot]
> >
> [cleardot]
> > to debian-user
> > [cleardot]
> > G'day,
> > Aniket Mathur this side, an active contributor of Sugarlabs
> as well as
> > a GSoC 19 participant. This mail is a small query regarding
> the
> > packaging of "sugar3" module.
> >
> > We currently have v0.112 packaged. In the latest version
> (0.114)
> > Sugarlabs have made the toolkit compatible with both Python
> and Python
> > 3. But we don't have Debian multi-version packages for the
> latest
> > version. This prevents us to scale our testing as well as
> limits the
> > number of testers.
> >
> > We don't know how to make multi-version local packages, that
> we can
> > distribute for testing.
> >
> > It would be good if we have Debian packages for v 0.114.
> >
> > Need Help.
> > Regards.
> >
> > On Tue, Jul 2, 2019 at 12:02 PM ANIKET MATHUR <[6][10]
> amathur at ec.iitr.ac.in
> > > wrote:
> >
> > Yes, I was asking about Debian packages. Sorry for
> incomplete
> > information.
> >
> > I read sources of some Debian packages:-
> > ~ They do use six for keeping multi-version
> compatibility.
> > ~ Instead of a [7][11]configure.ac, they use setup.py.
> > ~ In setup.py, they define entry-points as per the
> commands from
> > the command line specifying python-foo or python3-foo.
> >
> > I also did a github search for 'python [8][12]
> configure.ac' , looked
> > into a considerable amount of commits of different users
> and
> > organizations with the motive of "why don't we ask for
> help from
> > those who seems to be successful in doing it".
> >
> > From my research, I found out that the guys at "balabit"
> seems to
> > be able to do it.
> > I opened an [9]issue asking for help and clearance.
> >
> > The next step is to contact the Debian developers.
> >
> > Thanks!
> >
> > On Mon, Jul 1, 2019 at 5:21 AM James Cameron <[10][13]
> quozl at laptop.org>
> > wrote:
> >
> > You neglected to mention that you are asking about
> Debian and
> > Ubuntu
> > binary packages. Ubuntu packages come from Debian
> unchanged,
> > so your
> > question can be reduced to Debian packaging.
> >
> > We're the wrong people to ask. It's not a skill any
> of us at
> > Sugar
> > Labs have, otherwise we would have done it by now.
> >
> > The people who know how to do this are Debian and
> Ubuntu
> > package
> > developers.
> >
> > I've tried asking one of the Debian developers but
> they were
> > too busy
> > to give private assistance. Private assistance does
> not scale,
> > so the
> > return on investment is meagre.
> >
> > I suggest you try these things;
> >
> > 1. write a throw-away script to download all Debian
> packages
> > that
> > depend on Python 2 or Python 3, intersect a union of
> source
> > packages
> > that support both versions, and then list those
> packages that
> > contain
> > [11][14]configure.ac in the source package,
> >
> > 2. review those Debian and Ubuntu source packages
> that are
> > used to
> > generate binary packages for both Python 2 and Python
> 3, and
> > list the
> > package design patterns that you observe,
> >
> > 3. contact the Debian developers using their mailing
> lists, or
> > other
> > methods,
> >
> > 4. engage in the Debian project by reporting a bug
> that asks
> > for
> > packaging of a new version of the toolkit; currently
> 0.112 is
> > packaged.
> >
> > On Sat, Jun 29, 2019 at 02:32:33PM +0530, ANIKET
> MATHUR wrote:
> > > Hello everyone,
> > >
> > > I have been working on developing multi-version
> packages for
> > toolkit which can
> > > build for both Python and Python 3. I successfully
> build
> > packages for python,
> > > but not able to yet built one's having
> multi-version support.
> > I have been
> > > working on this for some time in the last two
> weeks, trying
> > to get something
> > > from the source code of existing tools that have
> these
> > packages, like 'pip' and
> > > a lot more.
> > >
> > > I need help and suggestions in this work. :-)
> > >
> > > Thanks!
> >
> > > _______________________________________________
> > > Sugar-devel mailing list
> > > [12][15]Sugar-devel at lists.sugarlabs.org
> > > [13][16]http://lists.sugarlabs.org/listinfo/
> sugar-devel
> >
> > --
> > James Cameron
> > [14][17]http://quozl.netrek.org/
> > _______________________________________________
> > Sugar-devel mailing list
> > [15][18]Sugar-devel at lists.sugarlabs.org
> > [16][19]http://lists.sugarlabs.org/listinfo/
> sugar-devel
> >
> > References:
> >
> > [1] mailto:[20]amathur at ec.iitr.ac.in
> > [2] mailto:[21]debian-devel at lists.debian.org
> > [3] mailto:[22]amathur at ec.iitr.ac.in
> > [4] mailto:[23]debian-user at lists.debian.org
> > [5] mailto:[24]amathur at ec.iitr.ac.in
> > [6] mailto:[25]amathur at ec.iitr.ac.in
> > [7] [26]http://configure.ac/
> > [8] [27]http://configure.ac/
> > [9] [28]https://github.com/balabit/syslog-ng/issues/2814
> > [10] mailto:[29]quozl at laptop.org
> > [11] [30]http://configure.ac/
> > [12] mailto:[31]Sugar-devel at lists.sugarlabs.org
> > [13] [32]http://lists.sugarlabs.org/listinfo/sugar-devel
> > [14] [33]http://quozl.netrek.org/
> > [15] mailto:[34]Sugar-devel at lists.sugarlabs.org
> > [16] [35]http://lists.sugarlabs.org/listinfo/sugar-devel
>
> --
> James Cameron
> [36]http://quozl.netrek.org/
> _______________________________________________
> Sugar-devel mailing list
> [37]Sugar-devel at lists.sugarlabs.org
> [38]http://lists.sugarlabs.org/listinfo/sugar-devel
>
> References:
>
> [1] http://configure.ac/
> [2] mailto:amathur at ec.iitr.ac.in
> [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=931666
> [4] mailto:quozl at laptop.org
> [5] mailto:amathur at ec.iitr.ac.in
> [6] mailto:debian-devel at lists.debian.org
> [7] mailto:amathur at ec.iitr.ac.in
> [8] mailto:debian-user at lists.debian.org
> [9] mailto:amathur at ec.iitr.ac.in
> [10] mailto:amathur at ec.iitr.ac.in
> [11] http://configure.ac/
> [12] http://configure.ac/
> [13] mailto:quozl at laptop.org
> [14] http://configure.ac/
> [15] mailto:Sugar-devel at lists.sugarlabs.org
> [16] http://lists.sugarlabs.org/listinfo/sugar-devel
> [17] http://quozl.netrek.org/
> [18] mailto:Sugar-devel at lists.sugarlabs.org
> [19] http://lists.sugarlabs.org/listinfo/sugar-devel
> [20] mailto:amathur at ec.iitr.ac.in
> [21] mailto:debian-devel at lists.debian.org
> [22] mailto:amathur at ec.iitr.ac.in
> [23] mailto:debian-user at lists.debian.org
> [24] mailto:amathur at ec.iitr.ac.in
> [25] mailto:amathur at ec.iitr.ac.in
> [26] http://configure.ac/
> [27] http://configure.ac/
> [28] https://github.com/balabit/syslog-ng/issues/2814
> [29] mailto:quozl at laptop.org
> [30] http://configure.ac/
> [31] mailto:Sugar-devel at lists.sugarlabs.org
> [32] http://lists.sugarlabs.org/listinfo/sugar-devel
> [33] http://quozl.netrek.org/
> [34] mailto:Sugar-devel at lists.sugarlabs.org
> [35] http://lists.sugarlabs.org/listinfo/sugar-devel
> [36] http://quozl.netrek.org/
> [37] mailto:Sugar-devel at lists.sugarlabs.org
> [38] http://lists.sugarlabs.org/listinfo/sugar-devel
--
James Cameron
http://quozl.netrek.org/
More information about the Sugar-devel
mailing list