Raw File
Tip revision: 941b21fdda87cfc39169d71edf8647820fcbe82d authored by ST John on 04 December 2019, 13:22 UTC
fix links to point to correct (1.0) tutorial notebooks
Tip revision: 941b21f
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# pylint: skip-file

import os
import re
import sys
from pathlib import Path

from pkg_resources import parse_version
from setuptools import find_packages, setup

# load version form

with open(str(Path(".", "VERSION").absolute())) as version_file:
    version =

# Dependencies of GPflow
requirements = [

min_tf_version = '1.12.0'
max_tf_version = '2.0'
tf_cpu = 'tensorflow>={},<{}'.format(min_tf_version, max_tf_version)
tf_gpu = 'tensorflow-gpu>={},<{}'.format(min_tf_version, max_tf_version)

# Only detect TF if not installed or outdated. If not, do not do not list as
# requirement to avoid installing over e.g. tensorflow-gpu
# To avoid this, rely on importing rather than the package name (like pip).

    # If tf not installed, import raises ImportError
    import tensorflow as tf
    if parse_version(tf.VERSION) < parse_version(min_tf_version):
        # TF pre-installed, but below the minimum required version
        raise DeprecationWarning("TensorFlow version below minimum requirement")
    if parse_version(tf.VERSION) >= parse_version(max_tf_version):
        # TF pre-installed, but above the maximum required version
        raise DeprecationWarning("TensorFlow version above maximum requirement")
except (ImportError, DeprecationWarning) as e:
    # Add TensorFlow to dependencies to trigger installation/update

packages = find_packages('.')
package_data = {'gpflow': ['gpflow/gpflowrc']}

      author="James Hensman, Alex Matthews",
      description=("Gaussian process methods in tensorflow"),
      license="Apache License 2.0",
      keywords="machine-learning gaussian-processes kernels tensorflow",
      extras_require={'Tensorflow with GPU': [tf_gpu]},
          'License :: OSI Approved :: Apache Software License',
          'Natural Language :: English',
          'Operating System :: MacOS :: MacOS X',
          'Operating System :: Microsoft :: Windows',
          'Operating System :: POSIX :: Linux',
          'Programming Language :: Python :: 3.5',
          'Programming Language :: Python :: 3.6',
          'Topic :: Scientific/Engineering :: Artificial Intelligence'
back to top