Mercurial > hg
comparison Makefile @ 21229:54d7657d7d1e stable
setup.py, make: avoid problems with outdated, existing hgext/__index__.py*
"make clean" already removed __index__.py[cdo], but not the __index__.py
(automatically generated by "python setup.py build_hgextindex").
"setup.py build_hgextindex" did not generate a new index if file
__index__.py[cdo] already existed, because if __index__.py was removed,
the compiled file containing the old information was imported and used.
Generate an empty file (with a new timestamp to generate a new .py[cdo])
instead and make mercurial.extensions ignore the unset docs attribute.
One of the problems was a failed test-help.t, to reproduce:
$ rm hgext/__index__.py*
$ echo 'docs = {"mq": "dummy"}' > hgext/__index__.py
$ make test-help.t
With this a "make clean" or "python setup.py build_hgextindex" helps.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Mon, 05 May 2014 16:54:15 +0200 |
parents | 1bc68ff4e0a2 |
children | 62a2749895e4 |
comparison
equal
deleted
inserted
replaced
21227:75aaae8ad660 | 21229:54d7657d7d1e |
---|---|
54 clean: | 54 clean: |
55 -$(PYTHON) setup.py clean --all # ignore errors from this command | 55 -$(PYTHON) setup.py clean --all # ignore errors from this command |
56 find contrib doc hgext i18n mercurial tests \ | 56 find contrib doc hgext i18n mercurial tests \ |
57 \( -name '*.py[cdo]' -o -name '*.so' \) -exec rm -f '{}' ';' | 57 \( -name '*.py[cdo]' -o -name '*.so' \) -exec rm -f '{}' ';' |
58 rm -f $(addprefix mercurial/,$(notdir $(wildcard mercurial/pure/[a-z]*.py))) | 58 rm -f $(addprefix mercurial/,$(notdir $(wildcard mercurial/pure/[a-z]*.py))) |
59 rm -f MANIFEST MANIFEST.in mercurial/__version__.py tests/*.err | 59 rm -f MANIFEST MANIFEST.in mercurial/__version__.py hgext/__index__.py tests/*.err |
60 rm -rf build mercurial/locale | 60 rm -rf build mercurial/locale |
61 $(MAKE) -C doc clean | 61 $(MAKE) -C doc clean |
62 | 62 |
63 install: install-bin install-doc | 63 install: install-bin install-doc |
64 | 64 |