mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-04-27 05:46:24 +02:00
fix: rtd
This commit is contained in:
parent
68f3d49c81
commit
b6ccaf7673
1 changed files with 14 additions and 12 deletions
|
|
@ -32,23 +32,25 @@ 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)
|
||||
(out, err) = proc.communicate()
|
||||
|
||||
# print current folder:
|
||||
proc = subprocess.Popen("pwd", stdout=subprocess.PIPE, shell=True)
|
||||
(out, err) = proc.communicate()
|
||||
print "program output:", out
|
||||
proc = subprocess.Popen("ls ../../", stdout=subprocess.PIPE, shell=True)
|
||||
(out, err) = proc.communicate()
|
||||
print "program output:", out
|
||||
print("$ pwd: ", 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 "program output:", out
|
||||
#proc = subprocess.Popen("whereis numpy", stdout=subprocess.PIPE, shell=True)
|
||||
#(out, err) = proc.communicate()
|
||||
#print "program output:", out
|
||||
#proc = subprocess.Popen("whereis matplotlib", stdout=subprocess.PIPE, shell=True)
|
||||
#(out, err) = proc.communicate()
|
||||
#print "program output:", out
|
||||
|
||||
print("Apidoc:", out)
|
||||
|
||||
|
||||
# -- General configuration ------------------------------------------------
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue