mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-04-27 22:06:22 +02:00
fix: rtd
This commit is contained in:
parent
b6ccaf7673
commit
a3b8677f1d
1 changed files with 7 additions and 8 deletions
|
|
@ -33,23 +33,22 @@ if on_rtd:
|
|||
import subprocess
|
||||
|
||||
# build extensions:
|
||||
proc = subprocess.Popen("cd ../../", stdout=subprocess.PIPE, shell=True)
|
||||
(out, err) = proc.communicate()
|
||||
proc = subprocess.Popen("python setup.py build_ext develop", stdout=subprocess.PIPE, shell=True)
|
||||
(out, err) = proc.communicate()
|
||||
print("program output:", out)
|
||||
proc = subprocess.Popen("cd doc/source/", stdout=subprocess.PIPE, shell=True)
|
||||
proc = subprocess.Popen("cd ../../; python setup.py build_ext develop", stdout=subprocess.PIPE, shell=True)
|
||||
(out, err) = proc.communicate()
|
||||
print("build_ext develop:")
|
||||
print(out)
|
||||
|
||||
# print current folder:
|
||||
proc = subprocess.Popen("pwd", stdout=subprocess.PIPE, shell=True)
|
||||
(out, err) = proc.communicate()
|
||||
print("$ pwd: ", out)
|
||||
print("$ pwd: ")
|
||||
print(out)
|
||||
|
||||
#Lets regenerate our rst files from the source, -P adds private modules (i.e kern._src)
|
||||
proc = subprocess.Popen("sphinx-apidoc -P -f -o . ../../GPy", stdout=subprocess.PIPE, shell=True)
|
||||
(out, err) = proc.communicate()
|
||||
print("Apidoc:", out)
|
||||
print("Apidoc:")
|
||||
print(out)
|
||||
|
||||
|
||||
# -- General configuration ------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue