|
|
|
@ -16,6 +16,10 @@ |
|
|
|
|
|
|
|
|
|
import os |
|
|
|
|
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: |
|
|
|
|
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.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): |
|
|
|
|
def run(self): |
|
|
|
|
if sys.platform == 'win32': |
|
|
|
@ -52,8 +53,6 @@ class install_scripts(orig): |
|
|
|
|
copy_file(infile, outfile, dry_run=self.dry_run) |
|
|
|
|
self.outfiles.append(outfile) |
|
|
|
|
|
|
|
|
|
from mesonbuild.coredata import version |
|
|
|
|
|
|
|
|
|
setup(name='meson', |
|
|
|
|
version=version, |
|
|
|
|
description='A high performance build system', |
|
|
|
|