fc97fabaf28d

Update windows contrib script for current TortoiseHg version (2.6.2).

TortoiseHg 2.6.2 is packaged with Python 2.7.3 (and not 2.6.x), and now
includes some of the libraries that this script previously needed to copy into
place.
[view raw] [browse files]
author Chris Nielsen
date Fri, 18 Jan 2013 11:51:36 -0500
parents 638009474a3b
children 729e7c661a88
branches/tags (none)
files contrib/windows/update_tortoisehg_libs.py

Changes

--- a/contrib/windows/update_tortoisehg_libs.py	Mon Jan 23 15:01:27 2012 +0100
+++ b/contrib/windows/update_tortoisehg_libs.py	Fri Jan 18 11:51:36 2013 -0500
@@ -1,23 +1,23 @@
 # this script will update tortoisehgs python libs to include the missing libs that hg-review needs
-# (tested with Python 2.6 and Tortoisehg 1.1)
+# (tested with Python 2.7.3 and Tortoisehg 2.6.2)
 #
 # Daniel Newton <djpnewton@gmail.com>
 #
-# Version 1.0 (2010/07/28)
+# Version 1.1 (2013/01/18)
 
 import sys
 import os
 
 # check python version
-if sys.version[:3] != '2.6':
-    sys.exit('Need Python 2.6')
+if sys.version[:3] != '2.7':
+    sys.exit('Need Python 2.7')
 
 # check for windows
 if sys.platform != 'win32':
     sys.exit('Script only works on win32')
 
 # list of libs to add
-libs = ('Cookie.py', 'decimal.py', 'htmlentitydefs.py', 'code.py', 'codeop.py', 'compiler', 'numbers.py', 'symbol.py', 'uuid.py')
+libs = ('Cookie.py', 'htmlentitydefs.py', 'code.py', 'codeop.py', 'compiler', 'symbol.py', 'uuid.py')
 
 # find python lib path
 pylib_path = os.path.join(os.path.dirname(sys.executable), 'lib')