mirror of
https://github.com/SELinuxProject/setools
synced 2025-03-25 04:26:28 +00:00
PEP8 whitespace fixes in setup.py.
This commit is contained in:
parent
8a37ea0ed9
commit
27be28ecf6
9
setup.py
9
setup.py
@ -19,11 +19,13 @@ class YaccCommand(Command):
|
||||
pass
|
||||
|
||||
def run(self):
|
||||
command = ['bison','-y','-d','libqpol/policy_parse.y','-o','libqpol/policy_parse.c']
|
||||
command = ['bison', '-y', '-d', 'libqpol/policy_parse.y',
|
||||
'-o', 'libqpol/policy_parse.c']
|
||||
self.announce("Generating parser", level=log.INFO)
|
||||
self.announce(' '.join(command), level=log.INFO)
|
||||
subprocess.check_call(command)
|
||||
|
||||
|
||||
class LexCommand(Command):
|
||||
description = "Build lex scanners."
|
||||
user_options = []
|
||||
@ -35,12 +37,15 @@ class LexCommand(Command):
|
||||
pass
|
||||
|
||||
def run(self):
|
||||
command = ['flex','-o','libqpol/policy_scan.c','libqpol/policy_scan.l']
|
||||
command = [
|
||||
'flex', '-o', 'libqpol/policy_scan.c', 'libqpol/policy_scan.l']
|
||||
self.announce("Generating scanner", level=log.INFO)
|
||||
self.announce(' '.join(command), level=log.INFO)
|
||||
subprocess.check_call(command)
|
||||
|
||||
|
||||
class BuildExtCommand(build_ext):
|
||||
|
||||
def run(self):
|
||||
self.run_command('build_yacc')
|
||||
self.run_command('build_lex')
|
||||
|
Loading…
Reference in New Issue
Block a user