From 2a6d01d0a6b41633699162bc25289d337fd96094 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 22 Jul 2008 20:48:37 -0700 Subject: [PATCH] IGN:... --- setup.py | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/setup.py b/setup.py index 608ffeed26..648872ecc1 100644 --- a/setup.py +++ b/setup.py @@ -72,27 +72,6 @@ if __name__ == '__main__': os.chdir('.build') subprocess.check_call(( (os.path.expanduser('~/qt/bin/qmake') if isosx else 'qmake'), '..'+os.sep+os.path.basename(pro))) subprocess.check_call(['mingw32-make' if iswindows else 'make']) - ext = '.dll' if iswindows else '.dylib' if isosx else '.so' - if iswindows: - pat = re.compile(qtplugin+ver+ext) - elif isosx: - pat = re.compile('lib'+qtplugin+'.'+ver+ext) - else: - pat = re.compile('lib'+qtplugin+ext+'.'+ver+'$') - if iswindows: - os.chdir('release') - qtplugin = None - - for f in glob.glob('*'+ext+'*'): - if pat.match(f): - qtplugin = os.path.realpath(os.path.abspath(f)) - f = os.path.join(cwd, 'src', 'calibre', 'plugins', f) - shutil.copyfile(qtplugin, f) - if islinux: - os.symlink(f, f.rpartition(ext)[0]+ext) - if isosx: - os.symlink(f, f.replace('.'+ver, '')) - break os.chdir(os.path.join('..'+(os.sep+'..' if iswindows else ''), 'PyQt')) if not os.path.exists('.build'): os.mkdir('.build')