Skip to content

Commit

Permalink
Fix setup, 0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
gpleiss committed Feb 9, 2019
1 parent f6d6adb commit 4e734fb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
3 changes: 1 addition & 2 deletions environment.yml
Expand Up @@ -2,5 +2,4 @@ name: gpytorch
channels:
- pytorch
dependencies:
- pytorch-nightly
- torchvision
- pytorch
2 changes: 1 addition & 1 deletion gpytorch/__init__.py
Expand Up @@ -35,7 +35,7 @@
from .lazy import lazify, delazify


__version__ = "0.2.0"
__version__ = "0.2.1"

# Old deprecated stuff
fast_pred_var = beta_features._moved_beta_feature(settings.fast_pred_var, "gpytorch.settings.fast_pred_var")
Expand Down
20 changes: 10 additions & 10 deletions setup.py
Expand Up @@ -24,9 +24,8 @@ def find_version(*file_paths):
raise RuntimeError("Unable to find version string.")


readme = open('README.md').read()
version = find_version('gpytorch', '__init__.py')

readme = open("README.md").read()
version = find_version("gpytorch", "__init__.py")

# See if we have the development version of pytorch installed
# We will skip installing the stable version of PyTOrch if this is true
Expand All @@ -37,13 +36,14 @@ def find_version(*file_paths):
has_dev_pytorch = False

# Base equirements
with open("requirements.txt", "r") as f:
install_requires = f.read().strip().split("\n")
if has_dev_pytorch: # Remove the PyTorch requirement
install_requires = [
install_require for install_require in install_requires
if "torch" != re.split(r"(=|<|>)", install_require)[0]
]
install_requires = [
"torch>=1.0.0",
]
if has_dev_pytorch: # Remove the PyTorch requirement
install_requires = [
install_require for install_require in install_requires
if "torch" != re.split(r"(=|<|>)", install_require)[0]
]

# Run the setup
setup(
Expand Down

0 comments on commit 4e734fb

Please sign in to comment.