Example #1
0
    _suite.vc.commit(_suite.dir,
                     "Update Python inlined files: %s" % import_version)
    answer = raw_input("Should we push python-import (y/N)? ")
    if answer and answer in "Yy":
        _suite.vc.git_command(
            _suite.dir, ["push", "origin", "python-import:python-import"])
    _suite.vc.update(_suite.dir, rev=tip)
    _suite.vc.git_command(_suite.dir, ["merge", "python-import"])


# ----------------------------------------------------------------------------------------------------------------------
#
# add the defined python benchmark suites
#
# ----------------------------------------------------------------------------------------------------------------------
for py_bench_suite in PythonBenchmarkSuite.get_benchmark_suites():
    mx_benchmark.add_bm_suite(py_bench_suite)

# ----------------------------------------------------------------------------------------------------------------------
#
# register as a GraalVM language
#
# ----------------------------------------------------------------------------------------------------------------------
mx_sdk.register_graalvm_component(
    mx_sdk.GraalVmLanguage(
        suite=_suite,
        name='Graal.Python',
        short_name='pyn',
        dir_name='python',
        license_files=['LICENSE_GRAALPYTHON'],
        third_party_license_files=['3rd_party_licenses_graalpython.txt'],
def _register_bench_suites(namespace):
    for py_bench_suite in PythonBenchmarkSuite.get_benchmark_suites(
            BENCHMARKS):
        mx_benchmark.add_bm_suite(py_bench_suite)