setup.py
changeset 48836 e020dbbc41e5
parent 48833 64a8cdf4f327
child 48837 12cba4886e90
equal deleted inserted replaced
48835:a0da5075bca3 48836:e020dbbc41e5
  1246 for name in os.listdir(os.path.join('mercurial', 'templates')):
  1246 for name in os.listdir(os.path.join('mercurial', 'templates')):
  1247     if name != '__pycache__' and os.path.isdir(
  1247     if name != '__pycache__' and os.path.isdir(
  1248         os.path.join('mercurial', 'templates', name)
  1248         os.path.join('mercurial', 'templates', name)
  1249     ):
  1249     ):
  1250         packages.append('mercurial.templates.%s' % name)
  1250         packages.append('mercurial.templates.%s' % name)
  1251 
       
  1252 if sys.version_info[0] == 2:
       
  1253     packages.extend(
       
  1254         [
       
  1255             'mercurial.thirdparty.concurrent',
       
  1256             'mercurial.thirdparty.concurrent.futures',
       
  1257         ]
       
  1258     )
       
  1259 
  1251 
  1260 if 'HG_PY2EXE_EXTRA_INSTALL_PACKAGES' in os.environ:
  1252 if 'HG_PY2EXE_EXTRA_INSTALL_PACKAGES' in os.environ:
  1261     # py2exe can't cope with namespace packages very well, so we have to
  1253     # py2exe can't cope with namespace packages very well, so we have to
  1262     # install any hgext3rd.* extensions that we want in the final py2exe
  1254     # install any hgext3rd.* extensions that we want in the final py2exe
  1263     # image here. This is gross, but you gotta do what you gotta do.
  1255     # image here. This is gross, but you gotta do what you gotta do.