Commit 6ccc327b authored by Matthieu Muffato's avatar Matthieu Muffato
Browse files

Automatically build (python) Doxygen on RTD

parent cf35b71d
......@@ -18,6 +18,7 @@ echo http://archive.ubuntu.com/ubuntu/pool/main/libd/libdbi-perl/libdbi-perl_1.6
http://archive.ubuntu.com/ubuntu/pool/main/libi/libipc-run-perl/libipc-run-perl_0.94-1_all.deb \
http://archive.ubuntu.com/ubuntu/pool/main/libi/libio-pty-perl/libio-pty-perl_1.08-1.1build1_amd64.deb \
http://archive.ubuntu.com/ubuntu/pool/universe/libg/libgraphviz-perl/libgraphviz-perl_2.20-1_all.deb \
http://archive.ubuntu.com/ubuntu/pool/universe/d/doxypy/doxypy_0.4.2-1.1_all.deb \
| xargs -n 1 curl -O
mkdir packages
......
......@@ -102,6 +102,7 @@ def hive_setup_if_needed():
subprocess.call([os.environ["PWD"] + os.path.sep + "rtd_upgrade.sh"], stdout=sys.stdout, stderr=sys.stderr)
os.environ["EHIVE_ROOT_DIR"] = os.path.join(os.environ["PWD"], os.path.pardir, os.path.pardir)
os.environ["PERL5LIB"] = os.path.pathsep.join(os.path.join(os.environ["HOME"], "packages", _) for _ in ["usr/share/perl5/", "usr/lib/x86_64-linux-gnu/perl5/5.22/", "usr/lib/x86_64-linux-gnu/perl5/5.22/auto/"])
os.environ["PATH"] = os.path.join(os.environ["HOME"], "packages", "usr/bin") + os.path.pathsep + os.environ["PATH"]
os.environ["ENSEMBL_CVS_ROOT_DIR"] = os.environ["HOME"]
doxygen_target = os.path.join(os.environ["EHIVE_ROOT_DIR"], "docs", "doxygen")
if not os.path.exists(doxygen_target):
......
......@@ -143,7 +143,7 @@ sub generate_docs_doxygen_perl {
sub generate_docs_doxygen_python {
print "Regenerating $ehrd/wrappers/python3/doxygen ...\n\n";
print "Regenerating $ehrd/docs/doxygen/python3 ...\n\n";
my $doxy_bin = `which doxygen`;
chomp $doxy_bin;
......@@ -155,15 +155,15 @@ sub generate_docs_doxygen_python {
die "Cannot find the Doxygen Python filter 'doxypy' in the current PATH.\n" unless -e $doxy_filter;
my @cmds = (
"rm -rf $ehrd/wrappers/python3/doxygen",
"rm -rf $ehrd/docs/doxygen/python3",
"doxygen -g -",
"echo 'PROJECT_NAME = ensembl-hive-python3'",
"echo 'PROJECT_NUMBER = $code_ver'",
"echo 'OUTPUT_DIRECTORY = $ehrd/wrappers/python3'",
"echo 'OUTPUT_DIRECTORY = $ehrd/docs/doxygen'",
"echo 'STRIP_FROM_PATH = $ehrd/wrappers/python3'",
"echo 'INPUT = $ehrd/wrappers/python3'",
"echo 'INPUT_FILTER = $doxy_filter'",
"echo 'HTML_OUTPUT = doxygen'",
"echo 'HTML_OUTPUT = python3'",
"echo 'EXTRACT_ALL = YES'",
"echo 'EXTRACT_PRIVATE = YES'",
"echo 'EXTRACT_STATIC = YES'",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment