We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ask_for_import()
Make sure you run commands with -v flag before pasting the output.
-v
requirements.txt
find_importable_files()
pdm/src/pdm/cli/utils.py
Line 617 in c1c2bf8
pdm init
setuptools
pyproject.toml
Found following files from other formats that you may import
I believe this happens because ask_for_import() calls Command.do_import() which just simply replaces it:
Command.do_import()
pdm/src/pdm/cli/commands/import_cmd.py
Line 86 in c1c2bf8
After initializing and importing PDM will reset the build backend to the default.
PDM should not reset the build backend, especially if it was specified in the same "session", like in the example above using init.
init
PDM version: 2.10.1 Python Interpreter: C:\Users\x\Documents\GitHub\test-proj\.venv\Scripts\python.exe (3.11) Project Root: C:/Users/x/Documents/GitHub/test-proj Local Packages: { "implementation_name": "cpython", "implementation_version": "3.11.6", "os_name": "nt", "platform_machine": "AMD64", "platform_release": "10", "platform_system": "Windows", "platform_version": "10.0.22621", "python_full_version": "3.11.6", "platform_python_implementation": "CPython", "python_version": "3.11", "sys_platform": "win32" }
The text was updated successfully, but these errors were encountered:
fix: Don't reset the build backend when asking for import
184e2ed
Fixes #2388 Signed-off-by: Frost Ming <me@frostming.com>
frostming
Successfully merging a pull request may close this issue.
Make sure you run commands with
-v
flag before pasting the output.Steps to reproduce
requirements.txt
or other config file recognized byfind_importable_files()
in the project:pdm/src/pdm/cli/utils.py
Line 617 in c1c2bf8
pdm init
setuptools
)setuptools
inpyproject.toml
]requirements.txt
whenFound following files from other formats that you may import
appearsI believe this happens because
ask_for_import()
callsCommand.do_import()
which just simply replaces it:pdm/src/pdm/cli/commands/import_cmd.py
Line 86 in c1c2bf8
Actual behavior
After initializing and importing PDM will reset the build backend to the default.
Expected behavior
PDM should not reset the build backend, especially if it was specified in the same "session", like in the example above using
init
.Environment Information
The text was updated successfully, but these errors were encountered: