mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-26 02:43:43 +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>
|
||||
|
||||
* 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:
|
||||
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)
|
||||
if m:
|
||||
pgmajor, pgminor, pgpatch = m.group(1, 2, 3)
|
||||
|
|
Loading…
Reference in New Issue
Block a user