mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-07-02 16:01:03 +02:00
Merge pull request #761 from GeoffDNeal/patch-1
Fix clean install of Python 2.7
This commit is contained in:
commit
c8255bdca2
1 changed files with 5 additions and 0 deletions
5
setup.py
5
setup.py
|
|
@ -40,6 +40,11 @@ import sys
|
||||||
from setuptools import setup, Extension
|
from setuptools import setup, Extension
|
||||||
import codecs
|
import codecs
|
||||||
|
|
||||||
|
try:
|
||||||
|
ModuleNotFoundError
|
||||||
|
except NameError:
|
||||||
|
ModuleNotFoundError = ImportError
|
||||||
|
|
||||||
def read(fname):
|
def read(fname):
|
||||||
with codecs.open(fname, 'r', 'latin') as f:
|
with codecs.open(fname, 'r', 'latin') as f:
|
||||||
return f.read()
|
return f.read()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue