Commit 83d2fa9d authored by sangwzh's avatar sangwzh
Browse files

update dtk version

parent b35a1b66
...@@ -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",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment