Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move to uv #85

Closed
aborgna-q opened this issue Oct 25, 2024 · 0 comments · Fixed by #94
Closed

Move to uv #85

aborgna-q opened this issue Oct 25, 2024 · 0 comments · Fixed by #94

Comments

@aborgna-q
Copy link
Collaborator

aborgna-q commented Oct 25, 2024

We use a python package manager locally just to run Rust tests that talk with the python interpreter via pyo3 (to query data from pytket).

I have a branch attempting to replace poetry with uv here, but unfortunately it seems that when uv uses local python interpreters rustc cannot find libpython:

uv run -- cargo test
   Compiling tket-json-rs v0.6.2 (/Users/aborgna/src/tket-json-rs)
error: linking with `cc` failed: exit status: 1
  |
  = note: (...) "cc" "-arch" "arm64" (...) "-lpython3.13" "-liconv" "-lSystem" "-lc" "-lm" "-L" "/install/lib" (...)
  = note: ld: warning: search path '/install/lib' not found
          ld: library 'python3.13' not found
          clang: error: linker command failed with exit code 1 (use -v to see invocation)

I think this is the same issue reported here astral-sh/uv#6812, so we'll have to wait for a fix before updating.

github-merge-queue bot pushed a commit that referenced this issue Nov 18, 2024
Closes #85 

drive-by: Add `pre-commit` checks

---------

Co-authored-by: Alec Edgington <54802828+cqc-alec@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant