Home
last modified time | relevance | path

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

12345678910>>...22

/freebsd/contrib/file/magic/Magdir/
H A Dpython3 # $File: python,v 1.47 2024/08/27 18:50:57 christos Exp $
4 # python: file(1) magic for python
9 0 string/t """ Python script text executable
10 # MAGIC as specified in Python/import.c (1.0 to 3.7)
13 0 belong 0x02099900 python 1.0 byte-compiled
14 !:mime application/x-bytecode.python
15 0 belong 0x03099900 python 1.1/1.2 byte-compiled
16 !:mime application/x-bytecode.python
17 0 belong 0x892e0d0a python 1.3 byte-compiled
18 !:mime application/x-bytecode.python
[all …]
/freebsd/contrib/ldns/
H A Dax_python_devel.m414 # This macro checks for Python and tries to get the include path to
15 # 'Python.h'. It provides the $(PYTHON_CPPFLAGS) and $(PYTHON_LIBS) output
17 # $(PYTHON_EXTRA_LDFLAGS) for embedding Python in your code.
19 # You can search for some particular version of Python by passing a
26 # This macro should work for all versions of Python >= 2.1.0. As an end
27 # user, you can disable the check for the python version by setting the
31 # If you need to use this macro for an older Python version, please
75 # Allow the use of a (user set) custom python version
77 AC_ARG_VAR([PYTHON_VERSION],[The installed Python
79 will be appended to the Python interpreter
[all …]
/freebsd/sys/contrib/openzfs/config/
H A Dax_python_devel.m414 # This macro checks for Python and tries to get the include path to
15 # 'Python.h'. It provides the $(PYTHON_CPPFLAGS) and $(PYTHON_LIBS) output
17 # $(PYTHON_EXTRA_LDFLAGS) for embedding Python in your code.
19 # You can search for some particular version of Python by passing a
27 # python. If you want it to continue, set optional to true, like
31 # This macro should work for all versions of Python >= 2.1.0. As an end
32 # user, you can disable the check for the python version by setting the
36 # If you need to use this macro for an older Python version, please
88 # Allow the use of a (user set) custom python version
90 AC_ARG_VAR([PYTHON_VERSION],[The installed Python
[all...]
H A Dalways-python.m42 dnl # The majority of the python scripts are written to be compatible
3 dnl # with Python 3.6. This option is intended to
5 dnl # set the PYTHON environment variable accordingly.
8 AC_ARG_WITH([python],
9 AS_HELP_STRING([--with-python[=VERSION]],
10 [default system python version @<:@default=check@:>@]),
15 [check], [AC_CHECK_PROGS([PYTHON], [python3], [:])],
16 [3*], [PYTHON="python${with_python}"],
17 [*python3*], [PYTHON="${with_python}"],
18 [no], [PYTHON=":"],
[all …]
H A Dalways-pyzfs.m44 dnl # Checks for Python module. Freely inspired by AX_PYTHON_MODULE
9 PYTHON_NAME=${PYTHON##*/}
11 AS_IF([$PYTHON -c "import $1" 2>/dev/null], [
21 dnl # Determines if pyzfs can be built, requires Python 3.6 or later.
26 [install libzfs_core python bindings @<:@default=check@:>@]),
40 AS_IF([test "$PYTHON" != :], [
60 dnl # Python "packaging" (or, failing that, "distlib") module is required to build and install pyzfs
66 AC_MSG_ERROR("Python $PYTHON_VERSION packaging and distlib modules are not installed")
80 [AC_MSG_ERROR("Python $PYTHON_VERSION unknown")]
94 dnl # Python "setuptool
[all...]
/freebsd/contrib/unbound/
H A Dacx_python.m43 # Allow the use of a (user set) custom python version
5 AC_ARG_VAR([PYTHON_VERSION],[The installed Python
7 will be appended to the Python interpreter
10 AC_PATH_PROG([PYTHON],[python[$PYTHON_VERSION]])
11 if test -z "$PYTHON"; then
12 …AC_MSG_ERROR([Cannot find 'python$PYTHON_VERSION' in your system path. You can use the environment…
17 PYTHON_VERSION=`$PYTHON -c "import sys; \
34 # on Debian 10, for python 2.7 and 3.7. So, we check the version,
49 AC_MSG_CHECKING([for the $m Python module])
50 if ac_modulecheck_result1=`$PYTHON -c "import $m" 2>&1`; then
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/
H A DScriptedPythonInterface.h44 const python::PythonDictionary &class_dict) const { in CheckAbstractMethodImplementation()
46 using namespace python; in CheckAbstractMethodImplementation() local
78 using namespace python; in CreatePluginObject() local
107 PythonModule::MainModule().ResolveName<python::PythonDictionary>( in CreatePluginObject()
115 PythonObject::ResolveNameWithDictionary<python::PythonCallable>( in CreatePluginObject()
153 return create_error("Resulting object is not a valid Python Object."); in CreatePluginObject()
177 "Python 'builtins' module doesn't have 'dict' class."); in CreatePluginObject()
227 T ExtractValueFromPythonObject(python::PythonObject &p, Status &error) { in ExtractValueFromPythonObject()
233 using namespace python; in Dispatch() local
241 return ErrorWithMessage<T>(caller_signature, "Python object ill-formed", in Dispatch()
[all …]
H A DScriptedPythonInterface.cpp15 // LLDB Python header must be included first
16 #include "../lldb-python.h"
32 python::PythonObject &p, Status &error) { in ExtractValueFromPythonObject()
33 python::PythonList result_list(python::PyRefType::Borrowed, p.get()); in ExtractValueFromPythonObject()
40 StructuredData::DictionarySP>(python::PythonObject &p, Status &error) { in ExtractValueFromPythonObject()
41 python::PythonDictionary result_dict(python::PyRefType::Borrowed, p.get()); in ExtractValueFromPythonObject()
47 python::PythonObject &p, Status &error) { in ExtractValueFromPythonObject()
49 python::LLDBSWIGPython_CastPyObjectToSBError(p.get()))) in ExtractValueFromPythonObject()
58 python::PythonObject &p, Status &error) { in ExtractValueFromPythonObject()
60 python::LLDBSWIGPython_CastPyObjectToSBEvent(p.get()))) in ExtractValueFromPythonObject()
[all …]
/freebsd/crypto/libecc/scripts/
H A Dgen_curves_tests.sh18 # Find a suitable python command if none has been provided
19 if [ -z "$PYTHON" ]
21 echo "Looking for suitable python and deps"
22 # Try to guess which python we want to use depending on the installed
24 for i in python python3 python2; do
26 echo "Found and using python=$i"
27 PYTHON=$i
32 echo "Using user provided python=$PYTHON"
34 if [ -z "$PYTHON" ]; then
35 echo "Failed to find working python cmd!" >&2
[all …]
H A Dgen_openssl_curves_tests.sh20 # Find a suitable python command if none has been provided
21 if [ -z "$PYTHON" ]
23 echo "Looking for suitable python and deps"
24 # Try to guess which python we want to use depending on the installed
26 for i in python python3 python2; do
28 echo "Found and using python=$i"
29 PYTHON=$i
34 echo "Using user provided python=$PYTHON"
37 if [ -z "$PYTHON" ]; then
38 echo "Failed to find working python cmd!" >&2
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/ScriptInterpreter/Python/
H A DScriptedPythonInterface.h
H A DScriptedPythonInterface.cpp
H A DScriptInterpreterPythonImpl.h16 #include "lldb-python.h"
395 python::PythonModule &GetMainModule();
397 python::PythonDictionary &GetSessionDictionary();
399 python::PythonDictionary &GetSysModuleDictionary();
407 python::PythonObject &save_file, const char *mode);
409 python::PythonObject m_saved_stdin;
410 python::PythonObject m_saved_stdout;
411 python::PythonObject m_saved_stderr;
412 python::PythonModule m_main_module;
413 python::PythonDictionary m_session_dict;
[all …]
H A Dlldb-python.h1 //===-- lldb-python.h -------------------------------------------*- C++ -*-===//
21 // Python.h needs to be included before any system headers in order to avoid
28 // need to ensure this doesn't happen. At the same time, Python.h will also try
35 // may be different from the value that Python defines it to be which results
36 // in a warning. Undefine _POSIX_C_SOURCE before including Python.h The same
42 // Include locale before Python so _PY_PORT_CTYPE_UTF8_ISSUE doesn't cause
48 // Include python for non windows machines
49 #include <Python.h>
H A DSWIGPythonBridge.h19 // LLDB Python header must be included first
20 #include "lldb-python.h"
22 #include "Plugins/ScriptInterpreter/Python/PythonDataObjects.h"
39 namespace python {
43 python::PythonObject ToSWIGHelper(void *obj, swig_type_info *info);
115 static python::ScopedPythonObject<lldb::SBCommandReturnObject>
141 static python::PythonObject
146 static python::PythonObject
151 static python::PythonObject LLDBSwigPythonCreateScriptedBreakpointResolver(
160 static python::PythonObject LLDBSwigPythonCreateScriptedStopHook(
[all …]
H A DPythonDataObjects.h12 // Python APIs nearly all can return an exception. They do this
15 // handled before further python API functions are called. Failure
16 // to do so will result in asserts on debug builds of python.
20 // Nearly all the code in this header does not handle python exceptions
40 // Python objects should be created with Retain<> or Take<>, and they
43 // * Eliminate default constructors, make python objects always
55 // LLDB Python header must be included first
56 #include "lldb-python.h"
64 namespace python {
113 // Most python API methods will return a +1 reference
[all …]
/freebsd/contrib/llvm-project/lldb/bindings/python/
H A Dpython-wrapper.swig19 llvm::Expected<bool> lldb_private::python::SWIGBridge::LLDBSwigPythonBreakpointCallbackFunction(
55 // resolve a dotted Python name in the form
56 // foo.bar.baz.Foobar to an actual Python object
68 bool lldb_private::python::SWIGBridge::LLDBSwigPythonWatchpointCallbackFunction(
97 bool lldb_private::python::SWIGBridge::LLDBSwigPythonFormatterCallbackFunction(
119 bool lldb_private::python::SWIGBridge::LLDBSwigPythonCallTypeScript(
146 PyErr_Cleaner pyerr_cleanup(true); // show Python errors
181 PythonObject lldb_private::python::SWIGBridge::LLDBSwigPythonCreateSyntheticProvider(
213 PythonObject lldb_private::python::SWIGBridge::LLDBSwigPythonCreateCommandObject(
232 PythonObject lldb_private::python::SWIGBridge::LLDBSwigPythonCreateScriptedBreakpointResolver(
[all …]
H A Dpython.swig11 "The lldb module contains the public APIs for Python binding.
40 a way that is incompatible with our usage of the python module as __init__.py
52 # Relative import should work if we are being loaded by Python.
112 %include "python-typemaps.swig"
117 #include "../source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h"
118 #include "../source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.h"
119 #include "../bindings/python/python-swigsafecast.swig"
121 using namespace lldb_private::python;
126 %include "python
[all...]
/freebsd/contrib/libucl/python/
H A Dsetup.py5 manifest_maker.template = 'python/MANIFEST.in'
26 sources=['python/src/uclmodule.c'],
39 template = 'python/MANIFEST.in'
43 in_ucl_root = 'setup.py' in os.listdir('python')
45 os.link('python/setup.py', 'setup.py')
66 "Programming Language :: Python :: 2",
67 "Programming Language :: Python :: 3",
68 "Programming Language :: Python :: Implementation :: CPython",
/freebsd/contrib/unbound/smallapp/
H A Dunbound-checkconf.c755 && strcmp(cfg->module_conf, "python iterator") != 0 in morechecks()
756 && strcmp(cfg->module_conf, "python respip iterator") != 0 in morechecks()
757 && strcmp(cfg->module_conf, "python validator iterator") != 0 in morechecks()
758 && strcmp(cfg->module_conf, "python respip validator iterator") != 0 in morechecks()
759 && strcmp(cfg->module_conf, "validator python iterator") != 0 in morechecks()
760 && strcmp(cfg->module_conf, "dns64 python iterator") != 0 in morechecks()
761 && strcmp(cfg->module_conf, "dns64 python validator iterator") != 0 in morechecks()
762 && strcmp(cfg->module_conf, "dns64 validator python iterator") != 0 in morechecks()
763 && strcmp(cfg->module_conf, "python dns64 iterator") != 0 in morechecks()
764 && strcmp(cfg->module_conf, "python dns64 validator iterator") != 0 in morechecks()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Commands/
H A DCommandObjectWatchpointCommand.cpp64 Special information about PYTHON watchpoint commands in CommandObjectWatchpointCommandAdd()
68 "You may enter either one or more lines of Python, including function \ in CommandObjectWatchpointCommandAdd()
71 when the watchpoint is hit. Multiple lines of Python will be wrapped in a \ in CommandObjectWatchpointCommandAdd()
82 "When specifying a python function with the --python-function option, you need \ in CommandObjectWatchpointCommandAdd()
86 --python-function myutils.watchpoint_callback in CommandObjectWatchpointCommandAdd()
103 "Important Note: As Python code gets collected into functions, access to global \ in CommandObjectWatchpointCommandAdd()
105 Python syntax, including indentation, when entering Python watchpoint commands." in CommandObjectWatchpointCommandAdd()
108 Example Python one-line watchpoint command: in CommandObjectWatchpointCommandAdd()
110 (lldb) watchpoint command add -s python 1 in CommandObjectWatchpointCommandAdd()
111 Enter your Python command(s). Type 'DONE' to end. in CommandObjectWatchpointCommandAdd()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Target/
H A DThreadPlanPython.cpp32 : ThreadPlan(ThreadPlan::eKindPython, "Python based Thread Plan", thread, in ThreadPlanPython()
67 error->Printf("Error constructing Python ThreadPlan: %s", in ValidatePlan()
97 LLDB_LOGF(log, "%s called on Python Thread Plan: %s )", LLVM_PRETTY_FUNCTION, in ShouldStop()
115 LLDB_LOGF(log, "%s called on Python Thread Plan: %s )", LLVM_PRETTY_FUNCTION, in IsPlanStale()
133 LLDB_LOGF(log, "%s called on Python Thread Plan: %s )", LLVM_PRETTY_FUNCTION, in DoPlanExplainsStop()
152 LLDB_LOGF(log, "%s called on Python Thread Plan: %s )", LLVM_PRETTY_FUNCTION, in MischiefManaged()
170 LLDB_LOGF(log, "%s called on Python Thread Plan: %s )", LLVM_PRETTY_FUNCTION, in GetPlanRunState()
180 LLDB_LOGF(log, "%s called on Python Thread Plan: %s )", LLVM_PRETTY_FUNCTION, in GetDescription()
190 s->Printf("Python thread plan implemented by class %s.", in GetDescription()
201 s->Printf("Python thread plan implemented by class %s.", in GetDescription()
[all …]
/freebsd/contrib/googletest/
H A DMODULE.bazel57 # https://rules-python.readthedocs.io/en/stable/toolchains.html#library-modules-with-dev-only-pytho…
58 python = use_extension(
59 "@rules_python//python/extensions:python.bzl",
60 "python",
64 python.toolchain(python_version = "3.12",
/freebsd/crypto/heimdal/lib/wind/
H A DMakefile.am92 PYTHON = python macro
99 $(skip_python) $(PYTHON) $(srcdir)/gen-map.py $(srcdir)/rfc3454.txt $(builddir)
102 $(skip_python) $(PYTHON) $(srcdir)/gen-errorlist.py $(srcdir)/rfc3454.txt $(builddir)
105 …$(skip_python) $(PYTHON) $(srcdir)/gen-normalize.py $(srcdir)/UnicodeData.txt $(srcdir)/Compositio…
108 $(skip_python) $(PYTHON) $(srcdir)/gen-combining.py $(srcdir)/UnicodeData.txt $(builddir)
111 $(skip_python) $(PYTHON) $(srcdir)/gen-bidi.py $(srcdir)/rfc3454.txt $(builddir)
114 $(PYTHON) $(srcdir)/gen-punycode-examples.py $(srcdir)/rfc3492.txt $(builddir)
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/pyzfs/
H A Dpyzfs_unittest.ksh.in27 # Verify the libzfs_core Python test suite can be run successfully
30 # 1. Run the nvlist and libzfs_core Python unittest
35 log_assert "Verify the nvlist and libzfs_core Python unittest run successfully"
39 @PYTHON@ -m unittest --verbose \
42 log_fail "Python unittest completed with errors"
44 log_pass "Python unittest completed without errors"

12345678910>>...22