PS E:\rye_test> .\.venv\Scripts\python.exe
Python 3.12.3 (main, Apr 15 2024, 17:48:16) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
Switch version to 3.10
rye pin 3.10
rye sync -F
ls ./.venv/Lib/site-packages/pydantic_core/
The last version displayed is 3.11
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a--- 2024/9/28 18:05 4337 __init__.py
-a--- 2024/9/28 18:05 5031936 _pydantic_core.cp311-win_amd64.pyd
-a--- 2024/9/28 18:05 46790 _pydantic_core.pyi
-a--- 2024/9/28 18:05 145622 core_schema.py -a--- 2024/9/28 18:05 0 py.typed ````
### Expected Result
When using pin to switch versions, rye sync should download the package of the switched version instead of the package before the switch.
### Actual Result
Logs
### Version Info
rye 0.40.0
commit: 0.40.0 (a928cd53a 2024-09-22)
platform: windows (x86_64)
self-python: cpython@3.12.3
symlink support: true
uv enabled: true
### Stacktrace
_No response_
Steps to Reproduce
pyd type dependency download is incorrect
Initialize the project
This is displayed as correct:
Switch version to 3.12
It still shows cp311 at this time:
View python-version content:
Actual run to view the version:
Switch version to 3.10
The last version displayed is 3.11