Skip to content

Commit

Permalink
Fix PEP8 violations in setup.py.
Browse files Browse the repository at this point in the history
Reported via `flake8 --ignore=E501 setup.py` (E501 is a warning about lines
longer than 79 characters).
  • Loading branch information
s3rvac committed Oct 6, 2018
1 parent b74e28f commit 26e0fb4
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,11 @@ def initialize_options(self):
self.debug = None

def run(self):
self.set_undefined_options('build',
('with_unit_tests', 'with_unit_tests'),
('debug', 'debug')
)
self.set_undefined_options(
'build',
('with_unit_tests', 'with_unit_tests'),
('debug', 'debug')
)

try:
subprocess.check_output(['cmake', '--version'])
Expand Down Expand Up @@ -104,6 +105,7 @@ def run(self):
subprocess.check_call(configure_cmd)
subprocess.check_call(build_cmd)


def get_long_description():
if len(sys.argv) > 1 and 'dist' in sys.argv[1]:
try:
Expand All @@ -113,6 +115,7 @@ def get_long_description():
print('===> PANDOC is not installed on the system!', file=sys.stderr)
return ''


setup(
version='2.2.1',
name='yaramod',
Expand Down

0 comments on commit 26e0fb4

Please sign in to comment.