Skip to content

Commit 7eb95d6

Browse files
authored
Merge pull request #846 from hmaarrfk/3.13_rebuild_for_findLibrary_fix
3.13 -- Backport of Fix clash between folders in lib and usable libraries
2 parents d6b6a63 + efa7a26 commit 7eb95d6

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

recipe/meta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{% set ver2 = '.'.join(version.split('.')[0:2]) %}
55
{% set ver2nd = ''.join(version.split('.')[0:2]) %}
66
{% set ver3nd = ''.join(version.split('.')[0:3]) %}
7-
{% set build_number = 0 %}
7+
{% set build_number = 1 %}
88

99
# this makes the linter happy
1010
{% set channel_targets = channel_targets or 'conda-forge main' %}

recipe/patches/0003-Fix-find_library-so-that-it-looks-in-sys.prefix-lib-.patch

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
From 2744ccebb04a75e66d943b16a1899237d358f122 Mon Sep 17 00:00:00 2001
1+
From 24c5979ae5cf7febe41ad52060b248493735c517 Mon Sep 17 00:00:00 2001
22
From: Ray Donnelly <mingw.android@gmail.com>
33
Date: Tue, 5 Dec 2017 22:47:59 +0000
4-
Subject: [PATCH 03/24] Fix find_library so that it looks in sys.prefix/lib
5-
first
4+
Subject: [PATCH] Fix find_library so that it looks in sys.prefix/lib first
65

76
---
87
Lib/ctypes/macholib/dyld.py | 4 ++++
@@ -25,7 +24,7 @@ index 583c47daff3..ab9b01c87e2 100644
2524
yield os.path.join(executable_path, name[len('@executable_path/'):])
2625

2726
diff --git a/Lib/ctypes/util.py b/Lib/ctypes/util.py
28-
index 117bf06cb01..2e9fa474ace 100644
27+
index 117bf06cb01..a9b61aab8c0 100644
2928
--- a/Lib/ctypes/util.py
3029
+++ b/Lib/ctypes/util.py
3130
@@ -70,7 +70,8 @@ def find_library(name):
@@ -47,7 +46,7 @@ index 117bf06cb01..2e9fa474ace 100644
4746
+ return None
4847
+ for fullname in (name, "lib%s.so" % (name)):
4948
+ path = os.path.join(sys.prefix, 'lib', fullname)
50-
+ if os.path.exists(path):
49+
+ if os.path.exists(path) and not os.path.isdir(path):
5150
+ return path
5251
+ return None
5352
+

0 commit comments

Comments
 (0)