MCPcopy
hub / github.com/saltstack/salt / run

Method run

setup.py:655–677  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

653 install.finalize_options(self)
654
655 def run(self):
656 if LooseVersion(setuptools.__version__) < LooseVersion("9.1"):
657 sys.stderr.write(
658 "\n\nInstalling Salt requires setuptools >= 9.1\n"
659 "Available setuptools version is {}\n\n".format(setuptools.__version__)
660 )
661 sys.stderr.flush()
662 sys.exit(1)
663
664 # Let's set the running_salt_install attribute so we can add
665 # _version.txt in the build command
666 self.distribution.running_salt_install = True
667 self.distribution.salt_version_hardcoded_path = os.path.join(
668 self.build_lib, "salt", "_version.txt"
669 )
670 # need to ensure _version.txt is created in build dir before install
671 if not os.path.exists(os.path.join(self.build_lib)):
672 if not self.skip_build:
673 self.run_command("build")
674 else:
675 self.run_command("write_salt_version")
676 # Run install.run
677 install.run(self)
678
679 @staticmethod
680 def _called_from_setup(run_frame):

Callers

nothing calls this directly

Calls 8

LooseVersionClass · 0.90
formatMethod · 0.80
exitMethod · 0.80
run_commandMethod · 0.80
writeMethod · 0.45
flushMethod · 0.45
existsMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected