Re: Backport of Python 3.6 for Debian Stretch?

2018-04-25 Thread Nguyễn Hồng Quân
Thank you, Andrey and Jeremy. I didn't know these sites. I will try again. On Wed, Apr 25, 2018 at 9:09 PM, Jeremy Stanley wrote: > On 2018-04-25 10:06:47 +0700 (+0700), Nguyễn Hồng Quân wrote: > [...] > > I spent much time to research on it, so that I can tell what > >

Re: Backport of Python 3.6 for Debian Stretch?

2018-04-25 Thread Jeremy Stanley
On 2018-04-25 10:06:47 +0700 (+0700), Nguyễn Hồng Quân wrote: [...] > I spent much time to research on it, so that I can tell what > difference between 3.6.1 and 3.6.4 packaging. [...] http://metadata.ftp-master.debian.org/changelogs/main/p/python3.6/python3.6_3.6.5-3_changelog

Re: Backport of Python 3.6 for Debian Stretch?

2018-04-24 Thread Andrey Rahmatullin
On Wed, Apr 25, 2018 at 10:00:51AM +0700, Nguyễn Hồng Quân wrote: > Do you mean to use " > ​​python3.6_3.6.1-1.debian.tar.xz" (of 3.6.1) and change its number to > "python3.6_3.6.4-4.debian.tar.xz" (of 3.6.4) and change its changelog > content? No, I meant to use the debian/ directory from that

Re: Backport of Python 3.6 for Debian Stretch?

2018-04-24 Thread Nguyễn Hồng Quân
On Wed, Apr 25, 2018 at 7:43 AM, Brian May wrote: > Nguyễn Hồng Quân writes: > > If using pip to install packages is fine (which can result in compiling > from source although increasing use of wheels helps), then I personally > fail to see the problem

Re: Backport of Python 3.6 for Debian Stretch?

2018-04-24 Thread Nguyễn Hồng Quân
On Wed, Apr 25, 2018 at 3:16 AM, Matthew Woodcraft wrote: > Nguyễn Hồng Quân wrote: > > You didn't say what dependency problem you're seeing. Is it python3.6 > depending on python3-distutils? > ​Yes, and when I tried to backport python3-disutils, it depends on python

Re: Backport of Python 3.6 for Debian Stretch?

2018-04-24 Thread Nguyễn Hồng Quân
On Wed, Apr 25, 2018 at 12:58 AM, Jeremy Stanley wrote: > On 2018-04-24 23:42:30 +0700 (+0700), Nguyễn Hồng Quân wrote: > [...] > I completely understand the reason for using packages, but Debian is > a volunteer project which does not exist solely to solve your > problems so

Re: Backport of Python 3.6 for Debian Stretch?

2018-04-24 Thread Nguyễn Hồng Quân
On Wed, Apr 25, 2018 at 12:21 AM, Andrey Rahmatullin wrote: > > No, you are talking about the 3.6.4 packaging files while I'm suggesting > to not use them. > Do you mean to use " ​​python3.6_3.6.1-1.debian.tar.xz" (of 3.6.1) and change its number to

Re: Backport of Python 3.6 for Debian Stretch?

2018-04-24 Thread Brian May
Nguyễn Hồng Quân writes: > ​Sorry? As I told, just leave the python3-xxx packages to be used with > python3.5 (default Python3 of Debian 9). > I don't need those to be used with Python3.6. > For whatever I need to use with Python3.6, I just install via "pip3.6".​ > For

Re: Backport of Python 3.6 for Debian Stretch?

2018-04-24 Thread Matthew Woodcraft
Ludovic Gasc wrote: 2018-04-24 22:16 GMT+02:00 Matthew Woodcraft : You didn't say what dependency problem you're seeing. Is it python3.6 depending on python3-distutils? If it is, you might try building the 3.6.5-3 source package from sid rather than the 3.6.5~rc1-1

Re: Backport of Python 3.6 for Debian Stretch?

2018-04-24 Thread Ludovic Gasc
2018-04-24 22:16 GMT+02:00 Matthew Woodcraft : > Nguyễn Hồng Quân wrote: > >> I'm using Debian 9 on an ARM board (BeagleBone), for our IoT project. >> We write an application which needs Python 3.6. But we are struggling with >> packaging Python 3.6 as deb packages for

