# 使用 Homebrew, apt, dnf 安装 flit

查看 flit 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:flit
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install flit
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install flit
```

  证据: Debian stable package indexes: flit from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install flit
```

  证据: Fedora Rawhide package metadata: flit from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

## 软件包事实

- **软件包键:** brew:flit
- **软件包管理器:** Homebrew
- **版本:** 3.12.0
- **来源摘要:** Simplified packaging of Python modules
- **主页:** <https://github.com/pypa/flit>
- **仓库:** <https://github.com/pypa/flit>
- **最后更新:** 2026-05-21T11:31:14Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- flit (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 3.12.0
## 项目历史与用法

Flit is a Python packaging tool for publishing modules and packages to PyPI with a small amount of project metadata. It became notable in Python packaging culture as an early, opinionated tool built around pyproject.toml and the PEP 517 build-backend model rather than the older setup.py workflow.

### 项目历史

The project appeared on PyPI in 2015 and describes itself as a simple way to put Python packages and modules on PyPI while avoiding common packaging mistakes. Its workflow centers on running flit init to create pyproject.toml, then using flit publish or flit install for distribution and local development.

Flit's documentation records the evolution from the very old flit.ini format, to the older [tool.flit.metadata] table, and then to the standard [project] table. The same documentation identifies flit_core as the build backend used by pip and other build frontends.

### 采用历史

Flit was adopted by Python projects that wanted a low-boilerplate packaging path for single import packages and modules. Its role grew with standard pyproject.toml metadata, because it offered a compact implementation of the modern build-backend approach.

The package is distributed through PyPI and is also curated by operating-system package managers, including Homebrew and several Linux distributions in the supplied package facts.

### 使用方式

Typical use starts with python3 -m pip install flit, then flit init in a project directory to create pyproject.toml. Publishing is done with flit publish, and development installs use flit install with optional symlink and interpreter flags.

Flit is intentionally narrow: it packages one importable module or package at a time, reads common metadata from pyproject.toml and the module, and delegates standard wheel installation behavior to pip.

### 为什么软件包爱好者会关心

Flit is significant to package maintainers because it made pyproject.toml-first packaging feel practical before that workflow became routine. It is also a useful reference point for the division between a frontend CLI, flit, and a backend package, flit_core.

For package-index and distribution maintainers, Flit is a clean example of PEP 517-era packaging: projects can declare flit_core.buildapi in [build-system], allowing build tools to construct wheels without executing setup.py.

### 时间线

- 2015: Flit 0.1 is uploaded to PyPI.
- 2016: Early 0.x releases continue the simple PyPI publishing workflow.
- 2020: Flit 3.x era documentation supports the standard [project] metadata table.
- 2026: PyPI metadata reports Flit 3.12.0 as the current release during this enrichment run.

### Related projects

- flit_core is the build backend used in pyproject.toml for Flit-built packages.
- pip consumes Flit-built wheels and can invoke Flit in an isolated build environment for source distributions.
- setuptools and other Python packaging tools are the broader ecosystem that Flit is commonly compared against.

### 来源

- <https://flit.pypa.io/en/stable/>
- <https://flit.pypa.io/en/stable/pyproject_toml.html>
- <https://github.com/pypa/flit>
- <https://pypi.org/pypi/flit/json>


## 安全说明

没有找到 flit 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: pyproject.toml

## Credential files

- Unix: ~/.pypirc
## 其他软件包管理器记录

- Debian apt - flit - 3.12.0-1: normalized package name match | Debian stable package indexes: flit from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | simple way to put Python packages and modules on PyPI (PEP 517) | https://flit.readthedocs.io/en/latest/
- Ubuntu apt - flit - 3.9.0-2: normalized package name match | Ubuntu 24.04 LTS package indexes: flit from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | simple way to put Python packages and modules on PyPI (PEP 517) | https://flit.readthedocs.io/en/latest/
- dnf - flit - 3.12.0-9.fc45: normalized package name match | Fedora Rawhide package metadata: flit from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Simplified packaging of Python modules | https://flit.pypa.io/


## Combined YAML source

View the package source record on GitHub. [combined/flit.yml](https://github.com/mxcl/pkgdb/blob/main/combined/flit.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
