mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-06-08 15:05:15 +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
|
||||
import codecs
|
||||
|
||||
try:
|
||||
ModuleNotFoundError
|
||||
except NameError:
|
||||
ModuleNotFoundError = ImportError
|
||||
|
||||
def read(fname):
|
||||
with codecs.open(fname, 'r', 'latin') as f:
|
||||
return f.read()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue