Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
deepspeed
Commits
8cfd4afa
Commit
8cfd4afa
authored
May 29, 2023
by
aiss
Browse files
add dtk version
parent
5bcc463d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
setup.py
setup.py
+5
-0
No files found.
setup.py
View file @
8cfd4afa
...
...
@@ -185,6 +185,11 @@ if command_exists('git') and 'DS_BUILD_STRING' not in os.environ:
git_hash
=
result
.
decode
(
'utf-8'
).
strip
()
result
=
subprocess
.
check_output
(
git_branch_cmd
,
shell
=
True
)
git_branch
=
result
.
decode
(
'utf-8'
).
strip
()
#add dtk version
if
os
.
getenv
(
'DS_BUILD_VERSION'
):
version_dtk
=
os
.
getenv
(
'DS_BUILD_VERSION'
,
""
)
git_hash
+=
"."
+
version_dtk
except
subprocess
.
CalledProcessError
:
git_hash
=
"unknown"
git_branch
=
"unknown"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment