提交 451f7b8f authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Merge pull request #2183 from lzamparo/unicode_doc_fix/master

setup.py: replaced calls to open() with codecs.open() to read non-ASCII characters...
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
import os import os
import sys import sys
import subprocess import subprocess
import codecs
from fnmatch import fnmatchcase from fnmatch import fnmatchcase
from distutils.util import convert_path from distutils.util import convert_path
try: try:
...@@ -54,8 +55,8 @@ MAINTAINER = "LISA laboratory, University of Montreal" ...@@ -54,8 +55,8 @@ MAINTAINER = "LISA laboratory, University of Montreal"
MAINTAINER_EMAIL = "theano-dev@googlegroups.com" MAINTAINER_EMAIL = "theano-dev@googlegroups.com"
DESCRIPTION = ('Optimizing compiler for evaluating mathematical ' + DESCRIPTION = ('Optimizing compiler for evaluating mathematical ' +
'expressions on CPUs and GPUs.') 'expressions on CPUs and GPUs.')
LONG_DESCRIPTION = (open("DESCRIPTION.txt").read() + "\n\n" + LONG_DESCRIPTION = (codecs.open("DESCRIPTION.txt",encoding='utf-8').read() + "\n\n" +
open("NEWS.txt").read()) codecs.open("NEWS.txt",encoding='utf-8').read())
URL = "http://deeplearning.net/software/theano/" URL = "http://deeplearning.net/software/theano/"
DOWNLOAD_URL = "" DOWNLOAD_URL = ""
LICENSE = 'BSD' LICENSE = 'BSD'
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论