Skip to content

Commit 724a76c

Browse files
committed
refcatored executable
1 parent 6a18f96 commit 724a76c

File tree

3 files changed

+15
-10
lines changed

3 files changed

+15
-10
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ a.out
2222
.clj-kondo
2323
pregen-ffi-test
2424
.calva
25+
.lock

python.edn

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/libpython_clj2/python/uv.clj

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
(ns libpython-clj2.python.uv
2-
(:require
3-
[clojure.edn :as edn]
4-
[clojure.java.process :as process]
5-
[clojure.string :as str]
6-
[cheshire.core :as json]
7-
))
2+
(:require
3+
[clojure.edn :as edn]
4+
[clojure.java.process :as process]
5+
[clojure.string :as str]
6+
[cheshire.core :as json]))
87

98
(defn write-pyproject-toml! [deps-edn]
109

@@ -92,6 +91,14 @@
9291

9392
(defn setup! [& args]
9493
(setup-python!)
95-
(setup-r!)
94+
;(setup-r!)
9695
)
9796

97+
(comment
98+
(require 'libpython-clj2.python)
99+
(require 'libpython-clj2.python.uv)
100+
(libpython-clj2.python.uv/setup!)
101+
(libpython-clj2.python/initialize! :python-executable ".venv/bin/python")
102+
(libpython-clj2.python/run-simple-string "import sys; print(sys.path)")
103+
(libpython-clj2.python/import-module "openai")
104+
)

0 commit comments

Comments
 (0)