Skip to content

Commit f75ccfb

Browse files
author
SaizhuoWang
committed
fix
1 parent a1ac482 commit f75ccfb

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

Diff for: distribution/build_and_upload_to_pypi.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
cd ..
22
rm -rf build dist
3+
./configure
34
python setup.py bdist_wheel --universal
45
python setup.py sdist
56

67
# Current network unavailable in Mainland China
7-
#twine upload dist/*
8+
twine upload dist/*

Diff for: setup.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,14 @@ def finalize_options(self):
4646
else:
4747
cuda_version = ''
4848

49-
install_requirement = ['pythonds', 'nltk >= 3.5', 'stanfordcorenlp', 'scipy >= 1.5.2',
49+
install_requirement = ['torch >= 1.6.0', 'pythonds', 'nltk >= 3.5', 'stanfordcorenlp', 'scipy >= 1.5.2',
5050
'scikit-learn >= 0.23.2', 'networkx >= 2.5', 'dgl{} >= 0.4'.format(cuda_version),
5151
'ogb', 'torchtext', 'tqdm >= 4.29.0', 'pyyaml']
52-
pytorch_requirement = 'torch >= 1.6.0' if platform.system() != 'Windows' else 'torch >= 1.8.1'
53-
print("System: {}. PyTorch Requirement = {}".format(platform.system(), pytorch_requirement))
52+
# pytorch_requirement = 'torch >= 1.6.0' if platform.system() != 'Windows' else 'torch >= 1.8.1'
53+
# print("System: {}. PyTorch Requirement = {}".format(platform.system(), pytorch_requirement))
5454
# if cuda_version in ['-cu101', '-cu92']:
5555
# pytorch_requirement += ', <=1.7.0'
56-
install_requirement.append(pytorch_requirement)
56+
# install_requirement.append(pytorch_requirement)
5757

5858

5959
setup(

0 commit comments

Comments
 (0)