Re: Backport of Python 3.6 for Debian Stretch?

2018-04-24 Thread Matthew Woodcraft
Nguyễn Hồng Quân wrote: I'm using Debian 9 on an ARM board (BeagleBone), for our IoT project. We write an application which needs Python 3.6. But we are struggling with packaging Python 3.6 as deb packages for Debian 9. We found the dsc file for Debian buster. But there is difference in

Re: Backport of Python 3.6 for Debian Stretch?

2018-04-24 Thread Jeremy Stanley
On 2018-04-24 23:42:30 +0700 (+0700), Nguyễn Hồng Quân wrote: [...] > Then why Debian project invent *.deb file, not just pack binary as > tar file and let user to untar it? I favor building deb file, > rather than copying "make altinstall" result, because of the same > reason. I completely

Re: Backport of Python 3.6 for Debian Stretch?

2018-04-24 Thread Andrey Rahmatullin
On Wed, Apr 25, 2018 at 12:11:03AM +0700, Nguyễn Hồng Quân wrote: > On Wed, Apr 25, 2018 at 12:05 AM, Andrey Rahmatullin > wrote: > > > > > How is this related to my suggestion? > > > > > ​Your suggestion is: > > ​" > ​ > ​Adapt it from the 3.6.1 one. Replacing the tarball

Re: Backport of Python 3.6 for Debian Stretch?

2018-04-24 Thread Nguyễn Hồng Quân
On Wed, Apr 25, 2018 at 12:05 AM, Andrey Rahmatullin wrote: > > How is this related to my suggestion? > ​Your suggestion is: ​" ​ ​Adapt it from the 3.6.1 one. Replacing the tarball and changing the version in the changelog" ​And I'm proving that it is not enough.​ There

Re: Backport of Python 3.6 for Debian Stretch?

2018-04-24 Thread Andrey Rahmatullin
On Wed, Apr 25, 2018 at 12:01:45AM +0700, Nguyễn Hồng Quân wrote: > On Tue, Apr 24, 2018 at 11:45 PM, Andrey Rahmatullin wrote: > > > > > Adapt it from the 3.6.1 one? > > > > > > > > > > ​Excuse me. What do​ ​you mean by "adapt"? > > Replacing the tarball and changing the version

Re: Backport of Python 3.6 for Debian Stretch?

2018-04-24 Thread Nguyễn Hồng Quân
On Tue, Apr 24, 2018 at 11:45 PM, Andrey Rahmatullin wrote: > > > Adapt it from the 3.6.1 one? > > > > > > > ​Excuse me. What do​ ​you mean by "adapt"? > Replacing the tarball and changing the version in the changelog, for a > start. > As I told: "But there is difference in

Re: Backport of Python 3.6 for Debian Stretch?

2018-04-24 Thread Nguyễn Hồng Quân
On Tue, Apr 24, 2018 at 10:19 PM, Jeremy Stanley wrote: > On 2018-04-24 22:07:03 +0700 (+0700), Nguyễn Hồng Quân wrote: > [...] > > I don't need to "not disturb" system. > > If have to use conda, pyenv, I would rather build Python3.6 from source > > tarball, not to bring more

Re: Backport of Python 3.6 for Debian Stretch?

2018-04-24 Thread Jeremy Stanley
On 2018-04-24 22:07:03 +0700 (+0700), Nguyễn Hồng Quân wrote: [...] > I don't need to "not disturb" system. > If have to use conda, pyenv, I would rather build Python3.6 from source > tarball, not to bring more overhead (conda body, pyenv body), and > "Python3.6 from source" still not disturb my

Re: Backport of Python 3.6 for Debian Stretch?

2018-04-24 Thread Andrey Rahmatullin
On Tue, Apr 24, 2018 at 10:07:03PM +0700, Nguyễn Hồng Quân wrote: > ​So, I try to build Python as deb and use apt to install to my board. I was > successful to do so with Python 3.6.1, using the .dsc file found on Debian > buster repo. But since Python 3.6.4, the build script has changed >

Re: Backport of Python 3.6 for Debian Stretch?

2018-04-24 Thread Nguyễn Hồng Quân
On Tue, Apr 24, 2018 at 9:45 PM, Ludovic Gasc wrote: > Hi, > > You can use pythonz, conda or pyenv to install the version of Python you > want without to disturb your system. > ​I don't need to "not disturb" system. If have to use conda, pyenv, I would rather build Python3.6

Re: Backport of Python 3.6 for Debian Stretch?

2018-04-24 Thread Ludovic Gasc
Hi, You can use pythonz, conda or pyenv to install the version of Python you want without to disturb your system. Regards. -- Ludovic Gasc (GMLudo) 2018-04-24 8:58 GMT+02:00 Nguyễn Hồng Quân : > I'm using Debian 9 on an ARM board (BeagleBone), for our IoT project. > We

Re: Backport of Python 3.6 for Debian Stretch?

2018-04-24 Thread Nguyễn Hồng Quân
On Tue, Apr 24, 2018 at 5:41 PM, Andrey Rahmatullin wrote: > On Tue, Apr 24, 2018 at 05:27:08PM +0700, Nguyễn Hồng Quân wrote: > > > It's not enough to backport the interpreter, all binary modules will > need > > > to be recompiled too. > > ​Why?​ > To be able to be imported in

Re: Backport of Python 3.6 for Debian Stretch?

2018-04-24 Thread Andrey Rahmatullin
On Tue, Apr 24, 2018 at 05:27:08PM +0700, Nguyễn Hồng Quân wrote: > > It's not enough to backport the interpreter, all binary modules will need > > to be recompiled too. > > > > ​Why?​ To be able to be imported in Python3.6. -- WBR, wRAR signature.asc Description: PGP signature

Re: Backport of Python 3.6 for Debian Stretch?

2018-04-24 Thread Nguyễn Hồng Quân
On Tue, Apr 24, 2018 at 3:12 PM, W. Martin Borgert wrote: > This is interesting! Did you also compare Python 2.7 with 3.5/3.6? > > ​No, I'm not interested in Python 2. Every my project is started with Python 3.​ -- Quân Nguyễn Hồng Quân ☎ 093 9030 338 Facebook:

Re: Backport of Python 3.6 for Debian Stretch?

2018-04-24 Thread Nguyễn Hồng Quân
On Tue, Apr 24, 2018 at 3:05 PM, Andrey Rahmatullin wrote: > It's not enough to backport the interpreter, all binary modules will need > to be recompiled too. > ​Why?​ Just leave Python3.6 exist in parallel to Python3.5. Don't touch Python3.5 package folder. Don't convert

Re: Backport of Python 3.6 for Debian Stretch?

2018-04-24 Thread W. Martin Borgert
Quoting Nguyễn Hồng Quân : Python 3.6 has much better performance than Python 3.5, especially on embedded computer (I tried and compared). This is interesting! Did you also compare Python 2.7 with 3.5/3.6? I'm looking for more reasons to finally port my embedded

Re: Backport of Python 3.6 for Debian Stretch?

2018-04-24 Thread Andrey Rahmatullin
On Tue, Apr 24, 2018 at 01:58:23PM +0700, Nguyễn Hồng Quân wrote: > Could you please provide an official packaging script for Python 3.6 and > Debian 9? It's not enough to backport the interpreter, all binary modules will need to be recompiled too. -- WBR, wRAR signature.asc Description: PGP

Re: Backport of Python 3.6 for Debian Stretch?

2018-04-24 Thread W. Martin Borgert
Quoting Nguyễn Hồng Quân : We write an application which needs Python 3.6. Could you elaborate, why you need Python 3.6 instead of 3.5? Maybe there is a way to make your application work with 3.5? E.g. by backporting specific modules?

Re: Backport of Python 3.6 for Debian Stretch?

2018-04-24 Thread Nguyễn Hồng Quân
Python 3.6 has much better performance than Python 3.5, especially on embedded computer (I tried and compared). I also like new Python 3.6 features: f-string, improved type hint (Python 3.5 has it, but Python 3.6 improved). On Tue, Apr 24, 2018 at 2:44 PM, W. Martin Borgert

Backport of Python 3.6 for Debian Stretch?

2018-04-24 Thread Nguyễn Hồng Quân
I'm using Debian 9 on an ARM board (BeagleBone), for our IoT project. We write an application which needs Python 3.6. But we are struggling with packaging Python 3.6 as deb packages for Debian 9. We found the dsc file for Debian buster. But there is difference in dependency hierarchy between