Home
last modified time | relevance | path

Searched full:python (Results 1 – 25 of 211) sorted by relevance

123456789

/qemu/tests/qemu-iotests/
H A D03657 $PYTHON qcow2.py "$TEST_IMG" set-feature-bit incompatible 63
60 $PYTHON qcow2.py "$TEST_IMG" del-header-ext 0x6803f857
62 $PYTHON qcow2.py "$TEST_IMG" dump-header-exts
66 printf "\x00\x3f%s" "Test feature" | $PYTHON qcow2.py "$TEST_IMG" add-header-ext-stdio 0x6803f857
73 $PYTHON qcow2.py "$TEST_IMG" set-feature-bit incompatible 61
74 $PYTHON qcow2.py "$TEST_IMG" set-feature-bit incompatible 62
75 $PYTHON qcow2.py "$TEST_IMG" set-feature-bit incompatible 63
78 $PYTHON qcow2.py "$TEST_IMG" del-header-ext 0x6803f857
82 printf "\x00\x3f%s" "Test feature" | $PYTHON qcow2.py "$TEST_IMG" add-header-ext-stdio 0x6803f857
86 $PYTHON qcow2.py "$TEST_IMG" del-header-ext 0x6803f857
[all …]
H A Dmeson.build20 qemu_iotests_env = {'PYTHON': python.full_path()}
50 [python, qemu_iotests_check_cmd] + args + ['-n'],
63 python,
/qemu/python/
H A DREADME.rst1 QEMU Python Tooling
4 This directory houses Python tooling used by the QEMU project to build,
18 local python packages. If you are inside of a virtual environment,
36 <https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/>`_
47 directory, e.g. ``~/src/qemu/python``. See
48 https://docs.python.org/3/using/cmdline.html#envvar-PYTHONPATH
50 2. Inside a Python script, use ``sys.path`` to forcibly include a search
52 https://docs.python.org/3/library/sys.html#sys.path
62 ``> PYTHONPATH=~/src/qemu/python python3 -m qemu.qmp.qmp_shell``
64 The mappings between console script name and python module path can be
[all …]
H A Dsetup.cfg8 description = QEMU Python Build, Debug and SDK tooling.
16 Programming Language :: Python :: 3 :: Only
17 Programming Language :: Python :: 3.9
18 Programming Language :: Python :: 3.10
19 Programming Language :: Python :: 3.11
20 Programming Language :: Python :: 3.12
21 Programming Language :: Python :: 3.13
183 # on all supported python versions. To use it, "pip install tox" and
185 # of python available on your system to run this test.
201 # measuring code coverage of Python programs. It monitors your program,
H A DMakefile7 @echo "python packaging help:"
12 @echo " Requires: Python 3.9"
16 @echo " Run tests against multiple python versions."
18 @echo " Requires: Python 3.9 - 3.11, and tox."
26 @echo " Requires: Python 3.x"
/qemu/.gitlab-ci.d/
H A Dstatic_checks.yml4 image: python:3.10-alpine
18 image: python:3.10-alpine
26 check-python-minreqs:
29 image: $CI_REGISTRY_IMAGE/qemu/python:$QEMU_CI_CONTAINER_TAG
31 - make -C python check-minreqs
35 job: python-container
37 check-python-tox:
40 image: $CI_REGISTRY_IMAGE/qemu/python:$QEMU_CI_CONTAINER_TAG
42 - make -C python check-tox
48 job: python-container
/qemu/target/hexagon/
H A Dmeson.build43 # We use Python scripts to generate the following files
54 command: [python, files('gen_tcg_func_table.py'), semantics_generated, '@OUTPUT@'],
63 command: [python, files('gen_printinsn.py'), semantics_generated, '@OUTPUT@'],
72 command: [python, files('gen_op_attribs.py'), semantics_generated, '@OUTPUT@'],
81 command: [python, files('gen_opcodes_def.py'), semantics_generated, '@OUTPUT@'],
111 command: [python, files('gen_decodetree.py'), semantics_generated, 'NORMAL', '@OUTPUT@'],
120 command: [python, files('gen_decodetree.py'), semantics_generated, 'EXT_mmvec', '@OUTPUT@'],
129 command: [python, files('gen_decodetree.py'), semantics_generated, 'SUBINSN_A', '@OUTPUT@'],
138 command: [python, files('gen_decodetree.py'), semantics_generated, 'SUBINSN_L1', '@OUTPUT@'],
147 command: [python, files('gen_decodetree.py'), semantics_generated, 'SUBINSN_L2', '@OUTPUT@'],
[all …]
/qemu/docs/about/
H A Dbuild-platforms.rst95 Python runtime
97 of the Python runtime. While QEMU will initially aim to support the
99 to any newer python that is available as an option from the vendor.
100 In this case, it will be necessary to use the ``--python`` command line
102 version of the Python runtime.
104 As of QEMU |version|, the minimum supported version of Python is 3.9.
106 Python build dependencies
107 Some of QEMU's build dependencies are written in Python. Usually these
108 are only packaged by distributions for the default Python runtime.
109 If QEMU bumps its minimum Python version and a non-default runtime is
[all …]
/qemu/docs/devel/
H A Dbuild-system.rst48 - create a virtual environment in which all Python code runs during
125 Python virtual environments and the build process
128 An important step in ``configure`` is to create a Python virtual
129 environment (venv) during the configuration phase. The Python interpreter
130 comes from the ``--python`` command line option, the ``$PYTHON`` variable
133 in how the build process runs Python code.
135 At this stage, ``configure`` also queries the chosen Python interpreter
140 PATH might operate in a different Python environment than the one chosen
150 virtual environment with ``pip``, either from wheels in ``python/wheels``
159 Currently, in all cases it would be possible to use ``python -m``
[all …]
/qemu/python/qemu/qmp/
H A Dutil.py5 Python 3.6 to provide some features that otherwise become available in
6 Python 3.7+.
47 # https://github.com/python/typeshed/issues/5779
91 Python 3.6-compatible `asyncio.create_task` wrapper.
103 # Python 3.6:
109 Python 3.6-compatible `asyncio.StreamWriter.is_closing` wrapper.
117 # Python 3.6:
125 Python 3.6-compatible `asyncio.StreamWriter.wait_closed` wrapper.
133 # Python 3.6
154 Python 3.6-compatible `asyncio.run` wrapper.
[all …]
H A Devents.py24 .. code:: python
39 .. code:: python
56 .. code:: python
75 .. code:: python
83 .. code:: python
101 .. code:: python
132 .. code:: python
169 .. code:: python
206 .. code:: python
227 .. code:: python
[all …]
/qemu/
H A Dconfigure255 python=
553 # We require python >= 3.9.
554 # NB: a True python conditional creates a non-zero return code (Failure)
559 if test -z "${PYTHON}"; then
560 # A bare 'python' is traditionally python 2.x, but some distros
561 # have it as python 3.x, so check in both places.
562 for binary in python3 python python3.13 python3.12 python3.11 \
565 python=$(command -v "$binary")
566 if check_py_version "$python"; then
571 first_python=$python
[all …]
H A Dpythondeps.toml1 # This file describes Python package requirements to be
2 # installed in the pyvenv Python virtual environment.
5 # the ensuregroup subcommand of python/scripts/mkvenv.py.
21 # The install key should match the version in python/wheels/
H A D.readthedocs.yml8 # Set the version of Python and other tools you might need
12 python: "3.11"
20 python:
/qemu/python/qemu/
H A DREADME.rst1 QEMU Python Namespace
4 This directory serves as the root of a `Python PEP 420 implicit
5 namespace package <https://www.python.org/dev/peps/pep-0420/>`_.
7 Each directory below is assumed to be an installable Python package that
/qemu/docs/devel/testing/
H A Dacpi-bits.rst13 operating system getting involved in between. Bios-bits has python integration
15 python instead of bash-ish (grub's native scripting language).
28 written using a high level scripting language such as python. OSes and
73 This is the main python functional test script that generates a
90 $ export PYTHONPATH=../python:../tests/functional
114 This directory contains biosbits python based tests that are run from within
127 or disabling them) from python directory into this directory. For
130 https://gitlab.com/qemu-project/biosbits-bits/-/blob/qemu-bits/python/testcpuid.py
147 (a) They are python2.7 based scripts and not python 3 scripts.
149 build/test python script maintenance and dependency resolutions.
H A Dfunctional.rst3 Functional testing with Python
7 Python. They are usually higher level tests, and may interact with
10 The tests should be written in the style of the Python `unittest`_ framework,
14 into the right shape, e.g. by replacing the 'stdout' python object to redirect
57 the PYTHONPATH that has to include the python folder and the tests/functional
62 $ export PYTHONPATH=../python:../tests/functional
94 Python module, containing the ``qemu_test.QemuSystemTest`` class.
173 The QEMUMachine API is already widely used in the Python iotests,
174 device-crash-test and other Python scripts. It's a wrapper around the
318 Since the test framework is based on the common Python unittest framework,
[all …]
/qemu/python/scripts/
H A Dmkvenv.py199 Compatibility wrapper for context.lib_path for Python < 3.12
201 # Python 3.12+, not strictly necessary because it's documented
206 # Python 3.10+
214 # For Python <= 3.9 we need to hardcode this. Fortunately the
215 # code below was the same in Python 3.6-3.10, so there is only
222 "python%d.%d" % sys.version_info[:2],
268 https://docs.python.org/3/library/venv.html#venv.EnvBuilder.ensure_directories
296 "Python's ensurepip module is not found.\n"
297 "It's normally part of the Python standard library, "
309 "Python's pyexpat module is not found.\n"
[all …]
H A Dvendor.py3 vendor - QEMU python vendoring utility
7 QEMU python vendoring utility
39 description="QEMU python vendoring utility",
/qemu/.gitlab-ci.d/cirrus/
H A Dbuild.yml13 PYTHON: "@PYTHON@"
24 …- if test -n "@PYPI_PKGS@" ; then PYLIB=$(@PYTHON@ -c 'import sysconfig; print(sysconfig.get_path(…
/qemu/tests/qtest/migration/
H A Dmisc-tests.c50 const char *python = g_getenv("PYTHON"); in test_analyze_script() local
52 if (!python) { in test_analyze_script()
53 g_test_skip("PYTHON variable not set"); in test_analyze_script()
81 execl(python, python, ANALYZE_SCRIPT, "-f", file, NULL); in test_analyze_script()
/qemu/tests/
H A DMakefile.include12 @echo " $(MAKE) check-functional Run python-based functional tests"
23 @echo " $(MAKE) check-venv Creates a Python venv for tests"
85 # Python venv for running tests
95 $(PYTHON) -m pip -q --disable-pip-version-check $1, \
99 $(call quiet-venv-pip,install -e "$(SRC_PATH)/python/")
/qemu/qapi/
H A Duefi.json1 # -*- Mode: Python -*-
2 # vim: filetype=python
13 # https://github.com/awslabs/python-uefivars.
/qemu/tests/qemu-iotests/tests/
H A Dqcow2-encryption52 $PYTHON ../qcow2.py "$TEST_IMG" dump-header-exts
63 $PYTHON ../qcow2.py "$TEST_IMG" del-header-ext 0x0537be77
64 $PYTHON ../qcow2.py "$TEST_IMG" dump-header-exts
/qemu/scripts/coccinelle/
H A Dreset-type.cocci85 // We use a python scripted constraint on the position of the match
102 position p : script:python() { p[0].current_element == "device_phases_reset" };
112 position p : script:python() { p[0].current_element == "resettable_phase_hold" };
119 position p : script:python() { p[0].current_element == "resettable_phase_exit" };

123456789