mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-06-08 15:05:15 +02:00
Fixed for Python3
This commit is contained in:
parent
40e2d35a27
commit
28d2317092
1 changed files with 4 additions and 3 deletions
7
setup.py
7
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue