Commit db18baec authored by Matthieu Muffato's avatar Matthieu Muffato
Browse files

Moved the RTD upgrade files to _build to keep it tidy

parent 6c8d1727
......@@ -3,10 +3,13 @@
# Bail out if anything goes wrong
set -e
# $PWD is the user manual, which I want to keep clean
cd "$HOME"
# Restart from a clean state
rm -rf "$1"
mkdir -p "$1"
cd "$1"
rm -f *.deb
mkdir packages
cd packages
# List of extra packages we need
echo http://archive.ubuntu.com/ubuntu/pool/main/libd/libdbi-perl/libdbi-perl_1.634-1build1_amd64.deb \
http://archive.ubuntu.com/ubuntu/pool/universe/libd/libdbd-sqlite3-perl/libdbd-sqlite3-perl_1.50-1_amd64.deb \
......@@ -23,10 +26,8 @@ echo http://archive.ubuntu.com/ubuntu/pool/main/libd/libdbi-perl/libdbi-perl_1.6
http://archive.ubuntu.com/ubuntu/pool/universe/libp/libproc-daemon-perl/libproc-daemon-perl_0.23-1_all.deb \
| xargs -n 1 curl -O
rm -rf packages
mkdir packages
for i in *.deb; do dpkg -x "$i" packages/; done
mkdir ../root
for i in *.deb; do dpkg -x "$i" ../root/; done
rm -rf ensembl
git clone --branch master --depth 1 https://github.com/Ensembl/ensembl.git
git clone --branch master --depth 1 https://github.com/Ensembl/ensembl.git ../ensembl
......@@ -20,10 +20,10 @@ def setup_if_needed(this_release):
# Install packages and setup environment
on_rtd = os.environ.get("READTHEDOCS", None) == "True"
if on_rtd:
upgrade_path = os.path.join(build_path, "rtd_upgrade")
if not is_same:
subprocess.check_call(["./rtd_upgrade.sh"], stdout=sys.stdout, stderr=sys.stderr)
upgrade_path = os.environ["HOME"]
deb_install_path = os.path.join(upgrade_path, "packages")
subprocess.check_call(["./rtd_upgrade.sh", upgrade_path], stdout=sys.stdout, stderr=sys.stderr)
deb_install_path = os.path.join(upgrade_path, "root")
os.environ["PERL5LIB"] = os.path.pathsep.join(os.path.join(deb_install_path, _) 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(deb_install_path, "usr/bin") + os.path.pathsep + os.environ["PATH"]
os.environ["ENSEMBL_CVS_ROOT_DIR"] = upgrade_path
......
......@@ -45,6 +45,7 @@ sub generate_docs_doxygen_perl {
"echo 'STRIP_FROM_PATH = $ehrd'",
"echo 'INPUT = $ehrd'",
"echo 'INPUT_FILTER = $doxy_filter'",
"echo 'EXCLUDE_PATTERNS = */_build/*'",
"echo 'HTML_OUTPUT = perl'",
"echo 'EXTENSION_MAPPING = pm=C pl=C'",
"echo 'EXTRACT_ALL = 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