From 5d006e84cd9aa431df57e75f219d10cbe3859639 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Kjerringv=C3=A5g?= Date: Wed, 17 Mar 2021 20:39:46 +0100 Subject: [PATCH 1/2] Include correct libraries With version `2` of `libpython-clj`, the libraries are postfixed with `2` --- src/clj/new/libpython_clj/core.clj | 6 +++--- src/clj/new/libpython_clj/python.clj | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/clj/new/libpython_clj/core.clj b/src/clj/new/libpython_clj/core.clj index a233d2d..7687975 100644 --- a/src/clj/new/libpython_clj/core.clj +++ b/src/clj/new/libpython_clj/core.clj @@ -1,7 +1,7 @@ (ns {{base}}.{{suffix}} - (:require [libpython-clj.python :as py :refer [py. py.- py.. py* py**]] - {{base}}.python - [libpython-clj.require :refer [require-python import-python]])) + (:require [libpython-clj2.python :as py :refer [py. py.- py.. py* py**]] + [{{base}}.python] + [libpython-clj2.require :refer [require-python import-python]])) (import-python) diff --git a/src/clj/new/libpython_clj/python.clj b/src/clj/new/libpython_clj/python.clj index 3f00694..63e4c5a 100644 --- a/src/clj/new/libpython_clj/python.clj +++ b/src/clj/new/libpython_clj/python.clj @@ -1,5 +1,5 @@ (ns {{base}}.python - (:require [libpython-clj.python :as py])) + (:require [libpython-clj2.python :as py])) (defn initialize-python! ([] (py/initialize!)) @@ -11,5 +11,5 @@ ;; you bind to below. Make sure you do this before you call 'require-python' ;; in any file. -;; (initialize-python! "/path/to/venv/bin/python") -(initialize-python! "python3.7") +;; (initialize-python! "/path/to/env/bin/python") +(initialize-python! "python3") From bdffba6db1fc76f4e99fceb98e56f8c1d6bb70c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Kjerringv=C3=A5g?= Date: Wed, 17 Mar 2021 20:44:44 +0100 Subject: [PATCH 2/2] Add link back to libpython-clj in the README --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index f523440..7032b69 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ # Libpython-clj clj-template +* https://github.com/clj-python/libpython-clj * https://github.com/seancorfield/clj-new