File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
src/libpython_clj2/python Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 1
1
# Time for a ChangeLog!
2
+ ## Unreleased
3
+ * Fix issue with locating python dll on MS-Windows
4
+ [ #246 ] ( https://github.com/clj-python/libpython-clj/issues/246 ) .
5
+
2
6
## 2.024
3
7
* large dtype-next/hamf upgrade.
4
8
* fix for call-attr (it was broken when using keywords).
Original file line number Diff line number Diff line change @@ -96,6 +96,7 @@ print(json.dumps(
96
96
" Failed to find value python executable. Tried %s"
97
97
default-python-executables )))))
98
98
python-home (find-python-home system-info options)
99
+ platform (:platform system-info)
99
100
java-lib-path (java-library-path-addendum python-home)
100
101
[ver-maj ver-med _ver-min] (:version system-info)
101
102
lib-version (format " %s.%s" ver-maj ver-med)
@@ -105,7 +106,12 @@ print(json.dumps(
105
106
libnames (concat [libname]
106
107
; ;Make sure we try without the 'm' suffix
107
108
(when lib-version
108
- [(str " python" lib-version)]))]
109
+ [(str " python" lib-version)])
110
+ ; ; The official python dll
111
+ ; ; does not have a dot in
112
+ ; ; its name.
113
+ (when (= platform " win32" )
114
+ [(str " python" ver-maj ver-med)]))]
109
115
(merge
110
116
system-info
111
117
{:python-home python-home
You can’t perform that action at this time.
0 commit comments