diff options
Diffstat (limited to '')
-rw-r--r-- | print/py-reportlab/files/patch-setup.py | 38 |
1 files changed, 28 insertions, 10 deletions
diff --git a/print/py-reportlab/files/patch-setup.py b/print/py-reportlab/files/patch-setup.py index ca752318a999..fc7be0d9bf57 100644 --- a/print/py-reportlab/files/patch-setup.py +++ b/print/py-reportlab/files/patch-setup.py @@ -1,11 +1,29 @@ ---- setup.py.orig Fri Nov 26 00:12:20 2004 -+++ setup.py Mon Mar 21 03:26:45 2005 -@@ -19,7 +19,7 @@ - isfile = os.path.isfile - isdir = os.path.isfile - dirname = os.path.dirname --package_path = pjoin(package_home(distutils.__dict__), 'site-packages', 'reportlab') -+package_path = os.environ['PACKAGE_PATH'] +--- setup.py.orig 2014-02-14 23:22:37.000000000 +0900 ++++ setup.py 2014-02-16 00:48:02.000000000 +0900 +@@ -241,11 +241,7 @@ + ] - def get_version(): - #determine Version + def get_fonts(PACKAGE_DIR, reportlab_files): +- import sys, os, os.path, zipfile, io +- if isPy3: +- import urllib.request as ureq +- else: +- import urllib2 as ureq ++ import sys, os, os.path, zipfile + rl_dir = PACKAGE_DIR['reportlab'] + if not [x for x in reportlab_files if not os.path.isfile(pjoin(rl_dir,x))]: + infoline("Standard T1 font curves already downloaded") +@@ -254,12 +250,7 @@ + infoline('not downloading T1 font curve files') + return + try: +- infoline("Downloading standard T1 font curves") +- +- remotehandle = ureq.urlopen("http://www.reportlab.com/ftp/pfbfer-20070710.zip") +- zipdata = io.BytesIO(remotehandle.read()) +- remotehandle.close() +- archive = zipfile.ZipFile(zipdata) ++ archive = zipfile.ZipFile("%%DISTDIR%%/%%PFBFER%%") + dst = pjoin(rl_dir, 'fonts') + + for name in archive.namelist(): |