mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
IGN:...
This commit is contained in:
parent
6b663adcf7
commit
2a6d01d0a6
21
setup.py
21
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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user