"git@developer.sourcefind.cn:OpenDAS/dgl.git" did not exist on "cbd55eb12f8fba2ee848de64ce12cfbe03138e2b"
Unverified Commit ca675ed4 authored by Rhett Ying's avatar Rhett Ying Committed by GitHub
Browse files

[GraphBolt] add torchdata into DGL dependencies (#6809)

parent 498188dd
...@@ -211,6 +211,19 @@ if include_libs: ...@@ -211,6 +211,19 @@ if include_libs:
data_files.append(get_lib_file_path("graphbolt")) data_files.append(get_lib_file_path("graphbolt"))
setup_kwargs = {"include_package_data": True, "data_files": data_files} setup_kwargs = {"include_package_data": True, "data_files": data_files}
# Configure dependencies.
install_requires = [
"numpy>=1.14.0",
"scipy>=1.1.0",
"networkx>=2.1",
"requests>=2.19.0",
"tqdm",
"psutil>=5.8.0",
"torchdata>=0.5.0",
]
if "DGLBACKEND" in os.environ and os.environ["DGLBACKEND"] != "pytorch":
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, version=VERSION,
...@@ -219,14 +232,7 @@ setup( ...@@ -219,14 +232,7 @@ setup(
maintainer="DGL Team", maintainer="DGL Team",
maintainer_email="wmjlyjemaine@gmail.com", maintainer_email="wmjlyjemaine@gmail.com",
packages=find_packages(), packages=find_packages(),
install_requires=[ install_requires=install_requires,
"numpy>=1.14.0",
"scipy>=1.1.0",
"networkx>=2.1",
"requests>=2.19.0",
"tqdm",
"psutil>=5.8.0",
],
url="https://github.com/dmlc/dgl", url="https://github.com/dmlc/dgl",
distclass=BinaryDistribution, distclass=BinaryDistribution,
ext_modules=config_cython(), ext_modules=config_cython(),
......
...@@ -27,7 +27,7 @@ dependencies: ...@@ -27,7 +27,7 @@ dependencies:
- scikit-learn - scikit-learn
- scipy - scipy
- torch==__TORCH_VERSION__ - torch==__TORCH_VERSION__
- torchdata - torchdata>=0.5.0
- torcheval - torcheval
- torchmetrics - torchmetrics
- tqdm - tqdm
......
...@@ -51,9 +51,9 @@ else ...@@ -51,9 +51,9 @@ else
rm -rf build *.egg-info dist rm -rf build *.egg-info dist
pip uninstall -y dgl pip uninstall -y dgl
# test install # test install
python3 setup.py install DGLBACKEND=${backend} python3 setup.py install
# test inplace build (for cython) # test inplace build (for cython)
python3 setup.py build_ext --inplace DGLBACKEND=${backend} python3 setup.py build_ext --inplace
done done
fi fi
popd popd
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