-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix setup.py for Python 3.5, include PyTorch
- Loading branch information
1 parent
08f167c
commit e24b3b8
Showing
1 changed file
with
12 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,20 +2,29 @@ | |
# -*- coding: utf-8 -*- | ||
|
||
from setuptools import setup, find_packages | ||
import sys | ||
|
||
valid_python = sys.version_info[0] >= 3 and sys.version_info[1] >= 5 | ||
if not valid_python: | ||
raise RuntimeError("gptorch requires python 3.5+") | ||
|
||
# Python 3.5 can't do matplotlib 3.1 and up. | ||
matplotlib_dependency = "matplotlib>=2.1.2" if sys.version_info[1] >= 6 else \ | ||
"matplotlib>=2.1.2, <3.1" | ||
|
||
requirements = [ | ||
"numpy>=1.10", | ||
"scipy>=0.18", | ||
"matplotlib>=2.1.2", | ||
matplotlib_dependency, | ||
"scikit-learn>=0.19.1", | ||
# "pytorch", # conda install pytorch -c pytorch | ||
"torch", # conda install pytorch -c pytorch | ||
"pytest>=3.5.0", | ||
"graphviz>=0.9", | ||
"jupyter" | ||
] | ||
|
||
setup(name="gptorch", | ||
version="0.2.0", | ||
version="0.2.1", | ||
description="gptorch - a Gaussian process toolbox built on PyTorch", | ||
author="Yinhao Zhu, Steven Atkinson", | ||
author_email="[email protected], [email protected]", | ||
|