duplicity: Fix installation with distutils.cfg

The Homebrew Python installations place a `distutils.cfg` file that can override
arguments passed on the command line. Specifically, our `distutils.cfg` sets a
value for `install-lib`, so `--install-lib` needs to be passed to `setup.py` to
override this default. Passing `--install-purelib` and `--install-platlib` is
not sufficient.
This commit is contained in:
Charlie Sharpsteen 2012-12-06 15:29:56 -08:00
parent a3645015c3
commit e3126bf25d

View file

@ -13,8 +13,7 @@ class Duplicity < Formula
# Install mostly into libexec
system "python", "setup.py", "install",
"--prefix=#{prefix}",
"--install-purelib=#{libexec}",
"--install-platlib=#{libexec}",
"--install-lib=#{libexec}",
"--install-scripts=#{bin}"
# Shift files around to avoid needing a PYTHONPATH