Opened 5 years ago

Closed 5 years ago

#15624 closed patch (fixed)

Python syntax errors on running the configure script.

Reported by: ashmew2 Owned by: rekkanoryo
Milestone: 2.10.8 Component: unclassified
Version: 2.10.7 Keywords: python2 python3 configure
Cc:

Description (last modified by ashmew2)

While compiling from source , the configure script gives syntax errors when it tries to guess the version of python on systems where the default python binary is python 3.x instead of the required python 2.x.

In order to make it successfully through compilation, the .py files need to be modified so that they are compatible with both versions of Python. Also, the configure.ac script should be edited to only check for the existence of Python.h and not worry about what the major version of Python is.

Attachments (2)

fix-configure-py2.patch (1.4 KB) - added by ashmew2 5 years ago.
PATCH for modifying configure.ac . autoconf needs to be called in the same directory after patching.
fix-python-issues-final.patch (12.1 KB) - added by ashmew2 5 years ago.
Patch to Change .py files to be compatible with both 2.x and 3.x , Removed Version Check in configure.ac . Run with patch -p0

Download all attachments as: .zip

Change History (5)

Changed 5 years ago by ashmew2

PATCH for modifying configure.ac . autoconf needs to be called in the same directory after patching.

comment:1 Changed 5 years ago by ashmew2

  • Type changed from defect to patch

Changed 5 years ago by ashmew2

Patch to Change .py files to be compatible with both 2.x and 3.x , Removed Version Check in configure.ac . Run with patch -p0

comment:2 Changed 5 years ago by ashmew2

  • Description modified (diff)

comment:3 Changed 5 years ago by Ashish Gupta <ashmew2@…>

  • Milestone set to 2.10.8
  • Resolution set to fixed
  • Status changed from new to closed

(In [c49bfe98716d]):
Fix build and other scripts on Python3.

Closes #15624.

Note: See TracTickets for help on using tickets.
All information, including names and email addresses, entered onto this website or sent to mailing lists affiliated with this website will be public. Do not post confidential information, especially passwords!