X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/7d2d4dded0198057ad7f90eac90eff802e21cde4..65393f3e8c6636734c32efc34cc33a7fbcac529e:/doc/Rakefile diff --git a/doc/Rakefile b/doc/Rakefile index 1390aa0e9c..676f2845c5 100644 --- a/doc/Rakefile +++ b/doc/Rakefile @@ -56,8 +56,10 @@ file "sdk/python/arvados/index.html" do |t| end `which pdoc` if $? == 0 - STDERR.puts `pdoc --html -o sdk/python ../sdk/python/arvados/ 2>&1` - raise if $? != 0 + raise unless system("python3", "setup.py", "build", + chdir: "../sdk/python", out: :err) + raise unless system("pdoc", "--html", "-o", "sdk/python", "../sdk/python/build/lib/arvados/", + out: :err) else puts "Warning: pdoc3 not found, Python documentation will not be generated".colorize(:light_red) end