|
|
@ -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', |
|
|
|