Commits

kiilerix  committed c6ad5c7

install: changes for building a "good" 2.0 tar ball

This allows me to do
python setup.py clean sdist
and create a correctly versioned tar ball that also contains
* i18n/*.py
* tortoisehg/hgqt/*.ui
but doesn't contain old locale/*/LC_MESSAGES/tortoisehg.mo files

With the created tar ball I can do
python build install
and build rpms for Fedora.

  • Participants
  • Parent commits 7bf7897
  • Branches stable

Comments (0)

Files changed (3)

 include contrib/mergetools.rc
 include contrib/tortoisehg.desktop
 include COPYING.txt
-recursive-include i18n *.po
+include tortoisehg/hgqt/*.ui
+recursive-include i18n *.po *.py
 recursive-include doc *
 recursive-exclude doc/build *
         cls._wrappeduic = True
 
 class clean_local(Command):
-    pats = ['*.py[co]', '*_ui.py', '*_rc.py', '*.orig', '*.rej']
+    pats = ['*.py[co]', '*_ui.py', '*_rc.py', '*.mo', '*.orig', '*.rej']
     excludedirs = ['.hg', 'build', 'dist']
     description = 'clean up generated files (%s)' % ', '.join(pats)
     user_options = []

File tortoisehg/util/version.py

     repo = hg.repository(u, path=thgpath)
 
     u.pushbuffer()
-    commands.identify(u, repo, id=True, tags=True)
+    commands.identify(u, repo, id=True, tags=True, rev='.')
     l = u.popbuffer().split()
     while len(l) > 1 and l[-1][0].isalpha(): # remove non-numbered tags
         l.pop()