Skip to content

Commit

Permalink
Just a bit of reordering.
Browse files Browse the repository at this point in the history
  • Loading branch information
ionelmc committed Jul 17, 2020
1 parent 2bcf97a commit 01f6f6d
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,6 @@
from setuptools import setup
from setuptools.command.build_ext import build_ext


def read(*names, **kwargs):
with io.open(
join(dirname(__file__), *names),
encoding=kwargs.get('encoding', 'utf8')
) as fh:
return fh.read()


# Enable code coverage for C code: we can't use CFLAGS=-coverage in tox.ini, since that may mess with compiling
# dependencies (e.g. numpy). Therefore we set SETUPPY_CFLAGS=-coverage in tox.ini and copy it to CFLAGS here (after
# deps have been safely installed).
Expand All @@ -39,7 +30,6 @@ def read(*names, **kwargs):
LFLAGS = ''



class optional_build_ext(build_ext):
"""Allow the building of C extensions to fail."""
def run(self):
Expand All @@ -64,6 +54,14 @@ def _unavailable(self, e):
print('*' * 80)


def read(*names, **kwargs):
with io.open(
join(dirname(__file__), *names),
encoding=kwargs.get('encoding', 'utf8')
) as fh:
return fh.read()


setup(
name='lazy-object-proxy',
use_scm_version={
Expand Down

0 comments on commit 01f6f6d

Please sign in to comment.