mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-26 02:43:43 +03:00
Fixed PostgreSQL version detection
This commit is contained in:
parent
29d00f56f6
commit
a2af059e6c
|
@ -1,5 +1,8 @@
|
|||
2009-08-08 Federico Di Gregorio <fog@initd.org>
|
||||
|
||||
* setup.py: fixed version detection for PostgreSQL rc, as
|
||||
suggested by Sok Ann Yap.
|
||||
|
||||
* ZPsycopgDA/db.py: applied serialization error retry from Brian
|
||||
Sutherland.
|
||||
|
||||
|
|
2
setup.py
2
setup.py
|
@ -208,7 +208,7 @@ class psycopg_build_ext(build_ext):
|
|||
except:
|
||||
pgversion = "7.4.0"
|
||||
|
||||
verre = re.compile(r"(\d+)\.(\d+)(?:(?:\.(\d+))|(devel|beta\d+))")
|
||||
verre = re.compile(r"(\d+)\.(\d+)(?:(?:\.(\d+))|(devel|(beta|rc)\d+))")
|
||||
m = verre.match(pgversion)
|
||||
if m:
|
||||
pgmajor, pgminor, pgpatch = m.group(1, 2, 3)
|
||||
|
|
Loading…
Reference in New Issue
Block a user