From 248222070b1e4900f77be91a08cf7045e23c9d9f Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Wed, 30 Jun 2021 16:22:08 +0100 Subject: [PATCH] Allow writing the ``salt/_version.py`` file because we don't upload the ``.git`` directory for CI --- setup.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 944592589b6..514fef44ddb 100755 --- a/setup.py +++ b/setup.py @@ -302,8 +302,9 @@ class WriteSaltVersion(Command): ): # Write the version file if getattr(self.distribution, "salt_version_hardcoded_path", None) is None: - print("This command is not meant to be called on it's own") - exit(1) + self.distribution.salt_version_hardcoded_path = SALT_VERSION_HARDCODED + sys.stderr.write("This command is not meant to be called on it's own\n") + sys.stderr.flush() if not self.distribution.with_salt_version: salt_version = (