asciidoc: fixup for matplotlib filter (remove .old/)

The matplotlib filter comes with an .old/ directory which contains a
chart-filter.conf file that asciidoc loads. I highly doubt that is intended.
This commit is contained in:
Bjørn Forsman 2013-09-24 13:28:00 +02:00
parent a118a98970
commit ca591d30e4
1 changed files with 2 additions and 0 deletions

View File

@ -125,6 +125,8 @@ stdenv.mkDerivation rec {
echo "Extracting mpl (matplotlib) filter"
mkdir -p "$out/etc/asciidoc/filters/mpl"
tar xvf "${matplotlibFilterSrc}" -C "$out/etc/asciidoc/filters/mpl" --strip-components=1
# Stop asciidoc from loading mpl/.old/chart-filter.conf
rm -rf "$out/etc/asciidoc/filters/mpl/.old"
# Add matplotlib and numpy to sys.path
matplotlib_path="$(toPythonPath ${matplotlib})"
numpy_path="$(toPythonPath ${numpy})"