Re: Behavior change for Python packages built with CMake
Hi Simon (2023.07.27_13:24:53_+0000)
> Is "deb_system" and not "deb" the canonical thing to use here? The GNOME
> team has been using "DEB_PYTHON_INSTALL_LAYOUT = deb" to work around
> the corresponding issue with Meson-built packages.
Historically it's always been deb.
> > 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?
That would be OK.
I think the right thing to do is to patch build-systems that are aware
of prefixes to understand Debian's python schemes. Either in Debian or
upstream, as appropriate. We want to preserve the property that things
install to /usr/local by default, and to /usr only by explicit request.
That's what I've pursued, so far.
Maybe the right thing to do is to change the sysconfig.get_path API
(#1041778) to select a scheme for you. But I'm hesitant about that
approach. It would probably fix a number of these build systems in one
stroke, but it's a little more magic.
Stefano
--
Stefano Rivera
http://tumbleweed.org.za/
+1 415 683 3272
Reply to: