The problem is that DistUpgrade/dist-upgrade.py still uses python2.4 (#!/usr/bin/python2.4). When changed to #!/usr/bin/python, the package builds correctly without python2.4 dependency.
The problem is that DistUpgrade/ dist-upgrade. py still uses python2.4 (#!/usr/ bin/python2. 4). When changed to #!/usr/bin/python, the package builds correctly without python2.4 dependency.