diff Makefile @ 28430:17b85d739b62

setup: create a module for the modulepolicy Instead of rewriting __init__ to define the modulepolicy, write out a __modulepolicy__.py file like __version__.py This should work for both system-wide installation and in-place build. Therefore we can avoid relying on two separate modulepolicy rules, '@MODULELOADPOLICY@' and 'mercurial/modulepolicy'.
author timeless <timeless@mozdev.org>
date Wed, 09 Mar 2016 15:47:01 +0000
parents ef9301ce6046
children e6310cdcc4d0
line wrap: on
line diff
--- a/Makefile	Wed Mar 09 08:08:27 2016 -0800
+++ b/Makefile	Wed Mar 09 15:47:01 2016 +0000
@@ -63,6 +63,7 @@
 		\( -name '*.py[cdo]' -o -name '*.so' \) -exec rm -f '{}' ';'
 	rm -f $(addprefix mercurial/,$(notdir $(wildcard mercurial/pure/[a-z]*.py)))
 	rm -f MANIFEST MANIFEST.in hgext/__index__.py tests/*.err
+	rm -f mercurial/__modulepolicy__.py
 	if test -d .hg; then rm -f mercurial/__version__.py; fi
 	rm -rf build mercurial/locale
 	$(MAKE) -C doc clean