setup.py
changeset 48946 642e31cb55f0
parent 48850 656196c1d442
child 48988 8d7eaff92f9c
equal deleted inserted replaced
48945:55d132525155 48946:642e31cb55f0
   211     )
   211     )
   212     out, err = p.communicate()
   212     out, err = p.communicate()
   213     return p.returncode, out, err
   213     return p.returncode, out, err
   214 
   214 
   215 
   215 
   216 class hgcommand(object):
   216 class hgcommand:
   217     def __init__(self, cmd, env):
   217     def __init__(self, cmd, env):
   218         self.cmd = cmd
   218         self.cmd = cmd
   219         self.env = env
   219         self.env = env
   220 
   220 
   221     def run(self, args):
   221     def run(self, args):
  1526     cygwinccompiler.Mingw32CCompiler = HackedMingw32CCompiler
  1526     cygwinccompiler.Mingw32CCompiler = HackedMingw32CCompiler
  1527 except ImportError:
  1527 except ImportError:
  1528     # the cygwinccompiler package is not available on some Python
  1528     # the cygwinccompiler package is not available on some Python
  1529     # distributions like the ones from the optware project for Synology
  1529     # distributions like the ones from the optware project for Synology
  1530     # DiskStation boxes
  1530     # DiskStation boxes
  1531     class HackedMingw32CCompiler(object):
  1531     class HackedMingw32CCompiler:
  1532         pass
  1532         pass
  1533 
  1533 
  1534 
  1534 
  1535 if os.name == 'nt':
  1535 if os.name == 'nt':
  1536     # Allow compiler/linker flags to be added to Visual Studio builds.  Passing
  1536     # Allow compiler/linker flags to be added to Visual Studio builds.  Passing