style: [E402] module level import not at top of file

pull/1257/head
Mike Sinkovsky 8 years ago committed by Jussi Pakkanen
parent 77515ee541
commit 3adf5aed81
  1. 9
      setup.py

@ -16,6 +16,10 @@
import os import os
import sys import sys
from distutils.dir_util import mkpath
from distutils.file_util import copy_file
from mesonbuild.coredata import version
if sys.version_info[0] < 3: if sys.version_info[0] < 3:
print('Tried to install with Python 2, Meson only supports Python 3.') print('Tried to install with Python 2, Meson only supports Python 3.')
@ -31,9 +35,6 @@ except ImportError:
from distutils.core import setup from distutils.core import setup
from distutils.command.install_scripts import install_scripts as orig from distutils.command.install_scripts import install_scripts as orig
from distutils.file_util import copy_file
from distutils.dir_util import mkpath
class install_scripts(orig): class install_scripts(orig):
def run(self): def run(self):
if sys.platform == 'win32': if sys.platform == 'win32':
@ -52,8 +53,6 @@ class install_scripts(orig):
copy_file(infile, outfile, dry_run=self.dry_run) copy_file(infile, outfile, dry_run=self.dry_run)
self.outfiles.append(outfile) self.outfiles.append(outfile)
from mesonbuild.coredata import version
setup(name='meson', setup(name='meson',
version=version, version=version,
description='A high performance build system', description='A high performance build system',

Loading…
Cancel
Save