Commit eb40b3a5 authored by rusty1s's avatar rusty1s
Browse files

fix py2.7

parent 4c745f1c
...@@ -17,7 +17,7 @@ before_install: ...@@ -17,7 +17,7 @@ before_install:
- export CC="gcc-4.9" - export CC="gcc-4.9"
- export CXX="g++-4.9" - export CXX="g++-4.9"
install: install:
- pip install future - pip install future; python_version < '3.0'
- pip install numpy - pip install numpy
- pip install torch_nightly -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html - pip install torch_nightly -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
- pip install pycodestyle - pip install pycodestyle
......
...@@ -25,7 +25,11 @@ url = 'https://github.com/rusty1s/pytorch_scatter' ...@@ -25,7 +25,11 @@ url = 'https://github.com/rusty1s/pytorch_scatter'
install_requires = [] install_requires = []
setup_requires = ['pytest-runner'] setup_requires = ['pytest-runner']
tests_require = ['pytest', 'pytest-cov'] tests_require = [
'pytest<5.0;python_version<"3.0"',
'pytest;python_version>="3.0"',
'pytest-cov',
]
setup( setup(
name='torch_scatter', name='torch_scatter',
......
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