Skip to content

Commit 01f6f6d

Browse files
committed
Just a bit of reordering.
1 parent 2bcf97a commit 01f6f6d

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

setup.py

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,6 @@
1919
from setuptools import setup
2020
from 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-
4333
class 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+
6765
setup(
6866
name='lazy-object-proxy',
6967
use_scm_version={

0 commit comments

Comments
 (0)