Fix translations build on CI missing docstrings

This commit is contained in:
Kovid Goyal 2020-12-13 20:58:30 +05:30
parent 1388fc0a74
commit a8359d83c0
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -74,6 +74,8 @@ def build_pot(base):
if is_ci:
sp = eval(subprocess.check_output(['python', '-c', 'import sphinx; print(sphinx.__path__)']).decode('utf-8'))
code = f'import sys, os; sys.path += [{os.path.dirname(sp[0])!r}]; from sphinx.cmd.build import main; main({cmd[1:]!r})'
os.environ['CALIBRE_DEVELOP_FROM'] = j(d(BASE), 'src')
print('Running with calibre src:', os.environ['CALIBRE_DEVELOP_FROM'])
cmd = [sys.executable, '-c', code]
print(' '.join(cmd))
subprocess.check_call(cmd)