Fixed for Python3

This commit is contained in:
Mike Croucher 2015-09-10 08:35:09 +01:00
parent 40e2d35a27
commit 28d2317092

View file

@ -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