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
dgl
Commits
83d2fa9d
Commit
83d2fa9d
authored
Jun 06, 2025
by
sangwzh
Browse files
update dtk version
parent
b35a1b66
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
python/setup.py
python/setup.py
+8
-2
No files found.
python/setup.py
View file @
83d2fa9d
...
@@ -18,6 +18,13 @@ class BinaryDistribution(Distribution):
...
@@ -18,6 +18,13 @@ class BinaryDistribution(Distribution):
CURRENT_DIR
=
os
.
path
.
dirname
(
__file__
)
CURRENT_DIR
=
os
.
path
.
dirname
(
__file__
)
def
get_dtk_version
():
ROCM_PATH
=
os
.
getenv
(
'ROCM_PATH'
,
"/opt/dtk/"
)
dtk_path
=
ROCM_PATH
+
'/.info/rocm_version'
with
open
(
dtk_path
,
'r'
)
as
file
:
content
=
file
.
read
().
strip
()
dtk_version
=
"dtk"
+
content
.
replace
(
'.'
,
''
)
return
dtk_version
def
get_lib_path
():
def
get_lib_path
():
"""Get library path, name and version"""
"""Get library path, name and version"""
...
@@ -234,10 +241,9 @@ install_requires = [
...
@@ -234,10 +241,9 @@ install_requires = [
]
]
if
"DGLBACKEND"
in
os
.
environ
and
os
.
environ
[
"DGLBACKEND"
]
!=
"pytorch"
:
if
"DGLBACKEND"
in
os
.
environ
and
os
.
environ
[
"DGLBACKEND"
]
!=
"pytorch"
:
install_requires
.
pop
(
install_requires
.
index
(
"torchdata>=0.5.0"
))
install_requires
.
pop
(
install_requires
.
index
(
"torchdata>=0.5.0"
))
setup
(
setup
(
name
=
"dgl"
+
os
.
getenv
(
"DGL_PACKAGE_SUFFIX"
,
""
),
name
=
"dgl"
+
os
.
getenv
(
"DGL_PACKAGE_SUFFIX"
,
""
),
version
=
VERSION
+
str
(
'+das.opt1.
dtk2504'
),
version
=
VERSION
+
str
(
'+das.opt1.
'
)
+
get_dtk_version
(
),
description
=
"Deep Graph Library"
,
description
=
"Deep Graph Library"
,
zip_safe
=
False
,
zip_safe
=
False
,
maintainer
=
"DGL Team"
,
maintainer
=
"DGL Team"
,
...
...
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