From 28d23170925df843eb22878d37c686ad53043d1d Mon Sep 17 00:00:00 2001 From: Mike Croucher Date: Thu, 10 Sep 2015 08:35:09 +0100 Subject: [PATCH] Fixed for Python3 --- setup.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 2b5f2e4d..a69876f6 100644 --- a/setup.py +++ b/setup.py @@ -1,18 +1,19 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- - +from __future__ import print_function import os import sys from setuptools import setup, Extension import numpy as np + def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() def read_to_rst(fname): try: import pypandoc - print 'Warning in installation: For rst formatting in pypi, consider installing pypandoc for conversion' + print('Warning in installation: For rst formatting in pypi, consider installing pypandoc for conversion') return pypandoc.convert('README.md', 'rst') except: return read(fname) @@ -22,7 +23,7 @@ exec(read('GPy/__version__.py'), version_dummy) __version__ = version_dummy['__version__'] del version_dummy -#Mac OS X Clang doesn't support OpenMP th the current time. +#Mac OS X Clang doesn't support OpenMP at the current time. #This detects if we are building on a Mac def ismac(): platform = sys.platform