Development of an internal social media platform with personalised dashboards for students
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

bdist_wininst.py 637B

123456789101112131415161718192021
  1. import distutils.command.bdist_wininst as orig
  2. class bdist_wininst(orig.bdist_wininst):
  3. def reinitialize_command(self, command, reinit_subcommands=0):
  4. """
  5. Supplement reinitialize_command to work around
  6. http://bugs.python.org/issue20819
  7. """
  8. cmd = self.distribution.reinitialize_command(
  9. command, reinit_subcommands)
  10. if command in ('install', 'install_lib'):
  11. cmd.install_lib = None
  12. return cmd
  13. def run(self):
  14. self._is_running = True
  15. try:
  16. orig.bdist_wininst.run(self)
  17. finally:
  18. self._is_running = False