[rst] unicode is a pain

This commit is contained in:
mzwiessele 2015-10-12 10:05:59 +01:00
parent ff77ff364b
commit 4f877dd62c
3 changed files with 8 additions and 6 deletions

View file

@ -1 +1 @@
See contributors. [Humans](https://github.com/SheffieldML/GPy/graphs/contributors)

View file

@ -1,6 +1,6 @@
# GPy # GPy
A Gaussian processes framework in Python. The Gaussian processes framework in Python.
* [GPy homepage](http://sheffieldml.github.io/GPy/) * [GPy homepage](http://sheffieldml.github.io/GPy/)
* [Tutorial notebooks](http://nbviewer.ipython.org/github/SheffieldML/notebook/blob/master/GPy/index.ipynb) * [Tutorial notebooks](http://nbviewer.ipython.org/github/SheffieldML/notebook/blob/master/GPy/index.ipynb)
@ -46,8 +46,8 @@ With anaconda you can install GPy by the following:
conda update scipy conda update scipy
pip install gpy pip install gpy
We've also had luck with [enthought](http://www.enthought.com). Install scipy later or the same as We've also had luck with [enthought](http://www.enthought.com). Install scipy 0.16 (or later)
0.16 and then pip install GPy: and then pip install GPy:
pip install gpy pip install gpy

View file

@ -48,7 +48,9 @@ def read(fname):
def read_to_rst(fname): def read_to_rst(fname):
try: try:
import pypandoc import pypandoc
return pypandoc.convert(read(fname), 'rst') rstname = "{}.{}".format(os.path.splitext(fname)[0], 'rst')
pypandoc.convert(read(fname), 'rst', rstname)
return read(rstname)
except ImportError: except ImportError:
return read(fname) return read(fname)
@ -91,7 +93,7 @@ ext_mods = [Extension(name='GPy.kern.src.stationary_cython',
setup(name = 'GPy', setup(name = 'GPy',
version = __version__, version = __version__,
author = read('AUTHORS.txt'), author = read_to_rst('AUTHORS.TXT'),
author_email = "gpy.authors@gmail.com", author_email = "gpy.authors@gmail.com",
description = ("The Gaussian Process Toolbox"), description = ("The Gaussian Process Toolbox"),
license = "BSD 3-clause", license = "BSD 3-clause",