@@ -113,18 +113,8 @@ user> (py/py. np linspace 2 3 :num 10)
113113 (let [python-edn-opts (-> (try (slurp " python.edn" )
114114 (catch java.io.FileNotFoundException _ " {}" ))
115115 clojure.edn/read-string)
116- _ (log/infof " Pre-initialize-fn %s" (some-> python-edn-opts :pre-initialize-fn ))
117- _ (def python-edn-opts python-edn-opts )
116+ _ (log/debugf " Pre-initialize-fn %s" (some-> python-edn-opts :pre-initialize-fn ))
118117 _ (some-> python-edn-opts :pre-initialize-fn requiring-resolve (apply []))
119- _ (some-> python-edn-opts :pre-initialize-fn )
120- ; _ ( (requiring-resolve 'libpython-clj2.python.uv/sync-python-setup))
121-
122- ; (require 'libpython-clj2.python.uv)
123-
124- ; (requiring-resolve )
125-
126- ; (-> 'libpython-clj2.python.uv/char-seq namespace symbol require)
127- ; (resolve 'libpython-clj2.python.uv/char-seq)
128118 options (merge python-edn-opts options)
129119 info (py-info/detect-startup-info options)
130120 _ (log/infof " Startup info %s" info)
@@ -832,15 +822,3 @@ user> c
832822 ~@(for [s symbols] `(def ~s ~s))))
833823
834824
835- (comment
836- (require 'libpython-clj2.python)
837- (require 'libpython-clj2.python.uv)
838-
839- (libpython-clj2.python/initialize! )
840- (libpython-clj2.python/run-simple-string " import sys; sys.path.append('.venv/Lib/site-packages')" )
841- (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)" )
844- (libpython-clj2.python/import-module " openai" )
845- (libpython-clj2.python/import-module " langextract" )
846- )
0 commit comments