Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove version parsing for torch nightlies, req. >=1.0.1 instead #663

Merged
merged 1 commit into from
Apr 24, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 1 addition & 18 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,23 +27,6 @@ def find_version(*file_paths):
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
try:
import torch
has_dev_pytorch = "dev" in torch.__version__
except ImportError:
has_dev_pytorch = False

# Base equirements
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 All @@ -62,7 +45,7 @@ def find_version(*file_paths):
classifiers=["Development Status :: 4 - Beta", "Programming Language :: Python :: 3"],
packages=find_packages(),
python_requires=">=3.6",
install_requires=install_requires,
install_requires=["torch>=1.0.1"],
extras_require={
"dev": [
"black",
Expand Down