Opened 10 years ago

Closed 10 years ago

#14 closed defect (fixed)

automake/autoconf should be able to detect python version

Reported by: jinmei Owned by: jreed
Priority: low Milestone:
Component: Unclassified Version:
Keywords: Cc:
CVSS Scoring: Parent Tickets:
Sensitive: no Defect Severity:
Sub-Project: Feature Depending on Ticket:
Estimated Difficulty: Add Hours to Ticket:
Total Hours: Internal?:

Description

As requested by Francis:

I looked at python bindings for BIND 10 (the Name class from parkinglot),
I have some comments:

  • there is a dependency on *recent* versions of automake: old versions of automake (i.e., the version you should get on most distribs per default) fail to recognize python 3

I'm not sure about the point...are you suggesting something specific?

=> up to automake 1.10 included the aclocal-1.10/python.m4 finished by:
...
minver = map(int, string.split('$2', '.')) + 0, 0, 0?


the string.split always fails with python3 so configure fails saying
it can't find a python3 interpreter even it is clearly wrong.
in automake 1.11 (and newer, today 1.11.x) you have the fixed:
...
minver = list(map(int, '$2'.split('.'))) + 0, 0, 0?

which works with all not antic versions of python.

So I suggest to add a warning in INSTALL about this, i.e.,
if ./configure fails to find python3 where there is one, check automake
version and switch to >= automake 1.11

Subtickets

Change History (3)

comment:1 Changed 10 years ago by shane

  • Owner set to jeremy
  • Status changed from new to assigned
  • Type changed from enhancement to defect

comment:2 Changed 10 years ago by shane

  • Owner changed from jeremy to jreed

comment:3 Changed 10 years ago by shane

  • Resolution set to fixed
  • Status changed from assigned to closed

Jeremy reports this is fixed in a different way.

Note: See TracTickets for help on using tickets.