Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #13636
| From | Jonathan Dowland <jmtd@debian.org> |
|---|---|
| Newsgroups | linux.debian.maint.python |
| Subject | packaging help request: paths for build_py and build_scripts phases |
| Date | 2021-10-18 12:10 +0200 |
| Message-ID | <D9xKF-1cl-5@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
Hello,
I am attempting to package the latest upstream version of "trash-cli"¹,
which differs quite a lot from the current package on the build side of
things.
https://github.com/andreafrancia/trash-cli
The problem occurs during the post-build test phase. The tests cannot
find the scripts they are trying to test. The build appears to be a
standard python setuptools/distutils thing and the packaging is a
standard dh --with python3 --buildsystem=pybuild. The Build runs
/usr/bin/python3 setup.py build
Which outputs the following (elided)
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/trashcli
> copying trashcli/fstab.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/trashcli
...
So for the build_py phase, the destination for copied files is rooted
under <<PKGBUILDDIR>>. The next build phase handles scripts:
> running build_scripts
> creating build
> creating build/scripts-3.9
> copying and adjusting trash -> build/scripts-3.9
...
Here, the scripts are copied to a path *not* rooted in <<PKGBUILDDIR>>.
So far as I can tell, both phases are normal parts of the
setuptools/distutils build lifecycle, and I haven't spotted anything
obviously non-standard about the way that is specified.
Where is it that the build_py phase's path are specified or overridden
such that they are correctly rooted under <<PKGBUILDDIR>>, and why isn't
the same true of the build_scripts phase?
I've pushed my WIP packaging to a temporary branch.
https://salsa.debian.org/debian/trash-cli/-/tree/jmtd-update-0.21.7.24
A BTS bug requesting the new version with some back-and-forth trying to
figure this out is
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=988597
Thank you in advance for any tips you can offer!
Best wishes,
--
👱🏻 Jonathan Dowland
✎ jmtd@debian.org
🔗 https://jmtd.net
Back to linux.debian.maint.python | Previous | Next — Next in thread | Find similar | Unroll thread
packaging help request: paths for build_py and build_scripts phases Jonathan Dowland <jmtd@debian.org> - 2021-10-18 12:10 +0200 Re: packaging help request: paths for build_py and build_scripts phases Timo Röhling <roehling@debian.org> - 2021-10-18 18:20 +0200
csiph-web