Unable to Build from Tarball
With version 3.48.0, I can no longer build a release from a tarball since it fails with an error that dist is only available with Git or Mercurial repos. Steps to reproduce:
- Download https://download.gnome.org/sources/pygobject/3.48/pygobject-3.48.0.tar.xz
tar xvf pygobject-3.48.0.tar.xz
cd pygobject-3.48.0
python3 -m venv .venv
source .venv/bin/activate
pip install build meson-python meson ninja
python -m build
* Creating venv isolated environment...
* Installing packages in isolated environment... (meson-python>=0.12.1, pycairo>=1.16)
* Getting build dependencies for sdist...
* Building sdist...
+ meson setup /home/dan/Downloads/pygobject-3.48.0 /home/dan/Downloads/pygobject-3.48.0/.mesonpy-07arsoau -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md -Dwheel=true --wrap-mode=nofallback --native-file=/home/dan/Downloads/pygobject-3.48.0/.mesonpy-07arsoau/meson-python-native-file.ini
The Meson build system
Version: 1.3.2
Source dir: /home/dan/Downloads/pygobject-3.48.0
Build dir: /home/dan/Downloads/pygobject-3.48.0/.mesonpy-07arsoau
Build type: native build
Project name: pygobject
Project version: 3.48.0
C compiler for the host machine: cc (gcc 13.2.1 "cc (SUSE Linux) 13.2.1 20240206 [revision 67ac78caf31f7cb3202177e6428a46d829b70f23]")
C linker for the host machine: cc ld.bfd 2.42.0.20240130-2
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program python3 found: YES (/tmp/build-env-chitdd7a/bin/python)
Found pkg-config: YES (/usr/bin/pkg-config) 2.1.1
Run-time dependency python found: YES 3.11
Run-time dependency gobject-introspection-1.0 found: YES 1.78.1
Run-time dependency glib-2.0 found: YES 2.78.3
Run-time dependency gobject-2.0 found: YES 2.78.3
Run-time dependency gio-2.0 found: YES 2.78.3
Run-time dependency gmodule-2.0 found: YES 2.78.3
Run-time dependency libffi found: YES 3.4.4
Run-time dependency cairo found: YES 1.18.0
Run-time dependency cairo-gobject found: YES 1.18.0
Message: Found pycairo with target Python: /tmp/build-env-chitdd7a/lib64/python3.11/site-packages/cairo/include
Compiler for C supports arguments -Wall: YES
Compiler for C supports arguments -Warray-bounds: YES
Compiler for C supports arguments -Wcast-align: YES
Compiler for C supports arguments -Wduplicated-branches: YES
Compiler for C supports arguments -Wextra: YES
Compiler for C supports arguments -Wformat=2: YES
Compiler for C supports arguments -Wformat-nonliteral: YES
Compiler for C supports arguments -Wformat-security: YES
Compiler for C supports arguments -Wimplicit-function-declaration: YES
Compiler for C supports arguments -Winit-self: YES
Compiler for C supports arguments -Wjump-misses-init: YES
Compiler for C supports arguments -Wlogical-op: YES
Compiler for C supports arguments -Wmissing-declarations: YES
Compiler for C supports arguments -Wmissing-format-attribute: YES
Compiler for C supports arguments -Wmissing-include-dirs: YES
Compiler for C supports arguments -Wmissing-noreturn: YES
Compiler for C supports arguments -Wmissing-prototypes: YES
Compiler for C supports arguments -Wnested-externs: YES
Compiler for C supports arguments -Wnull-dereference: YES
Compiler for C supports arguments -Wold-style-definition: YES
Compiler for C supports arguments -Wpacked: YES
Compiler for C supports arguments -Wpointer-arith: YES
Compiler for C supports arguments -Wrestrict: YES
Compiler for C supports arguments -Wreturn-type: YES
Compiler for C supports arguments -Wshadow: YES
Compiler for C supports arguments -Wsign-compare: YES
Compiler for C supports arguments -Wstrict-aliasing: YES
Compiler for C supports arguments -Wstrict-prototypes: YES
Compiler for C supports arguments -Wswitch-default: YES
Compiler for C supports arguments -Wundef: YES
Compiler for C supports arguments -Wunused-but-set-variable: YES
Compiler for C supports arguments -Wwrite-strings: YES
Compiler for C supports arguments -Wno-incompatible-pointer-types-discards-qualifiers: NO
Compiler for C supports arguments -Wno-missing-field-initializers: YES
Compiler for C supports arguments -Wno-unused-parameter: YES
Compiler for C supports arguments -Wno-discarded-qualifiers: YES
Compiler for C supports arguments -Wno-sign-conversion: YES
Compiler for C supports arguments -Wno-cast-function-type: YES
Compiler for C supports arguments -Wno-int-conversion: YES
Compiler for C supports arguments -fno-strict-aliasing: YES
Compiler for C supports arguments -fvisibility=hidden: YES
Configuring config.h using configuration
Compiler for C supports arguments -fvisibility=hidden: YES (cached)
Dependency gobject-introspection-1.0 found: YES 1.78.1 (cached)
Dependency gobject-introspection-1.0 found: YES 1.78.1 (cached)
Program /usr/bin/g-ir-scanner found: YES (/usr/bin/g-ir-scanner)
Dependency gobject-introspection-1.0 found: YES 1.78.1 (cached)
Program /usr/bin/g-ir-compiler found: YES (/usr/bin/g-ir-compiler)
Dependency gio-2.0 found: YES 2.78.3 (cached)
Program /usr/bin/glib-compile-schemas found: YES (/usr/bin/glib-compile-schemas)
Build targets in project: 10
pygobject 3.48.0
User defined options
Native files: /home/dan/Downloads/pygobject-3.48.0/.mesonpy-07arsoau/meson-python-native-file.ini
buildtype : release
wrap_mode : nofallback
b_ndebug : if-release
b_vscrt : md
wheel : true
Found ninja-1.11.1.git.kitware.jobserver-1 at /home/dan/Downloads/pygobject-3.48.0/.venv/bin/ninja
+ meson dist --allow-dirty --no-tests --formats gztar
Dist currently only works with Git or Mercurial repos
ERROR Backend subprocess exited when trying to invoke build_sdist