classification
Title: setup.py crashes if sqlite version contains 'beta'
Type: compile error Stage:
Components: Build Versions: Python 3.2, Python 3.1, Python 2.7
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: BreamoreBoy, blahblahwhat, eric.araujo, ghaering, tarek
Priority: low Keywords:

Created on 2009-01-22 16:23 by blahblahwhat, last changed 2010-11-18 02:02 by eric.araujo.

Messages (3)
msg80370 - (view) Author: blahblahwhat (blahblahwhat) Date: 2009-01-22 16:23
When I try to 'make' Python 2.6.1:

Traceback (most recent call last):
  File "./setup.py", line 1880, in <module>
    main()
  File "./setup.py", line 1875, in main
    'Lib/smtpd.py']
  File "/home/apps/Python-2.6.1/Lib/distutils/core.py", line 152, in 
setup
    dist.run_commands()
  File "/home/apps/Python-2.6.1/Lib/distutils/dist.py", line 975, in 
run_commands
    self.run_command(cmd)
  File "/home/apps/Python-2.6.1/Lib/distutils/dist.py", line 995, in 
run_command
    cmd_obj.run()
  File "/home/apps/Python-2.6.1/Lib/distutils/command/build.py", line 
134, in run
    self.run_command(cmd_name)
  File "/home/apps/Python-2.6.1/Lib/distutils/cmd.py", line 333, in 
run_command
    self.distribution.run_command(command)
  File "/home/apps/Python-2.6.1/Lib/distutils/dist.py", line 995, in 
run_command
    cmd_obj.run()
  File "/home/apps/Python-2.6.1/Lib/distutils/command/build_ext.py", 
line 343, in run
    self.build_extensions()
  File "./setup.py", line 103, in build_extensions
    missing = self.detect_modules()
  File "./setup.py", line 915, in detect_modules
    for x in sqlite_version.split(".")])
ValueError: invalid literal for int() with base 10: '1beta'

This was solved by replacing

  m = re.search(r'\s*.*#\s*.*define\s.*SQLITE_VERSION\W*"(.*)"', incf)

with

  m = re.search(r'\s*.*#\s*.*define\s.*SQLITE_VERSION\W*"([\d\.]*)"', 
incf)

on line 911
msg116570 - (view) Author: Mark Lawrence (BreamoreBoy) Date: 2010-09-16 16:17
A one line fix is given in msg80370, can this be applied,should the issue be closed or what?
msg121413 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2010-11-18 02:02
The regex is still the same.  I’ll try changing the version string in sqlite and trigger the bug.
History
Date User Action Args
2010-11-18 02:02:28eric.araujosetnosy: + tarek, eric.araujo
versions: + Python 3.1, Python 2.7, Python 3.2, - Python 2.6
messages: + msg121413

assignee: ghaering ->
2010-09-16 16:17:19BreamoreBoysetnosy: + BreamoreBoy
messages: + msg116570
2009-03-20 11:20:27ghaeringsetpriority: low
assignee: ghaering

nosy: + ghaering
2009-01-22 16:23:25blahblahwhatcreate