X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/0f5b0542513b572959e39400bae42e69aeb1a7b6..85d79eb901f52a2fb10fae4bc64b8f9a18dff781:/doc/Rakefile diff --git a/doc/Rakefile b/doc/Rakefile index c9322bb6ae..13e87167b6 100644 --- a/doc/Rakefile +++ b/doc/Rakefile @@ -54,11 +54,13 @@ file "sdk/python/arvados.html" do |t| if ENV['NO_SDK'] || File.exist?("no-sdk") next end + # pysdk_pdoc.py is a wrapper around the pdoc CLI. `which pdoc` is an easy + # and good-enough test to check whether it's installed at all. `which pdoc` if $? == 0 raise unless system("python3", "setup.py", "build", chdir: "../sdk/python", out: :err) - raise unless system("pdoc", "-o", "sdk/python", "../sdk/python/build/lib/arvados/", + raise unless system("python3", "pysdk_pdoc.py", out: :err) else puts "Warning: pdoc not found, Python documentation will not be generated".colorize(:light_red)