Xuanwo commented on code in PR #6861:
URL: https://github.com/apache/opendal/pull/6861#discussion_r2587715112


##########
bindings/python/justfile:
##########
@@ -55,9 +55,9 @@ clean:
 stub-gen: setup
     @echo "{{ BOLD }}--- Generating Python type stubs ---{{ NORMAL }}"
     @cargo run --quiet --manifest-path=../../dev/Cargo.toml -- generate -l 
python
-    @cargo run --quiet --bin stub_gen
+    @bash -c 'PY_PREFIX=$($(uv python find) -c "import sys; 
print(sys.base_prefix)") && PYO3_PYTHON=$(uv python find) 
PYTHONHOME="$PY_PREFIX" LIBRARY_PATH="$PY_PREFIX/lib" 
DYLD_LIBRARY_PATH="$PY_PREFIX/lib" cargo run --quiet --bin stub_gen'

Review Comment:
   This seems not the correct fix to me. Can we use `uv run cargo run --quiet 
--bin stub_gen` instead to get the correct python?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to