Apparently setup.py install behaves differently when given
the --root option, so omit that if DESTDIR is empty.
Fixes #644.
python-install:
$(AM_V_at)$(MKDIR_P) "$(DESTDIR)$(prefix)" "$(DESTDIR)$(exec_prefix)"
- $(setup_py) install --root "$(DESTDIR)/" --prefix "$(prefix)" --exec-prefix "$(exec_prefix)"
+ destdir='$(DESTDIR)'; $(setup_py) install $${destdir:+"--root=$$destdir"} \
+ --prefix "$(prefix)" --exec-prefix "$(exec_prefix)"
python-clean:
-$(AM_V_at)rm -f $(PDIR)/timestamp