Bug#1070480: deap: FTBFS with Python 3.12 as default

2024-05-08 Thread Emmanuel Arias
Hi,

In version 1.4.1-1 lib2to3 is installed. But I will apply your
suggestion, to avoid this issue in the future.

Cheers!
-- 
cheers,
Emmanuel Arias

 ⢀⣴⠾⠻⢶⣦⠀
 ⣾⠁⢠⠒⠀⣿⡁  eam...@debian.org
 ⢿⡄⠘⠷⠚⠋⠀  OpenPGP: 13796755BBC72BB8ABE2AEB5 FA9DEC5DE11C63F1
 
 ⠈⠳⣄


signature.asc
Description: PGP signature


Bug#1070480: deap: FTBFS with Python 3.12 as default

2024-05-06 Thread Graham Inggs
Source: deap
Version: 1.3.1-5
Severity: important
Tags: ftbfs patch
User: debian-pyt...@lists.debian.org
Usertags: python3.12

Hi Maintainer

deap FTBFS with Python 3.12 as the default version (i.e. with
python3-defaults/3.12.1-1 from experimental).  I've copied what I hope
is the relevant part of the log below.

If deap really still needs lib2to3, then please add an explicit
build-dependency.  The following patch worked for me:

--- a/debian/control
+++ b/debian/control
@@ -7,6 +7,7 @@
  debhelper-compat (= 12),
  dh-python,
  python3-all-dev,
+ python3-lib2to3,
  python3-setuptools,
  python3-nose,
  python3-numpy,


Regards
Graham


I: pybuild pybuild:334: python3.12 -m lib2to3 --write --nobackups
--no-diffs /<>/.pybuild/cpython3_3.12_deap/build
/usr/bin/python3.12: No module named lib2to3