summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2016-01-16 17:35:29 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2016-01-16 17:35:29 +0200
commit23b98cd6e66c6ae0f070e28e0f8b1566c0b5e585 (patch)
treee349597556abe3d22578cfb1f9529f4626ceb5aa
parent1510522b1b9970376a1e1cc5f39e00d8749ec19a (diff)
downloadmeson-23b98cd6e66c6ae0f070e28e0f8b1566c0b5e585.tar.gz
Renamed meson package to mesonbuild so that we can have a script named meson in the same toplevel dir.
-rwxr-xr-xmeson (renamed from meson.py)4
-rw-r--r--mesonbuild/__init__.py (renamed from meson/__init__.py)0
-rw-r--r--mesonbuild/backends.py (renamed from meson/backends.py)0
-rw-r--r--mesonbuild/build.py (renamed from meson/build.py)0
-rw-r--r--mesonbuild/compilers.py (renamed from meson/compilers.py)0
-rw-r--r--mesonbuild/coredata.py (renamed from meson/coredata.py)0
-rw-r--r--mesonbuild/dependencies.py (renamed from meson/dependencies.py)0
-rw-r--r--mesonbuild/environment.py (renamed from meson/environment.py)0
-rw-r--r--mesonbuild/interpreter.py (renamed from meson/interpreter.py)2
-rw-r--r--mesonbuild/mconf.py (renamed from meson/mconf.py)0
-rw-r--r--mesonbuild/mesonlib.py (renamed from meson/mesonlib.py)0
-rw-r--r--mesonbuild/mesonmain.py (renamed from meson/mesonmain.py)21
-rw-r--r--mesonbuild/mesonmain.ui (renamed from meson/mesonmain.ui)0
-rw-r--r--mesonbuild/mesonrunner.ui (renamed from meson/mesonrunner.ui)0
-rw-r--r--mesonbuild/mesonstart.ui (renamed from meson/mesonstart.ui)0
-rw-r--r--mesonbuild/mgui.py (renamed from meson/mgui.py)0
-rw-r--r--mesonbuild/mintro.py (renamed from meson/mintro.py)0
-rw-r--r--mesonbuild/mlog.py (renamed from meson/mlog.py)0
-rw-r--r--mesonbuild/modules/gnome.py (renamed from meson/modules/gnome.py)0
-rw-r--r--mesonbuild/modules/modtest.py (renamed from meson/modules/modtest.py)0
-rw-r--r--mesonbuild/modules/pkgconfig.py (renamed from meson/modules/pkgconfig.py)0
-rw-r--r--mesonbuild/modules/qt4.py (renamed from meson/modules/qt4.py)0
-rw-r--r--mesonbuild/modules/qt5.py (renamed from meson/modules/qt5.py)0
-rw-r--r--mesonbuild/modules/rpm.py (renamed from meson/modules/rpm.py)0
-rw-r--r--mesonbuild/modules/windows.py (renamed from meson/modules/windows.py)0
-rw-r--r--mesonbuild/mparser.py (renamed from meson/mparser.py)0
-rw-r--r--mesonbuild/ninjabackend.py (renamed from meson/ninjabackend.py)0
-rw-r--r--mesonbuild/optinterpreter.py (renamed from meson/optinterpreter.py)0
-rw-r--r--mesonbuild/scripts/commandrunner.py (renamed from meson/scripts/commandrunner.py)0
-rw-r--r--mesonbuild/scripts/delwithsuffix.py (renamed from meson/scripts/delwithsuffix.py)0
-rw-r--r--mesonbuild/scripts/depfixer.py (renamed from meson/scripts/depfixer.py)0
-rw-r--r--mesonbuild/scripts/dirchanger.py (renamed from meson/scripts/dirchanger.py)0
-rw-r--r--mesonbuild/scripts/gtkdochelper.py (renamed from meson/scripts/gtkdochelper.py)0
-rw-r--r--mesonbuild/scripts/meson_benchmark.py (renamed from meson/scripts/meson_benchmark.py)0
-rw-r--r--mesonbuild/scripts/meson_install.py (renamed from meson/scripts/meson_install.py)0
-rw-r--r--mesonbuild/scripts/meson_test.py (renamed from meson/scripts/meson_test.py)2
-rw-r--r--mesonbuild/scripts/regen_checker.py (renamed from meson/scripts/regen_checker.py)0
-rw-r--r--mesonbuild/scripts/symbolextractor.py (renamed from meson/scripts/symbolextractor.py)2
-rw-r--r--mesonbuild/scripts/vcstagger.py (renamed from meson/scripts/vcstagger.py)0
-rw-r--r--mesonbuild/vs2010backend.py (renamed from meson/vs2010backend.py)0
-rw-r--r--mesonbuild/wrap/wrap.py (renamed from meson/wrap/wrap.py)0
-rwxr-xr-xmesonbuild/wrap/wraptool.py (renamed from meson/wrap/wraptool.py)0
-rw-r--r--mesonbuild/xcodebackend.py (renamed from meson/xcodebackend.py)0
-rwxr-xr-xmesonconf2
-rwxr-xr-xmesongui2
-rwxr-xr-xmesonintrospect2
-rwxr-xr-xrun_cross_test.py2
-rwxr-xr-xrun_tests.py14
48 files changed, 26 insertions, 27 deletions
diff --git a/meson.py b/meson
index ab8db7250..b9773687b 100755
--- a/meson.py
+++ b/meson
@@ -14,11 +14,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-from meson import mesonmain
+from mesonbuild import mesonmain
import sys, os
thisfile = __file__
if not os.path.isabs(thisfile):
- thisfile = os.path.join(os.getcwd(), thisfile)
+ thisfile = os.path.normpath(os.path.join(os.getcwd(), thisfile))
sys.exit(mesonmain.run(thisfile, sys.argv[1:]))
diff --git a/meson/__init__.py b/mesonbuild/__init__.py
index e69de29bb..e69de29bb 100644
--- a/meson/__init__.py
+++ b/mesonbuild/__init__.py
diff --git a/meson/backends.py b/mesonbuild/backends.py
index c583a7b11..c583a7b11 100644
--- a/meson/backends.py
+++ b/mesonbuild/backends.py
diff --git a/meson/build.py b/mesonbuild/build.py
index c0ba89518..c0ba89518 100644
--- a/meson/build.py
+++ b/mesonbuild/build.py
diff --git a/meson/compilers.py b/mesonbuild/compilers.py
index ec0181efa..ec0181efa 100644
--- a/meson/compilers.py
+++ b/mesonbuild/compilers.py
diff --git a/meson/coredata.py b/mesonbuild/coredata.py
index 5b1102c1e..5b1102c1e 100644
--- a/meson/coredata.py
+++ b/mesonbuild/coredata.py
diff --git a/meson/dependencies.py b/mesonbuild/dependencies.py
index 974559fbe..974559fbe 100644
--- a/meson/dependencies.py
+++ b/mesonbuild/dependencies.py
diff --git a/meson/environment.py b/mesonbuild/environment.py
index 8df856ca7..8df856ca7 100644
--- a/meson/environment.py
+++ b/mesonbuild/environment.py
diff --git a/meson/interpreter.py b/mesonbuild/interpreter.py
index 1a32998cc..4894ac726 100644
--- a/meson/interpreter.py
+++ b/mesonbuild/interpreter.py
@@ -1094,7 +1094,7 @@ class Interpreter():
raise InvalidCode('Import takes one argument.')
modname = args[0]
if not modname in self.environment.coredata.modules:
- module = importlib.import_module('meson.modules.' + modname).initialize()
+ module = importlib.import_module('mesonbuild.modules.' + modname).initialize()
self.environment.coredata.modules[modname] = module
return ModuleHolder(modname, self.environment.coredata.modules[modname], self)
diff --git a/meson/mconf.py b/mesonbuild/mconf.py
index f17442567..f17442567 100644
--- a/meson/mconf.py
+++ b/mesonbuild/mconf.py
diff --git a/meson/mesonlib.py b/mesonbuild/mesonlib.py
index 2ab5ce44c..2ab5ce44c 100644
--- a/meson/mesonlib.py
+++ b/mesonbuild/mesonlib.py
diff --git a/meson/mesonmain.py b/mesonbuild/mesonmain.py
index 7b4f2c261..82f30fe03 100644
--- a/meson/mesonmain.py
+++ b/mesonbuild/mesonmain.py
@@ -167,37 +167,37 @@ def run_script_command(args):
cmdname = args[0]
cmdargs = args[1:]
if cmdname == 'test':
- import meson.scripts.meson_test as abc
+ import mesonbuild.scripts.meson_test as abc
cmdfunc = abc.run
elif cmdname == 'benchmark':
- import meson.scripts.meson_benchmark as abc
+ import mesonbuild.scripts.meson_benchmark as abc
cmdfunc = abc.run
elif cmdname == 'install':
- import meson.scripts.meson_install as abc
+ import mesonbuild.scripts.meson_install as abc
cmdfunc = abc.run
elif cmdname == 'commandrunner':
- import meson.scripts.commandrunner as abc
+ import mesonbuild.scripts.commandrunner as abc
cmdfunc = abc.run
elif cmdname == 'delsuffix':
- import meson.scripts.delwithsuffix as abc
+ import mesonbuild.scripts.delwithsuffix as abc
cmdfunc = abc.run
elif cmdname == 'depfixer':
- import meson.scripts.depfixer as abc
+ import mesonbuild.scripts.depfixer as abc
cmdfunc = abc.run
elif cmdname == 'dirchanger':
- import meson.scripts.dirchanger as abc
+ import mesonbuild.scripts.dirchanger as abc
cmdfunc = abc.run
elif cmdname == 'gtkdoc':
import meson.scripts.gtkdochelper as abc
cmdfunc = abc.run
elif cmdname == 'regencheck':
- import meson.scripts.regen_checker as abc
+ import mesonbuild.scripts.regen_checker as abc
cmdfunc = abc.run
elif cmdname == 'symbolextractor':
- import meson.scripts.symbolextractor as abc
+ import mesonbuild.scripts.symbolextractor as abc
cmdfunc = abc.run
elif cmdname == 'vcstagger':
- import meson.scripts.vcstagger as abc
+ import mesonbuild.scripts.vcstagger as abc
cmdfunc = abc.run
else:
raise MesonException('Unknown internal command {}.'.format(cmdname))
@@ -239,7 +239,6 @@ def run(mainfile, args):
mainfile = os.path.join(os.path.dirname(mainfile), resolved)
else:
mainfile = resolved
-
try:
app = MesonApp(dir1, dir2, mainfile, handshake, options)
except Exception as e:
diff --git a/meson/mesonmain.ui b/mesonbuild/mesonmain.ui
index 209584b42..209584b42 100644
--- a/meson/mesonmain.ui
+++ b/mesonbuild/mesonmain.ui
diff --git a/meson/mesonrunner.ui b/mesonbuild/mesonrunner.ui
index 942c6bddb..942c6bddb 100644
--- a/meson/mesonrunner.ui
+++ b/mesonbuild/mesonrunner.ui
diff --git a/meson/mesonstart.ui b/mesonbuild/mesonstart.ui
index c6c5f965d..c6c5f965d 100644
--- a/meson/mesonstart.ui
+++ b/mesonbuild/mesonstart.ui
diff --git a/meson/mgui.py b/mesonbuild/mgui.py
index 6e57ce7b2..6e57ce7b2 100644
--- a/meson/mgui.py
+++ b/mesonbuild/mgui.py
diff --git a/meson/mintro.py b/mesonbuild/mintro.py
index b08811741..b08811741 100644
--- a/meson/mintro.py
+++ b/mesonbuild/mintro.py
diff --git a/meson/mlog.py b/mesonbuild/mlog.py
index 2807c2bdc..2807c2bdc 100644
--- a/meson/mlog.py
+++ b/mesonbuild/mlog.py
diff --git a/meson/modules/gnome.py b/mesonbuild/modules/gnome.py
index e552b8488..e552b8488 100644
--- a/meson/modules/gnome.py
+++ b/mesonbuild/modules/gnome.py
diff --git a/meson/modules/modtest.py b/mesonbuild/modules/modtest.py
index c9247e6bf..c9247e6bf 100644
--- a/meson/modules/modtest.py
+++ b/mesonbuild/modules/modtest.py
diff --git a/meson/modules/pkgconfig.py b/mesonbuild/modules/pkgconfig.py
index f18decf67..f18decf67 100644
--- a/meson/modules/pkgconfig.py
+++ b/mesonbuild/modules/pkgconfig.py
diff --git a/meson/modules/qt4.py b/mesonbuild/modules/qt4.py
index 162b553b8..162b553b8 100644
--- a/meson/modules/qt4.py
+++ b/mesonbuild/modules/qt4.py
diff --git a/meson/modules/qt5.py b/mesonbuild/modules/qt5.py
index 81edc7684..81edc7684 100644
--- a/meson/modules/qt5.py
+++ b/mesonbuild/modules/qt5.py
diff --git a/meson/modules/rpm.py b/mesonbuild/modules/rpm.py
index a2c050240..a2c050240 100644
--- a/meson/modules/rpm.py
+++ b/mesonbuild/modules/rpm.py
diff --git a/meson/modules/windows.py b/mesonbuild/modules/windows.py
index a78525023..a78525023 100644
--- a/meson/modules/windows.py
+++ b/mesonbuild/modules/windows.py
diff --git a/meson/mparser.py b/mesonbuild/mparser.py
index 1d569d5cd..1d569d5cd 100644
--- a/meson/mparser.py
+++ b/mesonbuild/mparser.py
diff --git a/meson/ninjabackend.py b/mesonbuild/ninjabackend.py
index 36c5ce961..36c5ce961 100644
--- a/meson/ninjabackend.py
+++ b/mesonbuild/ninjabackend.py
diff --git a/meson/optinterpreter.py b/mesonbuild/optinterpreter.py
index f0c93ae01..f0c93ae01 100644
--- a/meson/optinterpreter.py
+++ b/mesonbuild/optinterpreter.py
diff --git a/meson/scripts/commandrunner.py b/mesonbuild/scripts/commandrunner.py
index f5a2fffdf..f5a2fffdf 100644
--- a/meson/scripts/commandrunner.py
+++ b/mesonbuild/scripts/commandrunner.py
diff --git a/meson/scripts/delwithsuffix.py b/mesonbuild/scripts/delwithsuffix.py
index 38ab406fc..38ab406fc 100644
--- a/meson/scripts/delwithsuffix.py
+++ b/mesonbuild/scripts/delwithsuffix.py
diff --git a/meson/scripts/depfixer.py b/mesonbuild/scripts/depfixer.py
index 1ab83b6d4..1ab83b6d4 100644
--- a/meson/scripts/depfixer.py
+++ b/mesonbuild/scripts/depfixer.py
diff --git a/meson/scripts/dirchanger.py b/mesonbuild/scripts/dirchanger.py
index 93a901d54..93a901d54 100644
--- a/meson/scripts/dirchanger.py
+++ b/mesonbuild/scripts/dirchanger.py
diff --git a/meson/scripts/gtkdochelper.py b/mesonbuild/scripts/gtkdochelper.py
index 68be8f2af..68be8f2af 100644
--- a/meson/scripts/gtkdochelper.py
+++ b/mesonbuild/scripts/gtkdochelper.py
diff --git a/meson/scripts/meson_benchmark.py b/mesonbuild/scripts/meson_benchmark.py
index 26f1f95a1..26f1f95a1 100644
--- a/meson/scripts/meson_benchmark.py
+++ b/mesonbuild/scripts/meson_benchmark.py
diff --git a/meson/scripts/meson_install.py b/mesonbuild/scripts/meson_install.py
index 1ede75729..1ede75729 100644
--- a/meson/scripts/meson_install.py
+++ b/mesonbuild/scripts/meson_install.py
diff --git a/meson/scripts/meson_test.py b/mesonbuild/scripts/meson_test.py
index c5814ef32..03fd07322 100644
--- a/meson/scripts/meson_test.py
+++ b/mesonbuild/scripts/meson_test.py
@@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-import meson
+import mesonbuild
import sys, os, subprocess, time, datetime, pickle, multiprocessing, json
import concurrent.futures as conc
import argparse
diff --git a/meson/scripts/regen_checker.py b/mesonbuild/scripts/regen_checker.py
index f360a7ce3..f360a7ce3 100644
--- a/meson/scripts/regen_checker.py
+++ b/mesonbuild/scripts/regen_checker.py
diff --git a/meson/scripts/symbolextractor.py b/mesonbuild/scripts/symbolextractor.py
index 9607466d0..79c126420 100644
--- a/meson/scripts/symbolextractor.py
+++ b/mesonbuild/scripts/symbolextractor.py
@@ -23,7 +23,7 @@
# http://cgit.freedesktop.org/libreoffice/core/commit/?id=3213cd54b76bc80a6f0516aac75a48ff3b2ad67c
import sys, subprocess
-from meson import mesonlib
+from mesonbuild import mesonlib
import argparse
parser = argparse.ArgumentParser()
diff --git a/meson/scripts/vcstagger.py b/mesonbuild/scripts/vcstagger.py
index 390e37a8d..390e37a8d 100644
--- a/meson/scripts/vcstagger.py
+++ b/mesonbuild/scripts/vcstagger.py
diff --git a/meson/vs2010backend.py b/mesonbuild/vs2010backend.py
index 33e9646e3..33e9646e3 100644
--- a/meson/vs2010backend.py
+++ b/mesonbuild/vs2010backend.py
diff --git a/meson/wrap/wrap.py b/mesonbuild/wrap/wrap.py
index 2818fa04f..2818fa04f 100644
--- a/meson/wrap/wrap.py
+++ b/mesonbuild/wrap/wrap.py
diff --git a/meson/wrap/wraptool.py b/mesonbuild/wrap/wraptool.py
index d2f0a2839..d2f0a2839 100755
--- a/meson/wrap/wraptool.py
+++ b/mesonbuild/wrap/wraptool.py
diff --git a/meson/xcodebackend.py b/mesonbuild/xcodebackend.py
index 8ac3f67b4..8ac3f67b4 100644
--- a/meson/xcodebackend.py
+++ b/mesonbuild/xcodebackend.py
diff --git a/mesonconf b/mesonconf
index 3b5b5e966..2b0a1a61f 100755
--- a/mesonconf
+++ b/mesonconf
@@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-from meson import mconf
+from mesonbuild import mconf
import sys
sys.exit(mconf.run(sys.argv[1:]))
diff --git a/mesongui b/mesongui
index c1cd8027a..9e16b001c 100755
--- a/mesongui
+++ b/mesongui
@@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-from meson import mgui
+from mesonbuild import mgui
import sys
sys.exit(mgui.run(sys.argv))
diff --git a/mesonintrospect b/mesonintrospect
index 94c05eaeb..4d20548b1 100755
--- a/mesonintrospect
+++ b/mesonintrospect
@@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-from meson import mintro
+from mesonbuild import mintro
import sys
sys.exit(mintro.run(sys.argv[1:]))
diff --git a/run_cross_test.py b/run_cross_test.py
index 3545cfd64..a7888507a 100755
--- a/run_cross_test.py
+++ b/run_cross_test.py
@@ -23,7 +23,7 @@ Not part of the main test suite because of two reasons:
Eventually migrate to something fancier.'''
import os, subprocess, shutil, sys
-import meson.environment as environment
+import mesonbuild.environment as environment
from run_tests import gather_tests
diff --git a/run_tests.py b/run_tests.py
index bf56ea86d..221194993 100755
--- a/run_tests.py
+++ b/run_tests.py
@@ -18,16 +18,16 @@ from glob import glob
import os, subprocess, shutil, sys, signal
from io import StringIO
import sys
-from meson import environment
-from meson import mesonlib
-from meson import mlog
-from meson import mesonmain
-from meson.scripts import meson_test, meson_benchmark
+from mesonbuild import environment
+from mesonbuild import mesonlib
+from mesonbuild import mlog
+from mesonbuild import mesonmain
+from mesonbuild.scripts import meson_test, meson_benchmark
import argparse
import xml.etree.ElementTree as ET
import time
-from meson.mesonmain import backendlist
+from mesonbuild.mesonmain import backendlist
class TestResult:
def __init__(self, msg, stdo, stde, conftime=0, buildtime=0, testtime=0):
@@ -45,7 +45,7 @@ print_debug = 'MESON_PRINT_TEST_OUTPUT' in os.environ
test_build_dir = 'work area'
install_dir = os.path.join(os.path.split(os.path.abspath(__file__))[0], 'install dir')
-meson_command = os.path.join(os.getcwd(), 'meson.py')
+meson_command = os.path.join(os.getcwd(), 'meson')
class StopException(Exception):
def __init__(self):