Changed setup.py to detect PostgreSQL "alpha" versions

This commit is contained in:
Federico Di Gregorio 2010-03-11 22:42:00 +01:00
parent 855674faf1
commit 21a6a64fd1
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2010-03-11 Federico Di Gregorio <fog@initd.org>
* setup.py: one-liner from Devrim GÜNDÜZ to build with PostgreSQL
alpha.
2010-02-28 Federico Di Gregorio <fog@initd.org> 2010-02-28 Federico Di Gregorio <fog@initd.org>
* psycopg/adapt_decimal.c: Python 2.4 decimal type does not support * psycopg/adapt_decimal.c: Python 2.4 decimal type does not support

View File

@ -221,7 +221,7 @@ class psycopg_build_ext(build_ext):
except: except:
pgversion = "7.4.0" pgversion = "7.4.0"
verre = re.compile(r"(\d+)\.(\d+)(?:(?:\.(\d+))|(devel|(beta|rc)\d+))") verre = re.compile(r"(\d+)\.(\d+)(?:(?:\.(\d+))|(devel|(alpha|beta|rc)\d+))")
m = verre.match(pgversion) m = verre.match(pgversion)
if m: if m:
pgmajor, pgminor, pgpatch = m.group(1, 2, 3) pgmajor, pgminor, pgpatch = m.group(1, 2, 3)