mirror of
https://github.com/Poltern/lfs-ru.git
synced 2024-10-20 04:30:41 +03:00
123 lines
4.3 KiB
XML
123 lines
4.3 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
||
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
||
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
||
<!ENTITY % general-entities SYSTEM "../general.ent">
|
||
%general-entities;
|
||
]>
|
||
|
||
<sect1 id="ch-system-flit-core" role="wrap">
|
||
<?dbhtml filename="flit-core.html"?>
|
||
|
||
<sect1info condition="script">
|
||
<productname>flit-core</productname>
|
||
<productnumber>&flit-core-version;</productnumber>
|
||
<address>&flit-core-url;</address>
|
||
</sect1info>
|
||
|
||
<title>Flit-Core-&flit-core-version;</title>
|
||
|
||
<indexterm zone="ch-system-flit-core">
|
||
<primary sortas="a-flit-core">Flit-core</primary>
|
||
</indexterm>
|
||
|
||
<sect2 role="package">
|
||
<title/>
|
||
|
||
<para>Flit-core — это часть Flit, предназначенная для сборки дистрибутива (инструмента
|
||
для упаковки простых модулей Python).</para>
|
||
|
||
<segmentedlist>
|
||
<segtitle>&buildtime;</segtitle>
|
||
<segtitle>&diskspace;</segtitle>
|
||
<seglistitem>
|
||
<seg>&flit-core-fin-sbu;</seg>
|
||
<seg>&flit-core-fin-du;</seg>
|
||
</seglistitem>
|
||
</segmentedlist>
|
||
|
||
</sect2>
|
||
|
||
<sect2 role="installation">
|
||
<title>Установка пакета Flit-Core</title>
|
||
|
||
<para>Соберите пакет:</para>
|
||
|
||
<screen><userinput remap="install">pip3 wheel -w dist --no-cache-dir --no-build-isolation --no-deps $PWD</userinput></screen>
|
||
|
||
<para>Установите пакет:</para>
|
||
|
||
<screen><userinput remap="install">pip3 install --no-index --no-user --find-links dist flit_core</userinput></screen>
|
||
|
||
<variablelist>
|
||
<title>Значение параметров конфигурации и команд pip3:</title>
|
||
|
||
<varlistentry>
|
||
<term><command>wheel</command></term>
|
||
<listitem>
|
||
<para>Эта команда создает архив wheel для этого пакета.</para>
|
||
</listitem>
|
||
</varlistentry>
|
||
|
||
<varlistentry>
|
||
<term><parameter>-w dist</parameter></term>
|
||
<listitem>
|
||
<para>Указывает pip поместить созданный архив в каталог
|
||
<filename class='directory'>dist</filename>.</para>
|
||
</listitem>
|
||
</varlistentry>
|
||
|
||
<varlistentry>
|
||
<term><parameter>--no-cache-dir</parameter></term>
|
||
<listitem>
|
||
<para>Не позволяет pip копировать созданный wheel-пакет в каталог
|
||
<filename class='directory'>/root/.cache/pip</filename>.</para>
|
||
</listitem>
|
||
</varlistentry>
|
||
|
||
<varlistentry>
|
||
<term><command>install</command></term>
|
||
<listitem>
|
||
<para>Эта команда устанавливает пакет.</para>
|
||
</listitem>
|
||
</varlistentry>
|
||
|
||
<varlistentry>
|
||
<term><parameter>--no-build-isolation</parameter>,
|
||
<parameter>--no-deps</parameter> и
|
||
<parameter>--no-index</parameter></term>
|
||
<listitem>
|
||
<para>Эти параметры предотвращают получение файлов из онлайн-репозитория пакетов (PyPI).
|
||
Если пакеты установлены в правильном порядке, то нет необходимости загружать
|
||
какие-либо файлы; эти параметры усиливают безопасность в случае ошибки пользователя.</para>
|
||
</listitem>
|
||
</varlistentry>
|
||
|
||
<varlistentry>
|
||
<term><parameter>--find-links dist</parameter></term>
|
||
<listitem>
|
||
<para>Указывает pip искать архивы wheel в каталоге
|
||
<filename class='directory'>dist</filename>.</para>
|
||
</listitem>
|
||
</varlistentry>
|
||
</variablelist>
|
||
</sect2>
|
||
|
||
<sect2 id="contents-flit-core" role="content">
|
||
<title>Содержимое пакета Flit-Core</title>
|
||
|
||
<segmentedlist>
|
||
<segtitle>Созданные каталоги</segtitle>
|
||
|
||
<seglistitem>
|
||
<seg>
|
||
/usr/lib/python&python-minor;/site-packages/flit_core и
|
||
/usr/lib/python&python-minor;/site-packages/flit_core-&flit-core-version;.dist-info
|
||
</seg>
|
||
</seglistitem>
|
||
</segmentedlist>
|
||
|
||
</sect2>
|
||
|
||
</sect1>
|
||
|