1
0
Fork 0
python-docs-fr/library/sysconfig.po

473 lines
13 KiB
Plaintext
Raw Normal View History

2018-07-04 09:06:45 +00:00
# Copyright (C) 2001-2018, Python Software Foundation
2018-07-04 09:08:42 +00:00
# For licence information, see README file.
2016-10-30 09:46:26 +00:00
#
msgid ""
msgstr ""
2019-12-05 22:15:54 +00:00
"Project-Id-Version: Python 3\n"
2016-10-30 09:46:26 +00:00
"Report-Msgid-Bugs-To: \n"
2022-03-23 17:40:12 +00:00
"POT-Creation-Date: 2022-03-23 18:39+0100\n"
2016-10-30 09:46:26 +00:00
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
2018-07-04 09:14:25 +00:00
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
2017-05-23 22:40:56 +00:00
"Language: fr\n"
2016-10-30 09:46:26 +00:00
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: library/sysconfig.rst:2
2016-10-30 09:46:26 +00:00
msgid ""
":mod:`sysconfig` --- Provide access to Python's configuration information"
msgstr ""
#: library/sysconfig.rst:12
2016-10-30 09:46:26 +00:00
msgid "**Source code:** :source:`Lib/sysconfig.py`"
msgstr ""
#: library/sysconfig.rst:19
2016-10-30 09:46:26 +00:00
msgid ""
"The :mod:`sysconfig` module provides access to Python's configuration "
"information like the list of installation paths and the configuration "
"variables relevant for the current platform."
msgstr ""
#: library/sysconfig.rst:24
2016-10-30 09:46:26 +00:00
msgid "Configuration variables"
msgstr ""
#: library/sysconfig.rst:26
2016-10-30 09:46:26 +00:00
msgid ""
"A Python distribution contains a :file:`Makefile` and a :file:`pyconfig.h` "
"header file that are necessary to build both the Python binary itself and "
"third-party C extensions compiled using :mod:`distutils`."
msgstr ""
#: library/sysconfig.rst:30
2016-10-30 09:46:26 +00:00
msgid ""
":mod:`sysconfig` puts all variables found in these files in a dictionary "
"that can be accessed using :func:`get_config_vars` or :func:`get_config_var`."
msgstr ""
#: library/sysconfig.rst:33
2016-10-30 09:46:26 +00:00
msgid "Notice that on Windows, it's a much smaller set."
msgstr ""
#: library/sysconfig.rst:37
2016-10-30 09:46:26 +00:00
msgid ""
"With no arguments, return a dictionary of all configuration variables "
"relevant for the current platform."
msgstr ""
#: library/sysconfig.rst:40
2016-10-30 09:46:26 +00:00
msgid ""
"With arguments, return a list of values that result from looking up each "
"argument in the configuration variable dictionary."
msgstr ""
#: library/sysconfig.rst:43
2016-10-30 09:46:26 +00:00
msgid "For each argument, if the value is not found, return ``None``."
msgstr ""
#: library/sysconfig.rst:48
2020-02-14 10:18:53 +00:00
#, fuzzy
2016-10-30 09:46:26 +00:00
msgid ""
"Return the value of a single variable *name*. Equivalent to "
"``get_config_vars().get(name)``."
msgstr ""
2020-02-14 10:18:53 +00:00
"Retourne la valeur d'une seule variable. C'est l'équivalent de "
"``get_config_vars().get(name)``."
2016-10-30 09:46:26 +00:00
#: library/sysconfig.rst:51
2016-10-30 09:46:26 +00:00
msgid "If *name* is not found, return ``None``."
msgstr ""
#: library/sysconfig.rst:53
2020-02-14 10:18:53 +00:00
#, fuzzy
2016-10-30 09:46:26 +00:00
msgid "Example of usage::"
msgstr "Exemples d'utilisation ::"
2016-10-30 09:46:26 +00:00
#: library/sysconfig.rst:66
2016-10-30 09:46:26 +00:00
msgid "Installation paths"
msgstr ""
#: library/sysconfig.rst:68
2016-10-30 09:46:26 +00:00
msgid ""
"Python uses an installation scheme that differs depending on the platform "
"and on the installation options. These schemes are stored in :mod:"
"`sysconfig` under unique identifiers based on the value returned by :const:"
"`os.name`."
msgstr ""
#: library/sysconfig.rst:72
2016-10-30 09:46:26 +00:00
msgid ""
"Every new component that is installed using :mod:`distutils` or a Distutils-"
"based system will follow the same scheme to copy its file in the right "
"places."
msgstr ""
#: library/sysconfig.rst:76
2022-03-23 17:40:12 +00:00
msgid "Python currently supports nine schemes:"
2016-10-30 09:46:26 +00:00
msgstr ""
#: library/sysconfig.rst:78
2016-10-30 09:46:26 +00:00
msgid ""
"*posix_prefix*: scheme for POSIX platforms like Linux or macOS. This is the "
"default scheme used when Python or a component is installed."
2016-10-30 09:46:26 +00:00
msgstr ""
#: library/sysconfig.rst:80
2016-10-30 09:46:26 +00:00
msgid ""
2020-05-24 14:31:50 +00:00
"*posix_home*: scheme for POSIX platforms used when a *home* option is used "
2016-10-30 09:46:26 +00:00
"upon installation. This scheme is used when a component is installed "
"through Distutils with a specific home prefix."
msgstr ""
#: library/sysconfig.rst:83
2016-10-30 09:46:26 +00:00
msgid ""
2020-05-24 14:31:50 +00:00
"*posix_user*: scheme for POSIX platforms used when a component is installed "
2016-10-30 09:46:26 +00:00
"through Distutils and the *user* option is used. This scheme defines paths "
"located under the user home directory."
msgstr ""
#: library/sysconfig.rst:86
2022-03-23 17:40:12 +00:00
msgid ""
"*posix_venv*: scheme for :mod:`Python virtual environments <venv>` on POSIX "
"platforms; by default it is the same as *posix_prefix* ."
msgstr ""
#: library/sysconfig.rst:88
2016-10-30 09:46:26 +00:00
msgid "*nt*: scheme for NT platforms like Windows."
msgstr ""
2022-03-23 17:40:12 +00:00
#: library/sysconfig.rst:89
2016-10-30 09:46:26 +00:00
msgid "*nt_user*: scheme for NT platforms, when the *user* option is used."
msgstr ""
2022-03-23 17:40:12 +00:00
#: library/sysconfig.rst:90
msgid ""
"*nt_venv*: scheme for :mod:`Python virtual environments <venv>` on NT "
"platforms; by default it is the same as *nt* ."
msgstr ""
#: library/sysconfig.rst:92
msgid ""
"*venv*: a scheme with values from ether *posix_venv* or *nt_venv* depending "
"on the platform Python runs on"
msgstr ""
#: library/sysconfig.rst:94
msgid "*osx_framework_user*: scheme for macOS, when the *user* option is used."
msgstr ""
2022-03-23 17:40:12 +00:00
#: library/sysconfig.rst:96
2016-10-30 09:46:26 +00:00
msgid ""
"Each scheme is itself composed of a series of paths and each path has a "
"unique identifier. Python currently uses eight paths:"
msgstr ""
2022-03-23 17:40:12 +00:00
#: library/sysconfig.rst:99
2016-10-30 09:46:26 +00:00
msgid ""
"*stdlib*: directory containing the standard Python library files that are "
"not platform-specific."
msgstr ""
2022-03-23 17:40:12 +00:00
#: library/sysconfig.rst:101
2016-10-30 09:46:26 +00:00
msgid ""
"*platstdlib*: directory containing the standard Python library files that "
"are platform-specific."
msgstr ""
2022-03-23 17:40:12 +00:00
#: library/sysconfig.rst:103
2016-10-30 09:46:26 +00:00
msgid "*platlib*: directory for site-specific, platform-specific files."
msgstr ""
2022-03-23 17:40:12 +00:00
#: library/sysconfig.rst:104
2016-10-30 09:46:26 +00:00
msgid "*purelib*: directory for site-specific, non-platform-specific files."
msgstr ""
2022-03-23 17:40:12 +00:00
#: library/sysconfig.rst:105
msgid ""
"*include*: directory for non-platform-specific header files for the Python C-"
"API."
2016-10-30 09:46:26 +00:00
msgstr ""
2022-03-23 17:40:12 +00:00
#: library/sysconfig.rst:107
msgid ""
"*platinclude*: directory for platform-specific header files for the Python C-"
"API."
2016-10-30 09:46:26 +00:00
msgstr ""
2022-03-23 17:40:12 +00:00
#: library/sysconfig.rst:109
2016-10-30 09:46:26 +00:00
msgid "*scripts*: directory for script files."
msgstr ""
2022-03-23 17:40:12 +00:00
#: library/sysconfig.rst:110
2016-10-30 09:46:26 +00:00
msgid "*data*: directory for data files."
msgstr ""
2022-03-23 17:40:12 +00:00
#: library/sysconfig.rst:112
2016-10-30 09:46:26 +00:00
msgid ":mod:`sysconfig` provides some functions to determine these paths."
msgstr ""
2022-03-23 17:40:12 +00:00
#: library/sysconfig.rst:116
2016-10-30 09:46:26 +00:00
msgid ""
"Return a tuple containing all schemes currently supported in :mod:"
"`sysconfig`."
msgstr ""
2022-03-23 17:40:12 +00:00
#: library/sysconfig.rst:122
msgid "Return the default scheme name for the current platform."
msgstr ""
2022-03-23 17:40:12 +00:00
#: library/sysconfig.rst:124
msgid ""
"This function was previously named ``_get_default_scheme()`` and considered "
"an implementation detail."
msgstr ""
2022-03-23 17:40:12 +00:00
#: library/sysconfig.rst:128
msgid ""
"When Python runs from a virtual environment, the *venv* scheme is returned."
msgstr ""
#: library/sysconfig.rst:134
msgid ""
"Return a preferred scheme name for an installation layout specified by *key*."
msgstr ""
2022-03-23 17:40:12 +00:00
#: library/sysconfig.rst:136
msgid "*key* must be either ``\"prefix\"``, ``\"home\"``, or ``\"user\"``."
msgstr ""
2022-03-23 17:40:12 +00:00
#: library/sysconfig.rst:138
msgid ""
"The return value is a scheme name listed in :func:`get_scheme_names`. It can "
"be passed to :mod:`sysconfig` functions that take a *scheme* argument, such "
"as :func:`get_paths`."
msgstr ""
2022-03-23 17:40:12 +00:00
#: library/sysconfig.rst:144
msgid ""
"When Python runs from a virtual environment and ``key=\"prefix\"``, the "
"*venv* scheme is returned."
msgstr ""
#: library/sysconfig.rst:151
msgid ""
"Return a dict containing preferred scheme names on the current platform. "
"Python implementers and redistributors may add their preferred schemes to "
"the ``_INSTALL_SCHEMES`` module-level global value, and modify this function "
"to return those scheme names, to e.g. provide different schemes for system "
"and language package managers to use, so packages installed by either do not "
"mix with those by the other."
msgstr ""
2022-03-23 17:40:12 +00:00
#: library/sysconfig.rst:158
msgid ""
"End users should not use this function, but :func:`get_default_scheme` and :"
"func:`get_preferred_scheme()` instead."
msgstr ""
2022-03-23 17:40:12 +00:00
#: library/sysconfig.rst:166
2016-10-30 09:46:26 +00:00
msgid ""
"Return a tuple containing all path names currently supported in :mod:"
"`sysconfig`."
msgstr ""
2022-03-23 17:40:12 +00:00
#: library/sysconfig.rst:172
2016-10-30 09:46:26 +00:00
msgid ""
"Return an installation path corresponding to the path *name*, from the "
"install scheme named *scheme*."
msgstr ""
2022-03-23 17:40:12 +00:00
#: library/sysconfig.rst:175
2016-10-30 09:46:26 +00:00
msgid ""
"*name* has to be a value from the list returned by :func:`get_path_names`."
msgstr ""
2022-03-23 17:40:12 +00:00
#: library/sysconfig.rst:177
2016-10-30 09:46:26 +00:00
msgid ""
":mod:`sysconfig` stores installation paths corresponding to each path name, "
"for each platform, with variables to be expanded. For instance the *stdlib* "
"path for the *nt* scheme is: ``{base}/Lib``."
msgstr ""
2022-03-23 17:40:12 +00:00
#: library/sysconfig.rst:181
2016-10-30 09:46:26 +00:00
msgid ""
":func:`get_path` will use the variables returned by :func:`get_config_vars` "
"to expand the path. All variables have default values for each platform so "
"one may call this function and get the default value."
msgstr ""
2022-03-23 17:40:12 +00:00
#: library/sysconfig.rst:185
2016-10-30 09:46:26 +00:00
msgid ""
"If *scheme* is provided, it must be a value from the list returned by :func:"
"`get_scheme_names`. Otherwise, the default scheme for the current platform "
"is used."
msgstr ""
2022-03-23 17:40:12 +00:00
#: library/sysconfig.rst:189
2016-10-30 09:46:26 +00:00
msgid ""
"If *vars* is provided, it must be a dictionary of variables that will update "
"the dictionary return by :func:`get_config_vars`."
msgstr ""
2022-03-23 17:40:12 +00:00
#: library/sysconfig.rst:192
2016-10-30 09:46:26 +00:00
msgid ""
"If *expand* is set to ``False``, the path will not be expanded using the "
"variables."
msgstr ""
2022-03-23 17:40:12 +00:00
#: library/sysconfig.rst:195
msgid "If *name* is not found, raise a :exc:`KeyError`."
msgstr ""
2022-03-23 17:40:12 +00:00
#: library/sysconfig.rst:200
2016-10-30 09:46:26 +00:00
msgid ""
"Return a dictionary containing all installation paths corresponding to an "
"installation scheme. See :func:`get_path` for more information."
msgstr ""
2022-03-23 17:40:12 +00:00
#: library/sysconfig.rst:203
2016-10-30 09:46:26 +00:00
msgid ""
"If *scheme* is not provided, will use the default scheme for the current "
"platform."
msgstr ""
2022-03-23 17:40:12 +00:00
#: library/sysconfig.rst:206
2016-10-30 09:46:26 +00:00
msgid ""
"If *vars* is provided, it must be a dictionary of variables that will update "
"the dictionary used to expand the paths."
msgstr ""
2022-03-23 17:40:12 +00:00
#: library/sysconfig.rst:209
2016-10-30 09:46:26 +00:00
msgid "If *expand* is set to false, the paths will not be expanded."
msgstr ""
2022-03-23 17:40:12 +00:00
#: library/sysconfig.rst:211
2016-10-30 09:46:26 +00:00
msgid ""
"If *scheme* is not an existing scheme, :func:`get_paths` will raise a :exc:"
"`KeyError`."
msgstr ""
2022-03-23 17:40:12 +00:00
#: library/sysconfig.rst:216
2016-10-30 09:46:26 +00:00
msgid "Other functions"
2019-12-06 09:55:45 +00:00
msgstr "Autres fonctions"
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/sysconfig.rst:220
2016-10-30 09:46:26 +00:00
msgid ""
"Return the ``MAJOR.MINOR`` Python version number as a string. Similar to "
"``'%d.%d' % sys.version_info[:2]``."
msgstr ""
2022-03-23 17:40:12 +00:00
#: library/sysconfig.rst:226
2016-10-30 09:46:26 +00:00
msgid "Return a string that identifies the current platform."
msgstr ""
2022-03-23 17:40:12 +00:00
#: library/sysconfig.rst:228
2016-10-30 09:46:26 +00:00
msgid ""
"This is used mainly to distinguish platform-specific build directories and "
"platform-specific built distributions. Typically includes the OS name and "
2018-06-28 13:32:56 +00:00
"version and the architecture (as supplied by 'os.uname()'), although the "
"exact information included depends on the OS; e.g., on Linux, the kernel "
"version isn't particularly important."
2016-10-30 09:46:26 +00:00
msgstr ""
2022-03-23 17:40:12 +00:00
#: library/sysconfig.rst:234
2016-10-30 09:46:26 +00:00
msgid "Examples of returned values:"
msgstr "Exemples de valeurs renvoyées :"
2016-10-30 09:46:26 +00:00
2022-03-23 17:40:12 +00:00
#: library/sysconfig.rst:236
2016-10-30 09:46:26 +00:00
msgid "linux-i586"
msgstr "linux-i586"
2022-03-23 17:40:12 +00:00
#: library/sysconfig.rst:237
2016-10-30 09:46:26 +00:00
msgid "linux-alpha (?)"
msgstr "linux-alpha (?)"
2022-03-23 17:40:12 +00:00
#: library/sysconfig.rst:238
2016-10-30 09:46:26 +00:00
msgid "solaris-2.6-sun4u"
msgstr "solaris-2.6-sun4u"
2022-03-23 17:40:12 +00:00
#: library/sysconfig.rst:240
2016-10-30 09:46:26 +00:00
msgid "Windows will return one of:"
msgstr ""
2022-03-23 17:40:12 +00:00
#: library/sysconfig.rst:242
2018-12-24 13:20:55 +00:00
msgid "win-amd64 (64bit Windows on AMD64, aka x86_64, Intel64, and EM64T)"
2016-10-30 09:46:26 +00:00
msgstr ""
2022-03-23 17:40:12 +00:00
#: library/sysconfig.rst:243
2016-10-30 09:46:26 +00:00
msgid "win32 (all others - specifically, sys.platform is returned)"
msgstr ""
2022-03-23 17:40:12 +00:00
#: library/sysconfig.rst:245
msgid "macOS can return:"
2016-10-30 09:46:26 +00:00
msgstr ""
2022-03-23 17:40:12 +00:00
#: library/sysconfig.rst:247
2016-10-30 09:46:26 +00:00
msgid "macosx-10.6-ppc"
msgstr "macosx-10.6-ppc"
2022-03-23 17:40:12 +00:00
#: library/sysconfig.rst:248
2016-10-30 09:46:26 +00:00
msgid "macosx-10.4-ppc64"
msgstr "macosx-10.4-ppc64"
2022-03-23 17:40:12 +00:00
#: library/sysconfig.rst:249
2016-10-30 09:46:26 +00:00
msgid "macosx-10.3-i386"
msgstr "macosx-10.3-i386"
2022-03-23 17:40:12 +00:00
#: library/sysconfig.rst:250
2016-10-30 09:46:26 +00:00
msgid "macosx-10.4-fat"
msgstr "macosx-10.4-fat"
2022-03-23 17:40:12 +00:00
#: library/sysconfig.rst:252
2016-10-30 09:46:26 +00:00
msgid ""
"For other non-POSIX platforms, currently just returns :data:`sys.platform`."
msgstr ""
2022-03-23 17:40:12 +00:00
#: library/sysconfig.rst:257
2016-10-30 09:46:26 +00:00
msgid ""
"Return ``True`` if the running Python interpreter was built from source and "
"is being run from its built location, and not from a location resulting from "
"e.g. running ``make install`` or installing via a binary installer."
msgstr ""
2022-03-23 17:40:12 +00:00
#: library/sysconfig.rst:264
2016-10-30 09:46:26 +00:00
msgid "Parse a :file:`config.h`\\-style file."
msgstr ""
2022-03-23 17:40:12 +00:00
#: library/sysconfig.rst:266
2016-10-30 09:46:26 +00:00
msgid ""
"*fp* is a file-like object pointing to the :file:`config.h`\\-like file."
msgstr ""
2022-03-23 17:40:12 +00:00
#: library/sysconfig.rst:268
2016-10-30 09:46:26 +00:00
msgid ""
"A dictionary containing name/value pairs is returned. If an optional "
"dictionary is passed in as the second argument, it is used instead of a new "
"dictionary, and updated with the values read in the file."
msgstr ""
2022-03-23 17:40:12 +00:00
#: library/sysconfig.rst:275
2016-10-30 09:46:26 +00:00
msgid "Return the path of :file:`pyconfig.h`."
msgstr ""
2022-03-23 17:40:12 +00:00
#: library/sysconfig.rst:279
2016-10-30 09:46:26 +00:00
msgid "Return the path of :file:`Makefile`."
msgstr ""
2022-03-23 17:40:12 +00:00
#: library/sysconfig.rst:283
2016-10-30 09:46:26 +00:00
msgid "Using :mod:`sysconfig` as a script"
msgstr ""
2022-03-23 17:40:12 +00:00
#: library/sysconfig.rst:285
2016-10-30 09:46:26 +00:00
msgid "You can use :mod:`sysconfig` as a script with Python's *-m* option:"
msgstr ""
2022-03-23 17:40:12 +00:00
#: library/sysconfig.rst:311
2016-10-30 09:46:26 +00:00
msgid ""
"This call will print in the standard output the information returned by :"
"func:`get_platform`, :func:`get_python_version`, :func:`get_path` and :func:"
"`get_config_vars`."
msgstr ""