Skip to content

Commit

Permalink
Format Python.
Browse files Browse the repository at this point in the history
Signed-off-by: Dusty DeWeese <[email protected]>
  • Loading branch information
HackerFoo committed Dec 16, 2020
1 parent 261aee8 commit e030368
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,11 @@ def __init__(self, name, sourcedir='', prefix=''):

class CMakeBuild(build_ext):
user_options = [
('antlr-runtime=', None, "Whether to use a 'static' or 'shared' ANTLR runtime."),
(
'antlr-runtime=', None,
"Whether to use a 'static' or 'shared' ANTLR runtime."),
]

def copy_extensions_to_source(self):
original_extensions = list(self.extensions)
self.extensions = [
Expand Down Expand Up @@ -117,7 +120,9 @@ def initialize_options(self):

def finalize_options(self):
super().finalize_options()
assert self.antlr_runtime in ['static', 'shared'], 'Invalid antlr_runtime'
assert self.antlr_runtime in [
'static', 'shared'
], 'Invalid antlr_runtime'


setuptools.setup(
Expand Down

0 comments on commit e030368

Please sign in to comment.