-
-
Notifications
You must be signed in to change notification settings - Fork 420
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
PDM seems to mix python versions in creating initial __pycache__ files #2213
Comments
Also, I noticed the project name |
I don't think it's a big deal. Those pyc files are copied from the in-package template since your PDM is installed with Python 3.9 and the 3.11 pyc files have not been generated yet.
The package name only changes according to the project name you input if you select "yes" to init a library instead. Not a bug. |
OK. In that case, then I think we can close this issue. Thanks for your time. |
Close #2213 Signed-off-by: Frost Ming <[email protected]>
Steps to reproduce
pyenv
,asdf
orrtx
but keep the system version as the 'in-use' version.pdm
managed python project withpdm init
.Actual behavior
From the screenshot below, you can see I selected to use python 3.11 (specifically 3.11.5 installed via
asdf
) for the virtual environment (even though the system version 3.9.2 is the 'in-use' version) which it does but I see python 3.9.pyc
files within the__pycache__
folders presumably because the system version is the 'in-use' version?Expected behavior
I appreciate one could consider this user error in selecting a python version that was not selected as 'in-use' but I would have expected
pdm
to warn me of this or to not find such versions in the first place and thus avoid mixing versions or to correctly use the selected version to create the.pyc
files.Environment Information
The text was updated successfully, but these errors were encountered: