mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-07 09:01:38 -04:00
Better failure message when extension not built
This commit is contained in:
parent
95fdbe4381
commit
c1b488d552
@ -565,6 +565,8 @@ sip-file = "{os.path.basename(sipf)}"
|
||||
self.check_call([self.env.make] + ([] if iswindows else ['-j%d'%(os.cpu_count() or 1)]))
|
||||
e = 'pyd' if iswindows else 'so'
|
||||
m = glob.glob(f'{ext.name}/{ext.name}.*{e}')
|
||||
if not m:
|
||||
raise SystemExit(f'No built PyQt extension file in {os.path.join(os.getcwd(), ext.name)}')
|
||||
if len(m) != 1:
|
||||
raise SystemExit(f'Found extra PyQt extension files: {m}')
|
||||
shutil.copy2(m[0], dest)
|
||||
|
Loading…
x
Reference in New Issue
Block a user