##// END OF EJS Templates
setup: include additional packages in py2exe distribution...
Gregory Szorc -
r42017:ed350574 default
parent child Browse files
Show More
@@ -1240,8 +1240,20 b" setupversion = version.decode('ascii')"
1240
1240
1241 extra = {}
1241 extra = {}
1242
1242
1243 py2exepackages = [
1244 'hgdemandimport',
1245 'hgext',
1246 'email',
1247 # implicitly imported per module policy
1248 # (cffi wouldn't be used as a frozen exe)
1249 'mercurial.cext',
1250 #'mercurial.cffi',
1251 'mercurial.pure',
1252 ]
1253
1243 if issetuptools:
1254 if issetuptools:
1244 extra['python_requires'] = supportedpy
1255 extra['python_requires'] = supportedpy
1256
1245 if py2exeloaded:
1257 if py2exeloaded:
1246 extra['console'] = [
1258 extra['console'] = [
1247 {'script':'hg',
1259 {'script':'hg',
@@ -1252,6 +1264,34 b' if py2exeloaded:'
1252 # put dlls in sub directory so that they won't pollute PATH
1264 # put dlls in sub directory so that they won't pollute PATH
1253 extra['zipfile'] = 'lib/library.zip'
1265 extra['zipfile'] = 'lib/library.zip'
1254
1266
1267 try:
1268 import dulwich
1269 dulwich.__version__
1270 py2exepackages.append('dulwich')
1271 except ImportError:
1272 pass
1273
1274 try:
1275 import keyring
1276 keyring.util
1277 py2exepackages.append('keyring')
1278 except ImportError:
1279 pass
1280
1281 try:
1282 import pygments
1283 pygments.__version__
1284 py2exepackages.append('pygments')
1285 except ImportError:
1286 pass
1287
1288 try:
1289 import pywintypes
1290 pywintypes.TRUE
1291 py2exepackages.append('pywintypes')
1292 except ImportError:
1293 pass
1294
1255 if os.name == 'nt':
1295 if os.name == 'nt':
1256 # Windows binary file versions for exe/dll files must have the
1296 # Windows binary file versions for exe/dll files must have the
1257 # form W.X.Y.Z, where W,X,Y,Z are numbers in the range 0..65535
1297 # form W.X.Y.Z, where W,X,Y,Z are numbers in the range 0..65535
@@ -1331,16 +1371,7 b" setup(name='mercurial',"
1331 distclass=hgdist,
1371 distclass=hgdist,
1332 options={
1372 options={
1333 'py2exe': {
1373 'py2exe': {
1334 'packages': [
1374 'packages': py2exepackages,
1335 'hgdemandimport',
1336 'hgext',
1337 'email',
1338 # implicitly imported per module policy
1339 # (cffi wouldn't be used as a frozen exe)
1340 'mercurial.cext',
1341 #'mercurial.cffi',
1342 'mercurial.pure',
1343 ],
1344 },
1375 },
1345 'bdist_mpkg': {
1376 'bdist_mpkg': {
1346 'zipdist': False,
1377 'zipdist': False,
General Comments 0
You need to be logged in to leave comments. Login now