Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #17518
| From | James Lu <jlu@debian.org> |
|---|---|
| Newsgroups | linux.debian.maint.python |
| Subject | Porting the icoextract package to pyproject.toml |
| Date | 2026-06-07 00:50 +0200 |
| Message-ID | <N3801-aRGI-1@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
Hello, I'm running into some issues porting my icoextract package to pyproject.toml. I've gotten it to build and function with pybuild-plugin-pyproject, but it required some hacks along the way. However, I'm not sure if I'm seeing bugs/limitations in the toolchain, or I'm using the tools in some non-standard manner. I've staged the changes at https://salsa.debian.org/jlu/icoextract/-/tree/debian/experimental?ref_type=heads. (Disclaimer: I am also the upstream author) 1) The .deb package seems to leave behind /usr/lib/python3/dist-packages/build/lib/icoextract. I can remove it manually with an execute_after_dh_auto_install rule, but it doesn't feel like this should be necessary. I've attached what the file list looks like without the rm -rf rule. 2) lintian complains about additional files in /usr/lib/python3.14/dist-packages/icoextract-0.3.0.dist-info/. The rest of the source files are installed to /usr/lib/python3/dist-packages/icoextract/, which is what I expect from previous versions currently in the archive. 3) `export PYBUILD_INSTALL_ARGS=--install-scripts=debian/tmp` doesn't seem to do anything now. I think that might be because --install-scripts is a setup.py specific feature, but the wiki is still hinting at this approach for packaging programs[1][2]. In my case, I'm fine with changing python3-icoextract to contain the library & CLI utils, and making icoextract a meta-package instead. AFAICT most distros did not bother to split the package at all. I'd appreciate any advice on fixing up the port! Best, James [1]: https://wiki.debian.org/Python/Pybuild#CUSTOMIZATION [2]: https://wiki.debian.org/Python/LibraryStyleGuide#Executables_and_library_packages
Back to linux.debian.maint.python | Previous | Next | Find similar | Unroll thread
Porting the icoextract package to pyproject.toml James Lu <jlu@debian.org> - 2026-06-07 00:50 +0200
csiph-web