mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Allow writing the `salt/_version.py
file because we don't upload the
.git
` directory for CI
This commit is contained in:
parent
11d5c08af4
commit
248222070b
1 changed files with 3 additions and 2 deletions
5
setup.py
5
setup.py
|
@ -302,8 +302,9 @@ class WriteSaltVersion(Command):
|
||||||
):
|
):
|
||||||
# Write the version file
|
# Write the version file
|
||||||
if getattr(self.distribution, "salt_version_hardcoded_path", None) is None:
|
if getattr(self.distribution, "salt_version_hardcoded_path", None) is None:
|
||||||
print("This command is not meant to be called on it's own")
|
self.distribution.salt_version_hardcoded_path = SALT_VERSION_HARDCODED
|
||||||
exit(1)
|
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:
|
if not self.distribution.with_salt_version:
|
||||||
salt_version = (
|
salt_version = (
|
||||||
|
|
Loading…
Add table
Reference in a new issue