Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move to Python3 #227

Closed
junghans opened this issue Jul 6, 2018 · 11 comments · Fixed by #311
Closed

Move to Python3 #227

junghans opened this issue Jul 6, 2018 · 11 comments · Fixed by #311
Assignees

Comments

@junghans
Copy link
Member

junghans commented Jul 6, 2018

https://pythonclock.org/

@jkrajniak
Copy link
Member

Question regarding this task (rather decision for product owner); do we plan to still support Python 2.x if we migrate the code base to Python 3.x ?

@junghans
Copy link
Member Author

Fedora 30 doesn't include h5py (and other packages) for python2 anyhow, so we have to start moving on this!

@stuehn
Copy link
Member

stuehn commented Feb 28, 2019

Supporting python2 and python3 at the same time would in principle be possible. But due to limited manpower I would opt to drop python2 support completely. Since moving to python3 will render many existing espressopp scripts non-working we have to provide some kind of upgrade path for old user-scripts as well. ESPResSo++ 3.0 would be a nice version number for python3 support ;-)

@junghans
Copy link
Member Author

2to3 with a bunch to tweaks?

@jkrajniak
Copy link
Member

I suppose, on branch py3 I have already done the basic conversion with 2to3. It compiles, however there is an issue with abstract classes which are not compatible with py3. Also, I am not entirely sure that PMI itself can work with py3.

@junghans
Copy link
Member Author

@olenz do you have a PMI for python3?

@mcepl
Copy link

mcepl commented May 17, 2019

2to3 with a bunch to tweaks?

It is a way not enough: as a person who ported another large project (with C extensions; M2Crypto) to be dual py2k/py3k, I can tell you that 2to3 just doesn't even start to cover what’s the most complicated: dealing with different versions of strings.

Some documentation on the topc:

@junghans
Copy link
Member Author

Time is nearly up....

@junghans junghans pinned this issue Dec 20, 2019
@junghans
Copy link
Member Author

junghans commented Jan 6, 2020

And the time is up!

@junghans
Copy link
Member Author

@junghans
Copy link
Member Author

gentoo/gentoo@3f27a55

junghans referenced this issue in gentoo/gentoo Mar 20, 2020
Bug: https://bugs.gentoo.org/713568
Signed-off-by: Michał Górny <mgorny@gentoo.org>
@jkrajniak jkrajniak unpinned this issue Sep 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants