tests/run-tests.py
branchstable
changeset 52205 ba0a842e0907
parent 52204 f8d5001dd03e
child 52215 36e4d1457c6b
equal deleted inserted replaced
52204:f8d5001dd03e 52205:ba0a842e0907
  3917             install_env.pop('HGWITHRUSTEXT', None)
  3917             install_env.pop('HGWITHRUSTEXT', None)
  3918         elif self.options.no_rust:
  3918         elif self.options.no_rust:
  3919             install_env.pop('HGWITHRUSTEXT', None)
  3919             install_env.pop('HGWITHRUSTEXT', None)
  3920 
  3920 
  3921         # setuptools requires install directories to exist.
  3921         # setuptools requires install directories to exist.
  3922         def makedirs(p):
  3922         os.makedirs(self._pythondir, exist_ok=True)
  3923             try:
  3923         os.makedirs(self._bindir, exist_ok=True)
  3924                 os.makedirs(p)
       
  3925             except FileExistsError:
       
  3926                 pass
       
  3927 
       
  3928         makedirs(self._pythondir)
       
  3929         makedirs(self._bindir)
       
  3930         if self.options.wheel is not None and not WINDOWS:
  3924         if self.options.wheel is not None and not WINDOWS:
  3931             # the wheel instalation location is not stable, so try to deal with
  3925             # the wheel instalation location is not stable, so try to deal with
  3932             # that to funnel it back where we need its.
  3926             # that to funnel it back where we need its.
  3933             #
  3927             #
  3934             # (mostly deals with Debian shenanigans)
  3928             # (mostly deals with Debian shenanigans)