Repository navigation
Closed
Description
Hi there, an user from AUR repository reported me that when we download tarball from GitHub in the following
$ curl -LO https://github.com/garrettj403/SciencePlots/archive/refs/tags/2.2.0.tar.gz
$ tar -xvf 2.2.0.tar.gz
$ cd SciencePlots-2.2.0
$ sudo pacman -Syu python-setuptools-scm python-build
$ export SETUPTOOLS_SCM_PRETEND_VERSION=2.2.0
$ python -m build --wheel --no-isolation
$ unzip dist/scienceplots-2.2.0-py3-none-any.whl
Archive: dist/scienceplots-2.2.0-py3-none-any.whl
inflating: scienceplots/__init__.py
inflating: scienceplots/styles_discovery.py
inflating: scienceplots/tests/__init__.py
inflating: scienceplots/tests/conftest.py
inflating: scienceplots/tests/test_scienceplots.py
inflating: scienceplots-2.2.0.dist-info/licenses/LICENSE
inflating: scienceplots-2.2.0.dist-info/METADATA
inflating: scienceplots-2.2.0.dist-info/WHEEL
inflating: scienceplots-2.2.0.dist-info/top_level.txt
inflating: scienceplots-2.2.0.dist-info/RECORD
the directory styles is missing, this behaviour is different when install with pip
./lib/python3.14/site-packages/pyparsing:
total 440
-rw-r--r-- 1 aur aur 13438 Feb 14 08:37 __init__.py
drwxr-xr-x 2 aur aur 4096 Feb 14 08:37 __pycache__
-rw-r--r-- 1 aur aur 8104 Feb 14 08:37 actions.py
drwxr-xr-x 4 aur aur 4096 Feb 14 08:37 ai
-rw-r--r-- 1 aur aur 17205 Feb 14 08:37 common.py
-rw-r--r-- 1 aur aur 251832 Feb 14 08:37 core.py
drwxr-xr-x 3 aur aur 4096 Feb 14 08:37 diagram
-rw-r--r-- 1 aur aur 10981 Feb 14 08:37 exceptions.py
-rw-r--r-- 1 aur aur 41793 Feb 14 08:37 helpers.py
-rw-r--r-- 1 aur aur 0 Feb 14 08:37 py.typed
-rw-r--r-- 1 aur aur 27603 Feb 14 08:37 results.py
-rw-r--r-- 1 aur aur 15452 Feb 14 08:37 testing.py
drwxr-xr-x 3 aur aur 4096 Feb 14 08:37 tools
-rw-r--r-- 1 aur aur 10612 Feb 14 08:37 unicode.py
-rw-r--r-- 1 aur aur 15997 Feb 14 08:37 util.py
-rw-r--r-- 1 aur aur 357 Feb 14 08:37 warnings.py
./lib/python3.14/site-packages/pyparsing/__pycache__:
total 548
-rw-r--r-- 1 aur aur 16891 Feb 14 08:37 __init__.cpython-314.pyc
-rw-r--r-- 1 aur aur 10501 Feb 14 08:37 actions.cpython-314.pyc
-rw-r--r-- 1 aur aur 18784 Feb 14 08:37 common.cpython-314.pyc
-rw-r--r-- 1 aur aur 320856 Feb 14 08:37 core.cpython-314.pyc
-rw-r--r-- 1 aur aur 16338 Feb 14 08:37 exceptions.cpython-314.pyc
-rw-r--r-- 1 aur aur 51876 Feb 14 08:37 helpers.cpython-314.pyc
-rw-r--r-- 1 aur aur 37716 Feb 14 08:37 results.cpython-314.pyc
-rw-r--r-- 1 aur aur 19351 Feb 14 08:37 testing.cpython-314.pyc
-rw-r--r-- 1 aur aur 18695 Feb 14 08:37 unicode.cpython-314.pyc
-rw-r--r-- 1 aur aur 26535 Feb 14 08:37 util.cpython-314.pyc
-rw-r--r-- 1 aur aur 986 Feb 14 08:37 warnings.cpython-314.pyc
./lib/python3.14/site-packages/pyparsing/ai:
total 20
-rw-r--r-- 1 aur aur 0 Feb 14 08:37 __init__.py
drwxr-xr-x 2 aur aur 4096 Feb 14 08:37 __pycache__
-rw-r--r-- 1 aur aur 8472 Feb 14 08:37 best_practices.md
drwxr-xr-x 3 aur aur 4096 Feb 14 08:37 show_best_practices
./lib/python3.14/site-packages/pyparsing/ai/__pycache__:
total 4
-rw-r--r-- 1 aur aur 168 Feb 14 08:37 __init__.cpython-314.pyc
./lib/python3.14/site-packages/pyparsing/ai/show_best_practices:
total 8
-rw-r--r-- 1 aur aur 0 Feb 14 08:37 __init__.py
-rw-r--r-- 1 aur aur 49 Feb 14 08:37 __main__.py
drwxr-xr-x 2 aur aur 4096 Feb 14 08:37 __pycache__
./lib/python3.14/site-packages/pyparsing/ai/show_best_practices/__pycache__:
total 8
-rw-r--r-- 1 aur aur 188 Feb 14 08:37 __init__.cpython-314.pyc
-rw-r--r-- 1 aur aur 279 Feb 14 08:37 __main__.cpython-314.pyc
./lib/python3.14/site-packages/pyparsing/diagram:
total 32
-rw-r--r-- 1 aur aur 26929 Feb 14 08:37 __init__.py
drwxr-xr-x 2 aur aur 4096 Feb 14 08:37 __pycache__
./lib/python3.14/site-packages/pyparsing/diagram/__pycache__:
total 36
-rw-r--r-- 1 aur aur 33851 Feb 14 08:37 __init__.cpython-314.pyc
./lib/python3.14/site-packages/pyparsing/tools:
total 12
-rw-r--r-- 1 aur aur 0 Feb 14 08:37 __init__.py
drwxr-xr-x 2 aur aur 4096 Feb 14 08:37 __pycache__
-rw-r--r-- 1 aur aur 6389 Feb 14 08:37 cvt_pyparsing_pep8_names.py
./lib/python3.14/site-packages/pyparsing/tools/__pycache__:
total 16
-rw-r--r-- 1 aur aur 171 Feb 14 08:37 __init__.cpython-314.pyc
-rw-r--r-- 1 aur aur 8954 Feb 14 08:37 cvt_pyparsing_pep8_names.cpython-314.pyc
./lib/python3.14/site-packages/pyparsing-3.3.2.dist-info:
total 24
-rw-r--r-- 1 aur aur 4 Feb 14 08:37 INSTALLER
-rw-r--r-- 1 aur aur 5783 Feb 14 08:37 METADATA
-rw-r--r-- 1 aur aur 2902 Feb 14 08:37 RECORD
-rw-r--r-- 1 aur aur 82 Feb 14 08:37 WHEEL
drwxr-xr-x 2 aur aur 4096 Feb 14 08:37 licenses
./lib/python3.14/site-packages/pyparsing-3.3.2.dist-info/licenses:
total 4
-rw-r--r-- 1 aur aur 1062 Feb 14 08:37 LICENSE
./lib/python3.14/site-packages/python_dateutil-2.9.0.post0.dist-info:
total 36
-rw-r--r-- 1 aur aur 4 Feb 14 08:37 INSTALLER
-rw-r--r-- 1 aur aur 2889 Feb 14 08:37 LICENSE
-rw-r--r-- 1 aur aur 8354 Feb 14 08:37 METADATA
-rw-r--r-- 1 aur aur 3125 Feb 14 08:37 RECORD
-rw-r--r-- 1 aur aur 110 Feb 14 08:37 WHEEL
-rw-r--r-- 1 aur aur 9 Feb 14 08:37 top_level.txt
-rw-r--r-- 1 aur aur 1 Feb 14 08:37 zip-safe
./lib/python3.14/site-packages/scienceplots:
total 20
-rw-r--r-- 1 aur aur 823 Feb 14 08:37 __init__.py
drwxr-xr-x 2 aur aur 4096 Feb 14 08:37 __pycache__
drwxr-xr-x 6 aur aur 4096 Feb 14 08:37 styles
-rw-r--r-- 1 aur aur 784 Feb 14 08:37 styles_discovery.py
drwxr-xr-x 3 aur aur 4096 Feb 14 08:37 tests
./lib/python3.14/site-packages/scienceplots/__pycache__:
total 8
-rw-r--r-- 1 aur aur 981 Feb 14 08:37 __init__.cpython-314.pyc
-rw-r--r-- 1 aur aur 1110 Feb 14 08:37 styles_discovery.cpython-314.pyc
./lib/python3.14/site-packages/scienceplots/styles:
total 28
drwxr-xr-x 3 aur aur 4096 Feb 14 08:37 color
drwxr-xr-x 2 aur aur 4096 Feb 14 08:37 journals
drwxr-xr-x 2 aur aur 4096 Feb 14 08:37 languages
drwxr-xr-x 2 aur aur 4096 Feb 14 08:37 misc
-rw-r--r-- 1 aur aur 679 Feb 14 08:37 notebook.mplstyle
-rw-r--r-- 1 aur aur 340 Feb 14 08:37 scatter.mplstyle
-rw-r--r-- 1 aur aur 1158 Feb 14 08:37 science.mplstyle
./lib/python3.14/site-packages/scienceplots/styles/color:
total 36
-rw-r--r-- 1 aur aur 236 Feb 14 08:37 bright.mplstyle
drwxr-xr-x 2 aur aur 4096 Feb 14 08:37 discrete-rainbow
-rw-r--r-- 1 aur aur 203 Feb 14 08:37 high-contrast.mplstyle
-rw-r--r-- 1 aur aur 241 Feb 14 08:37 high-vis.mplstyle
-rw-r--r-- 1 aur aur 255 Feb 14 08:37 light.mplstyle
-rw-r--r-- 1 aur aur 265 Feb 14 08:37 muted.mplstyle
-rw-r--r-- 1 aur aur 139 Feb 14 08:37 retro.mplstyle
-rw-r--r-- 1 aur aur 205 Feb 14 08:37 std-colors.mplstyle
-rw-r--r-- 1 aur aur 237 Feb 14 08:37 vibrant.mplstyle
./lib/python3.14/site-packages/scienceplots/styles/color/discrete-rainbow:
total 92
-rw-r--r-- 1 aur aur 179 Feb 14 08:37 discrete-rainbow-1.mplstyle
-rw-r--r-- 1 aur aur 271 Feb 14 08:37 discrete-rainbow-10.mplstyle
-rw-r--r-- 1 aur aur 281 Feb 14 08:37 discrete-rainbow-11.mplstyle
-rw-r--r-- 1 aur aur 291 Feb 14 08:37 discrete-rainbow-12.mplstyle
-rw-r--r-- 1 aur aur 301 Feb 14 08:37 discrete-rainbow-13.mplstyle
-rw-r--r-- 1 aur aur 311 Feb 14 08:37 discrete-rainbow-14.mplstyle
-rw-r--r-- 1 aur aur 321 Feb 14 08:37 discrete-rainbow-15.mplstyle
-rw-r--r-- 1 aur aur 331 Feb 14 08:37 discrete-rainbow-16.mplstyle
-rw-r--r-- 1 aur aur 341 Feb 14 08:37 discrete-rainbow-17.mplstyle
-rw-r--r-- 1 aur aur 351 Feb 14 08:37 discrete-rainbow-18.mplstyle
-rw-r--r-- 1 aur aur 361 Feb 14 08:37 discrete-rainbow-19.mplstyle
-rw-r--r-- 1 aur aur 190 Feb 14 08:37 discrete-rainbow-2.mplstyle
-rw-r--r-- 1 aur aur 371 Feb 14 08:37 discrete-rainbow-20.mplstyle
-rw-r--r-- 1 aur aur 381 Feb 14 08:37 discrete-rainbow-21.mplstyle
-rw-r--r-- 1 aur aur 391 Feb 14 08:37 discrete-rainbow-22.mplstyle
-rw-r--r-- 1 aur aur 401 Feb 14 08:37 discrete-rainbow-23.mplstyle
-rw-r--r-- 1 aur aur 200 Feb 14 08:37 discrete-rainbow-3.mplstyle
-rw-r--r-- 1 aur aur 210 Feb 14 08:37 discrete-rainbow-4.mplstyle
-rw-r--r-- 1 aur aur 220 Feb 14 08:37 discrete-rainbow-5.mplstyle
-rw-r--r-- 1 aur aur 230 Feb 14 08:37 discrete-rainbow-6.mplstyle
-rw-r--r-- 1 aur aur 240 Feb 14 08:37 discrete-rainbow-7.mplstyle
-rw-r--r-- 1 aur aur 250 Feb 14 08:37 discrete-rainbow-8.mplstyle
-rw-r--r-- 1 aur aur 260 Feb 14 08:37 discrete-rainbow-9.mplstyle
./lib/python3.14/site-packages/scienceplots/styles/journals:
total 8
-rw-r--r-- 1 aur aur 408 Feb 14 08:37 ieee.mplstyle
-rw-r--r-- 1 aur aur 937 Feb 14 08:37 nature.mplstyle
./lib/python3.14/site-packages/scienceplots/styles/languages:
total 24
-rw-r--r-- 1 aur aur 149 Feb 14 08:37 cjk-jp-font.mplstyle
-rw-r--r-- 1 aur aur 147 Feb 14 08:37 cjk-kr-font.mplstyle
-rw-r--r-- 1 aur aur 159 Feb 14 08:37 cjk-sc-font.mplstyle
-rw-r--r-- 1 aur aur 160 Feb 14 08:37 cjk-tc-font.mplstyle
-rw-r--r-- 1 aur aur 200 Feb 14 08:37 russian-font.mplstyle
-rw-r--r-- 1 aur aur 191 Feb 14 08:37 turkish-font.mplstyle
./lib/python3.14/site-packages/scienceplots/styles/misc:
total 20
-rw-r--r-- 1 aur aur 287 Feb 14 08:37 grid.mplstyle
-rw-r--r-- 1 aur aur 389 Feb 14 08:37 latex-sans.mplstyle
-rw-r--r-- 1 aur aur 205 Feb 14 08:37 no-latex.mplstyle
-rw-r--r-- 1 aur aur 133 Feb 14 08:37 pgf.mplstyle
-rw-r--r-- 1 aur aur 374 Feb 14 08:37 sans.mplstyle
./lib/python3.14/site-packages/scienceplots/tests:
total 12
-rw-r--r-- 1 aur aur 0 Feb 14 08:37 __init__.py
drwxr-xr-x 2 aur aur 4096 Feb 14 08:37 __pycache__
-rw-r--r-- 1 aur aur 1313 Feb 14 08:37 conftest.py
-rw-r--r-- 1 aur aur 1826 Feb 14 08:37 test_scienceplots.py
Therefore we have
python-scienceplots /usr/
python-scienceplots /usr/lib/
python-scienceplots /usr/lib/python3.14/
python-scienceplots /usr/lib/python3.14/site-packages/
python-scienceplots /usr/lib/python3.14/site-packages/scienceplots-2.2.0.dist-info/
python-scienceplots /usr/lib/python3.14/site-packages/scienceplots-2.2.0.dist-info/METADATA
python-scienceplots /usr/lib/python3.14/site-packages/scienceplots-2.2.0.dist-info/RECORD
python-scienceplots /usr/lib/python3.14/site-packages/scienceplots-2.2.0.dist-info/WHEEL
python-scienceplots /usr/lib/python3.14/site-packages/scienceplots-2.2.0.dist-info/licenses/
python-scienceplots /usr/lib/python3.14/site-packages/scienceplots-2.2.0.dist-info/licenses/LICENSE
python-scienceplots /usr/lib/python3.14/site-packages/scienceplots-2.2.0.dist-info/top_level.txt
python-scienceplots /usr/lib/python3.14/site-packages/scienceplots/
python-scienceplots /usr/lib/python3.14/site-packages/scienceplots/__init__.py
python-scienceplots /usr/lib/python3.14/site-packages/scienceplots/styles_discovery.py
python-scienceplots /usr/lib/python3.14/site-packages/scienceplots/tests/
python-scienceplots /usr/lib/python3.14/site-packages/scienceplots/tests/__init__.py
python-scienceplots /usr/lib/python3.14/site-packages/scienceplots/tests/conftest.py
python-scienceplots /usr/lib/python3.14/site-packages/scienceplots/tests/test_scienceplots.py
python-scienceplots /usr/share/
python-scienceplots /usr/share/doc/
python-scienceplots /usr/share/doc/python-scienceplots/
python-scienceplots /usr/share/doc/python-scienceplots/README.md
python-scienceplots /usr/share/licenses/
python-scienceplots /usr/share/licenses/python-scienceplots/
python-scienceplots /usr/share/licenses/python-scienceplots/LICENSE
Metadata
Metadata
Assignees
Labels
No labels
Activity
echedey-ls commentedon Feb 15, 2026
I'm unable to replicate step by step the first code snippet. Can you provide the full script or a link to whatever CI is running it? It may be build tools versions, IDK. I confirmed both sdist and bdist on PyPI are up and ok. Finally, to clarify:
curl -LO https://github.com/garrettj403/SciencePlots/archive/refs/tags/2.2.0.tar.gzjust downloads the snapshot of this repo at that version. No distribution files -as in PyPI packaging sdist and bdist are- are present in that snapshot. Building them is up to the developer/consumer.echedey-ls commentedon Feb 18, 2026
Please, provide further details on how to replicate the issue, links to the involved repo(s) [is it
python-scienceplotsorpython-scienceplots-git?], CI failures, complete local logs using whatever AUR client, etc. I may be able to assist, in fact I'm an arch user, but I need details on how, where and what to replicate.carlosal1015 commentedon Feb 18, 2026
Thanks, I am providing an asciinema for replicate the steps.
echedey-ls commentedon Feb 18, 2026
Lovely utility right there, I wasn't aware of
asciinema. Honestly, I'm not very familiar with Arch packaging but I can have a look. I guess this is thePKGBUILD[1] file steps, right?[1] Can you confirm it's the one at the following link? https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=python-scienceplots
carlosal1015 commentedon Feb 19, 2026
Yes, I confirm. And yes https://wiki.archlinux.org/title/Python_package_guidelines#Standards_based_(PEP_517)
echedey-ls commentedon Feb 20, 2026
@carlosal1015
I've already traced down the problem and got a possible fix. However, I think this also could be fixed from the AUR PKGBLD itself unless I'm missing any downside.
First of all, the problem is that the endpoint for the source files at https://github.com/garrettj403/SciencePlots/archive/refs/tags/2.2.0.tar.gz is the one accessed through https://github.com/garrettj403/SciencePlots/releases/tag/2.2.0 , and it merely serves a snapshot of the repo without
.git..gitis required by the build toolsetuptools_scmto provide the git-tracked files so that they end up bundled by default in bdist and sdist. Since it can't use git metadata, they get ignored, which is the default behavior ofsetuptoolsfor non-.pyfiles.I have two ways of modifying this behavior: either list them as part of the dist in
MANIFEST.inorpyproject.toml. Exactly which one is mostly a matter of preference, and I have already pushed this fix out to #152. Feel free to review.However, it's looks weird to me that such extended
setuptools_scmcan't be taken into account inPKGBUILD. That packaging tool is required for the build process anyways. The underlying issue -building without.gitpresence- seems very unintuitive to me. If the source endpoint could be changed to a real git repo tag, it should work out of the box. I don't know if this is a burden forPKGBUILDor AUR in general for maintenance, security reasons, or something else.See this
PKGBUILDmanual section: https://man.archlinux.org/man/PKGBUILD.5#USING_VCS_SOURCESAnd my following suggestion to do in
PKGBUILDis:I haven't tested it, but seems plausible to me. I'd prefer if you could have a look at this approach and test it. You must be more familiar with this tooling than me.
Please, let me know your thoughts and we will decide on how to proceed.
Saludos,
echedey-ls commentedon Feb 21, 2026
After some throughout though, I think I will modify this project's
MANIFEST.in, as it would be always required to build bdist from sdist, even on PyPI. Damn edge cases. Thanks for your report @carlosal1015 !carlosal1015 commentedon Feb 22, 2026
I apply the #152, but no luck
echedey-ls commentedon Feb 22, 2026
@carlosal1015 I haven't merged it yet, I will do next week when I have time. What do you mean by it doesn't work? Have you tested on the PR branch?
carlosal1015 commentedon Feb 22, 2026
First, I commit https://aur.archlinux.org/cgit/aur.git/commit/?h=python-scienceplots&id=eb65e8b7c96f1805e52816209cd4522c0ff7929d and look that styles directory is missing in wheel.
Later, I try to modify this, but not work.
I guess that if we switch sources in PKGBUILD pulling with git or pypy tarball the same behavior stills reamin.
echedey-ls commentedon Feb 23, 2026
Can you give it another try, please? I messed up which
MANIFEST.inversion to upload.Edit to add: your sed command must be updated now that I've changed the directive in it.
carlosal1015 commentedon Feb 25, 2026
Now, it works
echedey-ls commentedon Feb 25, 2026
Fixed in https://github.com/garrettj403/SciencePlots/releases/tag/2.2.1 , via #152.
Thanks @carlosal1015 for the report and the deep information you provided to replicate the issue.