File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/libpython_clj2/python Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 3737 (list python-major python-minor python-micro)"
3838 [executable]
3939 (let [{:keys [out err exit]}
40- (sh/sh executable " -c" " import sys, json;
40+ (sh/sh executable " -c" " import sys, platform, json;
4141print(json.dumps(
4242{'platform': sys.platform,
4343 'prefix': sys.prefix,
4444 'base-prefix': sys.base_prefix,
4545 'executable': sys.executable,
4646 'base-exec-prefix': sys.base_exec_prefix,
4747 'exec-prefix': sys.exec_prefix,
48+ 'platform-arch': platform.machine(),
4849 'version': list(sys.version_info)[:3]}))" )]
4950 (when (= 0 exit)
5051 (json/read-str out :key-fn keyword))))
@@ -117,6 +118,7 @@ print(json.dumps(
117118 {:python-home python-home
118119 :lib-version lib-version
119120 :libname libname
120- :libnames libnames}
121+ :libnames libnames
122+ :java-os-arch (System/getProperty " os.arch" )}
121123 (when java-lib-path
122124 {:java-library-path-addendum java-lib-path}))))
You can’t perform that action at this time.
0 commit comments