Closed yochananmarqos closed 3 years ago
I think the line
meson.add_install_script('setup.py', 'install', '--prefix', get_option('prefix'))
in my meson.build script should respect DESTDIR
environment variable.
I'm looking for a way to read environment variable from Meson script, which is not directly supported by Meson.
@yochananmarqos Please help test the 37a1a01d commit.
No difference, I'm afraid.
@yochananmarqos Please send me the debug log (I don't use Arch, I cannot debug myself).
Found the reason. When your tool run
DESTDIR="$pkgdir" meson install -C build
Meson just invoke Ninja to run the Ninja script generated previously. When the Ninja script was generated, the DESTDIR
was not set, the the Ninja script didn't build the "python setup.py" command as we expected.
I'm looking for other solution.
@yochananmarqos This commit a54f71683fcf6403962923f95601cd676a03788e may fix it. Please help test.
That did the trick! 👍️
I tested your latest commit, but it fails: