惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园_首页
Vercel News
Vercel News
月光博客
月光博客
S
SegmentFault 最新的问题
A
About on SuperTechFans
Microsoft Security Blog
Microsoft Security Blog
U
Unit 42
Google DeepMind News
Google DeepMind News
Engineering at Meta
Engineering at Meta
B
Blog RSS Feed
Y
Y Combinator Blog
云风的 BLOG
云风的 BLOG
N
Netflix TechBlog - Medium
小众软件
小众软件
WordPress大学
WordPress大学
G
Google Developers Blog
Recent Announcements
Recent Announcements
H
Hackread – Cybersecurity News, Data Breaches, AI and More
P
Proofpoint News Feed
Blog — PlanetScale
Blog — PlanetScale
MongoDB | Blog
MongoDB | Blog
F
Fortinet All Blogs
博客园 - 【当耐特】
I
InfoQ

AUR Newest Packages

AUR (en) - linuxqq-clipsync-git AUR (en) - libtslitex-git AUR (en) - libtslitex-git AUR (en) - carton-appimage AUR (en) - veila-git AUR (en) - veila-bin AUR (en) - vigil-baseline AUR (en) - byedroid AUR (en) - neovim-base16-git AUR (en) - pirata AUR (en) - rpi-imager-git-non-root AUR (en) - python-fastapi-sso AUR (en) - tmux-ai-titles AUR (en) - zeed-bin AUR (en) - bclone-bin AUR (en) - dwl-git-azerty AUR (en) - auggie-bin AUR (en) - libspatialaudio-git AUR (en) - libspatialaudio AUR (en) - miniupnpd-iptables-legacy AUR (en) - miniupnpd-nft AUR (en) - jeeves-bin AUR (en) - opennow AUR (en) - rotki AUR (en) - kapi-bin AUR (en) - classfi-bin AUR (en) - classfi-git AUR (en) - classfi AUR (en) - giff-git AUR (en) - budget-tracker-bin
AUR (en) - python-scienceplots
2026-06-24 · via AUR Newest Packages

Latest Comments

hockeymikey commented on 2026-01-05 03:47 (UTC)

@bladewing Great fix! Can confirmed it worked for me!

bladewing commented on 2025-11-25 09:59 (UTC)

Build failure with setuptools-scm

The package currently fails to build with the following error:

LookupError: setuptools-scm was unable to detect version for /home/<username>/.cache/yay/python-scienceplots/src/SciencePlots-2.2.0
Root cause

The build uses --no-isolation which requires all build dependencies to be available in the build environment. Since the source tarball doesn't include .git metadata, setuptools-scm cannot automatically detect the version.

Fix

Two changes are needed:

  1. Add python-setuptools-scm to makedepends:
makedepends=(python-setuptools python-setuptools-scm python-build python-installer python-wheel)
  1. Set the version explicitly in the build() function:
build() {
  cd ${_base}-${pkgver}
  export SETUPTOOLS_SCM_PRETEND_VERSION=${pkgver}
  python -m build --wheel --skip-dependency-check --no-isolation
}
Complete diff
--- PKGBUILD
+++ PKGBUILD
@@ -9,11 +9,12 @@
 url="https://github.com/garrettj403/${_base}"
 license=(MIT)
 depends=(python-matplotlib)
-makedepends=(python-setuptools python-build python-installer python-wheel)
+makedepends=(python-setuptools python-setuptools-scm python-build python-installer python-wheel)
 source=(${_base}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz)
 sha512sums=('f8bd91f86f4034ea5d4fc2343649553c95be7d88c80e42d0506193ef8aef4a6ebb35cbb7413c93b15490d8db89c3eb8bfb268a7fc60b5404d572e33d9c3cf055')
 conflicts=(python-${_base,,}-git)

 build() {
   cd ${_base}-${pkgver}
+  export SETUPTOOLS_SCM_PRETEND_VERSION=${pkgver}
   python -m build --wheel --skip-dependency-check --no-isolation
 }

With these changes, the package builds and installs successfully.

carlosal1015 commented on 2023-05-31 18:40 (UTC)

Thanks @yuhldr for the hint.

yuhldr commented on 2023-05-31 03:24 (UTC)

source=(${_base}.tar.gz::${url}/archive/${pkgver}.tar.gz)

The above line in PKGBUILD suggests deleting the custom filename '${_base}.tar.gz::$', or changing it to the following

source=(${_base}-${pkgver}-${pkgrel}.tar.gz::${url}/archive/${pkgver}.tar.gz)

Because this now causes the system to not download the latest source file, directly package it with the last file, and then report the sha512sums error if the last 'SciencePlots.tar.gz' is cached locally

carlosal1015 commented on 2023-01-04 15:51 (UTC)

Thanks @yuhldr for the hint.

yuhldr commented on 2023-01-04 14:36 (UTC)

python-setuptools may be makedepends?