mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-29 20:23:45 +03:00
Changed setup.py to detect PostgreSQL "alpha" versions
This commit is contained in:
parent
855674faf1
commit
21a6a64fd1
|
@ -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
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user