astral-sh / rye

a Hassle-Free Python Experience
https://rye.astral.sh
MIT License
13.6k stars 466 forks source link

Cannot install uwsgi #1348

Closed mbrochh closed 1 month ago

mbrochh commented 1 month ago

Steps to Reproduce

rye init
rye add uwsgi

OS: MacOS 14.5

Expected Result

Should install uwsgi

Actual Result

Error:

ld: warning: search path '/install/lib' not found
ld: library 'python3.10' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Version Info

rye 0.39.0 commit: 0.39.0 (bf3ccf818 2024-08-21) platform: macos (aarch64) self-python: cpython@3.12.5 symlink support: true uv enabled: true

Stacktrace

No response

mbrochh commented 1 month ago

Oh. I figured it out:

rye tools install --git 'https://github.com/bluss/sysconfigpatcher' sysconfigpatcher
sysconfigpatcher ~/.rye/py/cpython@3.10.14/
rye add uwsgi