Bug#1041537: python3 platlib points again to /usr/local

2023-08-03 Thread Jussi Pakkanen
On Wed, 2 Aug 2023 at 12:01, Enrico Zini  wrote:

> > I'm confused. Why is this not set by default when building packages?
> > FWICT this is a custom patch in Debian to make Python use deb paths.In
> > this case Meson is doing exactly what you ask it to do, which is to
> > use local paths because that environment variable is not set to `deb`.
>
> It will, though it's not there yet.

Based on that thread I'd say that this is not a bug in Meson at all.
Can I just close it or should it be reassigned to some other package
so it is not forgotten?



Bug#1041537: python3 platlib points again to /usr/local

2023-08-02 Thread Enrico Zini
On Tue, Aug 01, 2023 at 11:23:43PM +0300, Jussi Pakkanen wrote:
> On Fri, 21 Jul 2023 at 14:09, Jeremy Bícha  wrote:
> 
> > We have been working around this in several Debian packages by setting
> > this in debian/rules:
> > export DEB_PYTHON_INSTALL_LAYOUT = deb
> 
> I'm confused. Why is this not set by default when building packages?
> FWICT this is a custom patch in Debian to make Python use deb paths.In
> this case Meson is doing exactly what you ask it to do, which is to
> use local paths because that environment variable is not set to `deb`.

It will, though it's not there yet.

See the thread starting from
https://lists.debian.org/debian-devel/2023/07/msg00307.html
and see 
https://salsa.debian.org/python-team/tools/dh-python/-/commit/fe7912b8ff386cf21478f2cd7f055b2a8665fdd4

Enrico

-- 
GPG key: 4096R/634F4BD1E7AD5568 2009-05-08 Enrico Zini 



Bug#1041537: python3 platlib points again to /usr/local

2023-08-01 Thread Jussi Pakkanen
On Fri, 21 Jul 2023 at 14:09, Jeremy Bícha  wrote:

> We have been working around this in several Debian packages by setting
> this in debian/rules:
> export DEB_PYTHON_INSTALL_LAYOUT = deb

I'm confused. Why is this not set by default when building packages?
FWICT this is a custom patch in Debian to make Python use deb paths.In
this case Meson is doing exactly what you ask it to do, which is to
use local paths because that environment variable is not set to `deb`.



Bug#1041537: python3 platlib points again to /usr/local

2023-07-21 Thread Jeremy Bícha
Control: found 1041537 1.1.1-2

I believe meson in Testing also has this issue.

We have been working around this in several Debian packages by setting
this in debian/rules:
export DEB_PYTHON_INSTALL_LAYOUT = deb

Thank you,
Jeremy Bícha



Bug#1041537: python3 platlib points again to /usr/local

2023-07-20 Thread Enrico Zini
Package: meson
Version: 1.2.0-1
Severity: serious

Hello,

Thank you for maintaining Meson!

At first glance it looks like there is a regression of
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1026312

On stable:

   $ cat meson.build
   project('test', 'cpp', version: '3.36', license : 'GPL-2.0-or-later')
   
   pymod = import('python')
   python3 = pymod.find_installation('python3', required: false)
   message('PLATLIB', python3.get_path('platlib'))
   
   $ meson setup /tmp/zz
   The Meson build system
   Version: 1.0.1
   Source dir: [...]
   Build dir: /tmp/zz
   Build type: native build
   Project name: test
   Project version: 3.36
   C++ compiler for the host machine: ccache c++ (gcc 12.2.0 "c++ (Debian 
12.2.0-14) 12.2.0")
   C++ linker for the host machine: c++ ld.bfd 2.40
   Host machine cpu family: x86_64
   Host machine cpu: x86_64
   Program python3 found: YES (/usr/bin/python3)
   Message: PLATLIB /usr/lib/python3/dist-packages


On sid:

   $ cat meson.build
   project('test', 'cpp', version: '3.36', license : 'GPL-2.0-or-later')
   
   pymod = import('python')
   python3 = pymod.find_installation('python3', required: false)
   message('PLATLIB', python3.get_path('platlib'))
   
   $ meson setup /tmp/zz
   The Meson build system
   Version: 1.2.0
   Source dir: [...]
   Build dir: /tmp/zz
   Build type: native build
   Project name: test
   Project version: 3.36
   C++ compiler for the host machine: c++ (gcc 13.1.0 "c++ (Debian 13.1.0-8) 
13.1.0")
   C++ linker for the host machine: c++ ld.bfd 2.40.90.20230714
   Host machine cpu family: x86_64
   Host machine cpu: x86_64
   Program python3 found: YES (/usr/bin/python3)
   Message: PLATLIB /usr/local/lib/python3.11/dist-packages


This is affecting wreport, and I guess the same list of packages as
#1026312


Enrico


-- System Information:
Debian Release: trixie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-9-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages meson depends on:
ii  ninja-build1.11.1-1
ii  python33.11.4-5
ii  python3-pkg-resources  68.0.0-1
ii  python3-setuptools 68.0.0-1

Versions of packages meson recommends:
ii  dpkg-dev  1.21.22

meson suggests no packages.

-- no debconf information