Re: [blfs-support] https://docs.python.org/3.6/archives/python-3.6.2-docs-html.tar.bz2

2018-02-12 Thread Michael Shell
On Mon, 12 Feb 2018 16:13:03 -0500
Baho Utot  wrote:

> well I guess I am about to find out I am going with python 3 only so 
> I will see how far I get with that.


Do let us know how it goes. Python 3 comes with a script, 2to3, that can
convert Python 2 code to that of version 3:

https://docs.python.org/2/library/2to3.html

If it is just a case of fixing static python code, then this should
be all that is needed. However, it can't address those cases where
a python script is *dynamically* generated by/within another
application.


  Cheers,

  Mike Shell


-- 
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] https://docs.python.org/3.6/archives/python-3.6.2-docs-html.tar.bz2

2018-02-12 Thread Ken Moffat
On Mon, Feb 12, 2018 at 03:33:38PM -0600, Bruce Dubbs wrote:
> Baho Utot wrote:
> > 
> 
> Well, I think you will find that mesa requires python2.
> 
Looking at recent changes for something else, I was reminded that
git can use python2.  Maybe it can use python3, maybe python doesn't
add anything to Baho's git usage.

A quick search got results for python-git, which is/are python libs
(seem to be both 2 and 3 versions) so I gave up the search.

ĸen
-- 
Truth, in front of her huge walk-in wardrobe, selected black leather
boots with stiletto heels for such a barefaced truth.
 - Unseen Academicals
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] https://docs.python.org/3.6/archives/python-3.6.2-docs-html.tar.bz2

2018-02-12 Thread Bruce Dubbs

Baho Utot wrote:



On 2/12/2018 3:29 PM, Ken Moffat wrote:

On Mon, Feb 12, 2018 at 11:02:06AM -0500, Baho Utot wrote:


Are there many packages that still use python 2?



It depends on what you regard as "many", but certainly several
common desktop packages.

· Just about anything from mozilla.  In related packages, rustc
   appears to build with python3, but I reverted to 2 because I had a
   *lot* of inexplicable failures (either building rustc stopped, or
   building firefox exited my script before installing, after an
   apparently successful build, or one or other of these faled with
   a random error.

· gimp-help (and it needs libxml built with Python2), libxslt might
   also need that).  And for gimp itself, python scripts are probably
   still expecting 2.

· lots of random python scripts, e.g. in texlive.  Perhaps some of
   them will work with 3, but by the time I get to that stage
   "Python"  is installed as python2 (and upstream python recommends
   installing 3 as 3 not as plain Python).

· inkscape probably only works with 2 (upstream are still
   concentrating on moving to gtk3, and on getting everything moved
   to different hosting).

Conversely, current itstool requires python3, and lots of things are
moving to meson which also requires 3.

Having to make the choice between python 2 and python 3 for the Xorg 
build.

I am going to build KDE first and then I am going to try to port Lumina to
LFS.


Summary: if you want a reasonably-complete system, both versions of
python will be required for the foreseeable future (and the amount
of packages/scripts "in the wild" suggests 2 will still be needed
for some time after it has been abandonned upstream.

Some distros (e.g. Arch) prefer /usr/bin/python to be 3, but then
they have workarounds for the packages which still need 2.  I think
that fedora (a main driver for trying to get rid of the old python2
stuff before 2 becomes unmaintained) went back to installing 2 for
python, and using /usr/bin/python3 as their preferred version.

For stuff using Qt, I have no real idea what needs either version of
python, but I will be surprised if nothing in kde needs python2.

ĸen



well I guess I am about to find out I am going with python 3 only so I 
will see how far I get with that.


Well, I think you will find that mesa requires python2.

  -- Bruce


--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] https://docs.python.org/3.6/archives/python-3.6.2-docs-html.tar.bz2

2018-02-12 Thread Baho Utot



On 2/12/2018 3:29 PM, Ken Moffat wrote:

On Mon, Feb 12, 2018 at 11:02:06AM -0500, Baho Utot wrote:


Are there many packages that still use python 2?



It depends on what you regard as "many", but certainly several
common desktop packages.

· Just about anything from mozilla.  In related packages, rustc
   appears to build with python3, but I reverted to 2 because I had a
   *lot* of inexplicable failures (either building rustc stopped, or
   building firefox exited my script before installing, after an
   apparently successful build, or one or other of these faled with
   a random error.

· gimp-help (and it needs libxml built with Python2), libxslt might
   also need that).  And for gimp itself, python scripts are probably
   still expecting 2.

· lots of random python scripts, e.g. in texlive.  Perhaps some of
   them will work with 3, but by the time I get to that stage
   "Python"  is installed as python2 (and upstream python recommends
   installing 3 as 3 not as plain Python).

· inkscape probably only works with 2 (upstream are still
   concentrating on moving to gtk3, and on getting everything moved
   to different hosting).

Conversely, current itstool requires python3, and lots of things are
moving to meson which also requires 3.


Having to make the choice between python 2 and python 3 for the Xorg build.
I am going to build KDE first and then I am going to try to port Lumina to
LFS.


Summary: if you want a reasonably-complete system, both versions of
python will be required for the foreseeable future (and the amount
of packages/scripts "in the wild" suggests 2 will still be needed
for some time after it has been abandonned upstream.

Some distros (e.g. Arch) prefer /usr/bin/python to be 3, but then
they have workarounds for the packages which still need 2.  I think
that fedora (a main driver for trying to get rid of the old python2
stuff before 2 becomes unmaintained) went back to installing 2 for
python, and using /usr/bin/python3 as their preferred version.

For stuff using Qt, I have no real idea what needs either version of
python, but I will be surprised if nothing in kde needs python2.

ĸen



well I guess I am about to find out I am going with python 3 only so 
I will see how far I get with that.

--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] https://docs.python.org/3.6/archives/python-3.6.2-docs-html.tar.bz2

2018-02-12 Thread Ken Moffat
On Mon, Feb 12, 2018 at 11:02:06AM -0500, Baho Utot wrote:
> 
> Are there many packages that still use python 2?
> 

It depends on what you regard as "many", but certainly several
common desktop packages.

· Just about anything from mozilla.  In related packages, rustc
  appears to build with python3, but I reverted to 2 because I had a
  *lot* of inexplicable failures (either building rustc stopped, or
  building firefox exited my script before installing, after an
  apparently successful build, or one or other of these faled with
  a random error.

· gimp-help (and it needs libxml built with Python2), libxslt might
  also need that).  And for gimp itself, python scripts are probably
  still expecting 2.

· lots of random python scripts, e.g. in texlive.  Perhaps some of
  them will work with 3, but by the time I get to that stage
  "Python"  is installed as python2 (and upstream python recommends
  installing 3 as 3 not as plain Python).

· inkscape probably only works with 2 (upstream are still
  concentrating on moving to gtk3, and on getting everything moved
  to different hosting).

Conversely, current itstool requires python3, and lots of things are
moving to meson which also requires 3.

> Having to make the choice between python 2 and python 3 for the Xorg build.
> I am going to build KDE first and then I am going to try to port Lumina to
> LFS.

Summary: if you want a reasonably-complete system, both versions of
python will be required for the foreseeable future (and the amount
of packages/scripts "in the wild" suggests 2 will still be needed
for some time after it has been abandonned upstream.

Some distros (e.g. Arch) prefer /usr/bin/python to be 3, but then
they have workarounds for the packages which still need 2.  I think
that fedora (a main driver for trying to get rid of the old python2
stuff before 2 becomes unmaintained) went back to installing 2 for
python, and using /usr/bin/python3 as their preferred version.

For stuff using Qt, I have no real idea what needs either version of
python, but I will be surprised if nothing in kde needs python2.

ĸen
-- 
Truth, in front of her huge walk-in wardrobe, selected black leather
boots with stiletto heels for such a barefaced truth.
 - Unseen Academicals
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] https://docs.python.org/3.6/archives/python-3.6.2-docs-html.tar.bz2

2018-02-12 Thread Baho Utot



On 02/12/18 10:02, Bruce Dubbs wrote:

Baho Utot wrote:

BLFS-8.1 Python3

This link returns 40

http://www.linuxfromscratch.org/blfs/view/stable/introduction/packages.html

Also, Pythoon3 is now in LFS.  Current version is 3.6.4.  The next 
version of LFS/BLFS will be released in about 3 weeks, but the 
development version is very close to the future 8.2.


   -- Bruce


When 8.2 comes out I will most likely rebuild my current project to 8.2. 
 For now I am using 8.1 and I want to finish that project so I can move 
from FreeBSD back to linux.


Are there many packages that still use python 2?

Having to make the choice between python 2 and python 3 for the Xorg 
build.  I am going to build KDE first and then I am going to try to port 
Lumina to LFS.

--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-support] https://docs.python.org/3.6/archives/python-3.6.2-docs-html.tar.bz2

2018-02-12 Thread Bruce Dubbs

Baho Utot wrote:

BLFS-8.1 Python3

This link returns 40

http://www.linuxfromscratch.org/blfs/view/stable/introduction/packages.html

Also, Pythoon3 is now in LFS.  Current version is 3.6.4.  The next version 
of LFS/BLFS will be released in about 3 weeks, but the development version 
is very close to the future 8.2.


  -- Bruce
--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page