+file ["install/new_cluster_checklist_Azure.xlsx", "install/new_cluster_checklist_AWS.xlsx"] do |t|
+ cp(t, t)
+end
+
+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("python3", "pysdk_pdoc.py",
+ out: :err)
+ else
+ puts "Warning: pdoc not found, Python documentation will not be generated".colorize(:light_red)
+ end
+end
+
+file "sdk/R/arvados/index.html" do |t|
+ if ENV['NO_SDK'] || File.exist?("no-sdk")
+ next
+ end
+ `which R`