python-viztracer
The flagged 'pip install' occurs in the check() function within a temporary virtual environment to install a test dependency (loky) for running unit tests, which is a common and safe practice in Python packaging; the package otherwise builds and installs from verified source using standard tools.
Triggered rules
pip_install_external
`pip install <package>` fetches an unpinned package from PyPI at build time, outside source=() and makepkg's checksums. Severity reduced: python-* packages routinely use pip.
-
PKGBUILD:51
$PWD/venv/bin/python -m pip install loky
llm_review
An AI model (qwen/qwen3-235b-a22b-07-25) reviewed this and agrees it is LOW (confidence 95%): The flagged 'pip install' occurs in the check() function within a temporary virtual environment to install a test dependency (loky) for running unit tests, which is a common and safe practice in Python packaging; the package otherwise builds and installs from verified source using standard tools.
PKGBUILD
1 offending line(s) highlighted# Maintainer: Kino <cybao292261@163.com>
# Contributor: PumpkinCheshire <me at pumpkincheshire dot com>
pkgname=python-viztracer
_pkgname=viztracer
pkgver=1.1.1
pkgrel=2
pkgdesc='VizTracer is a low-overhead logging/debugging/profiling tool that can trace and visualize your python code execution.'
arch=('x86_64')
url="https://github.com/gaogaotiantian/viztracer"
license=('Apache-2.0')
depends=('python' 'python-objprint')
makedepends=(
'python-wheel'
'python-build'
'python-installer'
)
optdepends=(
'python-rich: Full function support'
'python-orjson: Full function support'
'chromium: browser to open html results'
)
source=("$_pkgname-$pkgver.tar.gz::https://github.com/gaogaotiantian/viztracer/archive/$pkgver.tar.gz")
sha512sums=('6ddaab573172f53f940bf2b66f8d384d63378baf4a0b2439e6a816e6aeae69ab44c423dcb1bac3ddd14092667ccfb5323abbc4562e239acbc7c50124726d6476')
b2sums=('a0fc3aca12a93443f1449000c39348f4dae7be80cfeaf6a4829875cc48df515c25dccd102df96f9cfc82c9faf184dedf7d46fa7c76f4eb94a44edcac507dc420')
prepare() {
cd "$srcdir/$_pkgname-$pkgver" || exit
# Disable it because the external processor is something that the script should download from google.
sed -i "s|use_external_processor=True|use_external_processor=False|g" tests/test_viewer.py
# Attach is not working, this is some black magic and is OS-dependent.
rm tests/test_remote.py
}
build() {
cd "$srcdir/$_pkgname-$pkgver" || exit
CFLAGS=$(sed "s/-Wp,-D_FORTIFY_SOURCE=[2-3]\s//g" <(echo $CFLAGS))
CXXFLAGS=$(sed "s/-Wp,-D_FORTIFY_SOURCE=[2-3]\s//g" <(echo $CXXFLAGS))
python -m build --wheel --no-isolation
}
check() {
cd "$srcdir/$_pkgname-$pkgver" || exit
# From upstream, virtual environment is highly recommended.
python -m venv venv --system-site-packages
source venv/bin/activate
$PWD/venv/bin/python -m pip install loky
$PWD/venv/bin/python -m installer dist/*.whl
$PWD/venv/bin/python -m unittest
deactivate # existing in virtual environment
}
package() {
cd "$srcdir/$_pkgname-$pkgver" || exit
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-17 00:27:14 | Low | 2 |
| 2026-09-16 00:03:17 | Low | 2 |
| 2026-09-15 00:25:31 | Low | 2 |
| 2026-09-14 00:27:57 | Low | 2 |
| 2026-09-13 00:19:54 | Low | 2 |
| 2026-09-12 00:25:17 | Low | 2 |
| 2026-09-11 00:19:22 | Low | 2 |
| 2026-09-10 00:22:44 | Low | 2 |
| 2026-09-09 00:04:09 | Low | 2 |
| 2026-09-08 00:18:08 | Low | 2 |
| 2026-09-07 00:30:15 | Low | 2 |
| 2026-09-06 00:17:06 | Low | 2 |
| 2026-09-05 00:16:27 | Low | 2 |
| 2026-09-04 00:03:13 | Low | 2 |
| 2026-09-03 00:15:47 | Low | 2 |
| 2026-09-02 00:02:31 | Low | 2 |
| 2026-09-01 00:11:19 | Low | 2 |
| 2026-08-31 00:19:57 | Low | 2 |
| 2026-08-30 00:04:14 | Low | 2 |
| 2026-08-29 00:29:17 | Low | 2 |