Skip to content

Commit

Permalink
Fix Graphene can't find Python
Browse files Browse the repository at this point in the history
  • Loading branch information
danyeaw authored and pbor committed Jun 17, 2024
1 parent 5e0f49c commit 9fa4e3e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
23 changes: 23 additions & 0 deletions gvsbuild/patches/graphene/001-fix-python-lookup.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
From 69c64ca00a8beb388a93bd4696596512e78e4587 Mon Sep 17 00:00:00 2001
From: DjLegolas <djlegolas@protonmail.com>
Date: Fri, 19 Apr 2024 03:09:11 +0300
Subject: [PATCH] build: fix python search for gobject integration

When compiling with Gobject integration on Windows, the build fails because it finds the incorrect
python interpreter.

Closes: #265
---
diff --git a/src/meson.build b/src/meson.build
index 29c1920..d701de4 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -97,7 +97,7 @@ graphene_dep_sources = []

# Introspection
if build_gir
- python = python.find_installation('python3')
+ python = python.find_installation()
identfilter_py = join_paths(meson.current_source_dir(), 'identfilter.py')

gir_extra_args = [
1 change: 1 addition & 0 deletions gvsbuild/projects/graphene.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def __init__(self):
archive_filename="graphene-{version}.tar.gz",
hash="922dc109d2dc5dc56617a29bd716c79dd84db31721a8493a13a5f79109a4a4ed",
dependencies=["ninja", "meson", "pkgconf", "glib"],
patches=["001-fix-python-lookup.patch"],
)
if self.opts.enable_gi:
self.add_dependency("gobject-introspection")
Expand Down

0 comments on commit 9fa4e3e

Please sign in to comment.