(self)
| 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): |
nothing calls this directly
no test coverage detected