Fixed generation of download url from beta version

This commit is contained in:
Daniele Varrazzo 2017-02-08 18:09:15 +00:00
parent 21fbe2bd2a
commit 4b78ca4405

View File

@ -609,7 +609,8 @@ ext.append(Extension("psycopg2._psycopg", sources,
# using these pretty metadata. But that's their problem, not ours.
download_url = (
"http://initd.org/psycopg/tarballs/PSYCOPG-%s/psycopg2-%s.tar.gz"
% ('-'.join(PSYCOPG_VERSION.split('.')[:2]), PSYCOPG_VERSION))
% (re.sub(r'^(\d+)\.(\d+).*', r'\1-\2', PSYCOPG_VERSION),
PSYCOPG_VERSION))
try:
f = open("README.rst")