[meld] setup_win32: Get site-packages in a slightly less silly way
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] setup_win32: Get site-packages in a slightly less silly way
- Date: Sat, 28 Apr 2018 20:42:01 +0000 (UTC)
commit e5c572dafc4f27c49c94c2cda3f230fe6f4f09b9
Author: Kai Willadsen <kai willadsen gmail com>
Date: Sun Apr 29 06:40:30 2018 +1000
setup_win32: Get site-packages in a slightly less silly way
This was breaking on msys2 builds, because it only has one entry in
site-packages.
setup_win32.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/setup_win32.py b/setup_win32.py
index b1679ab0..aa89b081 100644
--- a/setup_win32.py
+++ b/setup_win32.py
@@ -9,7 +9,7 @@ from cx_Freeze import setup, Executable
import meld.build_helpers
import meld.conf
-site_dir = site.getsitepackages()[1]
+site_dir = [f for f in site.getsitepackages() if 'site-packages' in f][0]
include_dll_path = os.path.join(site_dir, "gnome")
missing_dll = [
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]