Skip to content

Commit

Permalink
Drop 2to3
Browse files Browse the repository at this point in the history
python2 is dead, and python3.11 dropped support for 2to3, so its use in setup.py
creates problems during installation. Let's just rewrite the code (using 2to3)
to python3.
  • Loading branch information
keszybz committed Feb 27, 2022
1 parent 4a974d6 commit 18d2b55
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ DEAP build status is available on Travis-CI https://travis-ci.org/DEAP/deap.
## Requirements
The most basic features of DEAP requires Python2.6. In order to combine the toolbox and the multiprocessing module Python2.7 is needed for its support to pickle partial functions. CMA-ES requires Numpy, and we recommend matplotlib for visualization of results as it is fully compatible with DEAP's API.

Since version 0.8, DEAP is compatible out of the box with Python 3. The installation procedure automatically translates the source to Python 3 with 2to3.
Since version 0.8, DEAP is compatible out of the box with Python 3.

## Example

Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ def run_setup(build_ext):
ext_modules=extra_modules,
cmdclass={"build_ext": ve_build_ext},
install_requires=['numpy'],
use_2to3=True
)

try:
Expand Down

0 comments on commit 18d2b55

Please sign in to comment.