mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-06-08 15:05:15 +02:00
[rst] unicode is a pain
This commit is contained in:
parent
ff77ff364b
commit
4f877dd62c
3 changed files with 8 additions and 6 deletions
6
setup.py
6
setup.py
|
|
@ -48,7 +48,9 @@ def read(fname):
|
|||
def read_to_rst(fname):
|
||||
try:
|
||||
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:
|
||||
return read(fname)
|
||||
|
||||
|
|
@ -91,7 +93,7 @@ ext_mods = [Extension(name='GPy.kern.src.stationary_cython',
|
|||
|
||||
setup(name = 'GPy',
|
||||
version = __version__,
|
||||
author = read('AUTHORS.txt'),
|
||||
author = read_to_rst('AUTHORS.TXT'),
|
||||
author_email = "gpy.authors@gmail.com",
|
||||
description = ("The Gaussian Process Toolbox"),
|
||||
license = "BSD 3-clause",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue