Closed bje- closed 2 years ago
this maybe a large work and if you only want to installs the latest deap in python 3.10, you can refer #610
I can't see why it should be a lot of hard work. Currently, DEAP relies on lib2to3
to do the translation and everything works fine. I would suggest that one run of 2to3 --write
over the whole source tree would do the job.
@bje- The problem is that the source it produces is very ugly. Plus there is a new branch that would use a lot of new Python features almost ready but the documentation, which I think is the string point of deap, would be mostly obsolete and need a major rework.
But you are right, this is long overdue...
@bje- The problem is that the source it produces is very ugly.
Really? I ran 2to3
and it makes fairly minimal changes to make the code Python 3 compliant. See https://github.com/DEAP/deap/pull/659
I have a fork that has been processed by 2to3
. It is working fine and my package is having to use this fork for the time being so that DEAP can run on Python 3.10.
Fixed by #625
In Python 3.10,
lib2to3
was removed and so was theuse_2to3
option insetuptools
. The fix is to port the whole codebase to Python 3 and removeuse_2to3
fromsetup.py
. For more information, see: https://github.com/pypa/setuptools/issues/2086This is a major problem.