Skip to content

Commit eb40b3a

Browse files
committed
fix py2.7
1 parent 4c745f1 commit eb40b3a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ before_install:
1717
- export CC="gcc-4.9"
1818
- export CXX="g++-4.9"
1919
install:
20-
- pip install future
20+
- pip install future; python_version < '3.0'
2121
- pip install numpy
2222
- pip install torch_nightly -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
2323
- pip install pycodestyle

setup.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@
2525

2626
install_requires = []
2727
setup_requires = ['pytest-runner']
28-
tests_require = ['pytest', 'pytest-cov']
28+
tests_require = [
29+
'pytest<5.0;python_version<"3.0"',
30+
'pytest;python_version>="3.0"',
31+
'pytest-cov',
32+
]
2933

3034
setup(
3135
name='torch_scatter',

0 commit comments

Comments
 (0)