Skip to content

Commit 2747227

Browse files
committed
Merge branch 'uv' of github.com:behrica/libpython-clj into uv
2 parents 5dfc96c + 862845e commit 2747227

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

python.edn

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
:python-version "3.10.16"
3-
:python-deps ["openai==1.58.1"
4-
"langextract"]
2+
;:python-version "3.10.16"
3+
;:python-deps ["openai==1.58.1"
4+
; "langextract"]
55
:python-executable ".venv/Scripts/python"
6-
:pre-initialize-fn libpython-clj2.python.uv/sync-python-setup!
6+
;:pre-initialize-fn libpython-clj2.python.uv/sync-python-setup!
77

88
}

src/libpython_clj2/python.clj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -837,6 +837,10 @@ user> c
837837
(require 'libpython-clj2.python.uv)
838838

839839
(libpython-clj2.python/initialize!)
840+
(libpython-clj2.python/run-simple-string "import sys; sys.path.append('.venv/Lib/site-packages')")
840841
(libpython-clj2.python/run-simple-string "import sys; print(sys.path)")
842+
(libpython-clj2.python/run-simple-string "import sys; print(sys.prefix)")
843+
(libpython-clj2.python/run-simple-string "import sys; print(sys.base_prefix)")
841844
(libpython-clj2.python/import-module "openai")
842-
(libpython-clj2.python/import-module "langextract"))
845+
(libpython-clj2.python/import-module "langextract")
846+
)

src/libpython_clj2/python/uv.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
(let [python-deps
1111
(:python-deps deps-edn)
1212

13-
;python-version (:python-version deps-edn)
13+
python-version (:python-version deps-edn)
1414

1515
py-project-header-lines ["[project]"
1616
"name = \"temp\""
1717
"version = \"0.0\""
18-
;(format "requires-python = \"==%s\"" python-version)
18+
(format "requires-python = \"==%s\"" python-version)
1919
]
2020
python-deps-lines
2121
(map

0 commit comments

Comments
 (0)