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
diffusers
Commits
579d2f67
Commit
579d2f67
authored
Sep 11, 2024
by
lijian6
Browse files
Modify setup.py
Signed-off-by:
lijian
<
lijian6@sugon.com
>
parent
8743549e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
setup.py
setup.py
+1
-1
No files found.
setup.py
View file @
579d2f67
...
@@ -288,7 +288,7 @@ def get_version_add(sha: Optional[str] = None) -> str:
...
@@ -288,7 +288,7 @@ def get_version_add(sha: Optional[str] = None) -> str:
rocm_version_path
=
os
.
path
.
join
(
rocm_path
,
'.info'
,
"rocm_version"
)
rocm_version_path
=
os
.
path
.
join
(
rocm_path
,
'.info'
,
"rocm_version"
)
with
open
(
rocm_version_path
,
'r'
,
encoding
=
'utf-8'
)
as
file
:
with
open
(
rocm_version_path
,
'r'
,
encoding
=
'utf-8'
)
as
file
:
lines
=
file
.
readlines
()
lines
=
file
.
readlines
()
rocm_version
=
lines
[
0
]
[:
-
1
]
.
replace
(
"."
,
""
)
rocm_version
=
lines
[
0
].
replace
(
"."
,
""
)
version
+=
"dtk"
+
rocm_version
version
+=
"dtk"
+
rocm_version
lines
=
[]
lines
=
[]
...
...
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