[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Behavior change for Python packages built with CMake



* Simon McVittie <smcv@debian.org> [2023-07-27 14:24]:
The patched sysconfig and distutils.sysconfig modules in Debian
have a (somewhat poorly documented) override for package
builds: set the DEB_PYTHON_INSTALL_LAYOUT environment variable to
"deb_system". This is used internally by pybuild

Would it make sense for debhelper to set this, either unconditionally
or in a sufficiently new compat level, and either unconditionally or
for the cmake and meson build systems?

Yes, I think that is a good idea. One thing I am a bit afraid of is
upstream cargo-culting, i.e., someone setting this variable
unconditionally in their build system as a "Debian workaround",
which would defeat its purpose, distinguishing a package build from
a regular user build.


Cheers
Timo

--
⢀⣴⠾⠻⢶⣦⠀   ╭────────────────────────────────────────────────────╮
⣾⠁⢠⠒⠀⣿⡁   │ Timo Röhling                                       │
⢿⡄⠘⠷⠚⠋⠀   │ 9B03 EBB9 8300 DF97 C2B1  23BF CC8C 6BDD 1403 F4CA │
⠈⠳⣄⠀⠀⠀⠀   ╰────────────────────────────────────────────────────╯

Attachment: signature.asc
Description: PGP signature


Reply to: