File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change 1919from setuptools import setup
2020from setuptools .command .build_ext import build_ext
2121
22-
23- def read (* names , ** kwargs ):
24- with io .open (
25- join (dirname (__file__ ), * names ),
26- encoding = kwargs .get ('encoding' , 'utf8' )
27- ) as fh :
28- return fh .read ()
29-
30-
3122# Enable code coverage for C code: we can't use CFLAGS=-coverage in tox.ini, since that may mess with compiling
3223# dependencies (e.g. numpy). Therefore we set SETUPPY_CFLAGS=-coverage in tox.ini and copy it to CFLAGS here (after
3324# deps have been safely installed).
@@ -39,7 +30,6 @@ def read(*names, **kwargs):
3930 LFLAGS = ''
4031
4132
42-
4333class optional_build_ext (build_ext ):
4434 """Allow the building of C extensions to fail."""
4535 def run (self ):
@@ -64,6 +54,14 @@ def _unavailable(self, e):
6454 print ('*' * 80 )
6555
6656
57+ def read (* names , ** kwargs ):
58+ with io .open (
59+ join (dirname (__file__ ), * names ),
60+ encoding = kwargs .get ('encoding' , 'utf8' )
61+ ) as fh :
62+ return fh .read ()
63+
64+
6765setup (
6866 name = 'lazy-object-proxy' ,
6967 use_scm_version = {
You can’t perform that action at this time.
0 commit comments