← Back to team overview

yade-dev team mailing list archive

Re: Python 2 removal

 

Thanks for firsthand information Václav, It should be very helpful.
I was not sure something like "str/bytes distinction" would be involved, finally it is...
Bruno


On 06/05/2018 09:06 PM, Václav Šmilauer wrote:
Hi guys, for inspiration, you can check out commit
https://github.com/woodem/woo/commit/e25623325d8fd0a5dcc9f94a7b78249e36bff449 and quite a few afterwards (between Oct 18 2015 and Nov 10 2015, some of them). The hardest part definitely was str/bytes distinction, plus testing. The more tests you have, the easier to spot all affected places. Woo currently supports both versions, that is not so hard (*), but if you can go with py3k only, it is definitely easier. Good luck, Vaclav

(*) running "egrep 'future.utils.PY3|PY3K|version_info' **/*.py |wc " reports 45 places where python major version is tested (and code branches based on that). Plus imports from __future__, future and past.

Hello Jerome,

thank you for you answer. I am not sure, how difficult could it be to
switch the Yade or to add a support of Python3. The syntax of python
2 and 3 is not so different. One can find a lot of such migration tutorials.

It would probably be more problematic two support both versions simultaneously
as to make a complete migration.

Best regards

Anton


2018-05-31 13:10 GMT+02:00 Jerome Duriez <jerome.duriez@xxxxxxxxx>:
Hi Anton,

I'd consider this idea, ie I have some time and motivation, and no
knowledge.. :-)
Moreover / instead possible personal efforts, I could also look into the possibility proposing a dedicated internship to some IT (with an emphasis on
the "I") student.

Since I do not have a precise perception of the task, what is your opinion
regarding the internship option ?
Would the migration be indeed feasible in this framework ? For which
internship duration (1 month, 5 month, .. ?) and which education level
(license/undergraduate, master/graduate, .. ?)

We can discuss by direct emails if appropriate,


Best,

Jérôme

------
Chargé de Recherche / Research Associate
Irstea, RECOVER
3275 route de Cezanne – CS 40061 13182 Aix-en-Provence Cedex 5 FRANCE
+33 (0)4 42 66 99 21

On 07/05/2018 20:09, Anton Gladky wrote:

Dear Yade developers,

Python 2 reaches end of life and will probably removed
soon from Debian [1] and then most probably from Ubuntu-Mint
etc archives too. It is only the question of time. I think it will unlikely
happen till the Buster release (mid 2019), but it will probably
happen at the end of 2019.

Anyway, the migration of Yade onto Python 3 of Yade is really
necessary to guarantee the further project life in modern distributions.

It would be good if somebody finds some resources (time, man
power) and start this work. It should not be too difficult, but
requires time, knowledge and motivation to do this migration.

It will be necessary to guarantee the smooth migration period not
to break the other's work.

I will not do it due to extreme lack of free time, but can do some
kind of review/advice/etc.

[1] https://lists.debian.org/debian-devel/2018/04/msg00508.html

Best regards

Anton

_______________________________________________
Mailing list: https://launchpad.net/~yade-dev
Post to     : yade-dev@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~yade-dev
More help   : https://help.launchpad.net/ListHelp



_______________________________________________
Mailing list: https://launchpad.net/~yade-dev
Post to     : yade-dev@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~yade-dev
More help   : https://help.launchpad.net/ListHelp

_______________________________________________
Mailing list: https://launchpad.net/~yade-dev
Post to     : yade-dev@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~yade-dev
More help   : https://help.launchpad.net/ListHelp

_______________________________________________
Mailing list: https://launchpad.net/~yade-dev
Post to     : yade-dev@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~yade-dev
More help   : https://help.launchpad.net/ListHelp




References