Skip to content

fix: DEPRECATION warning on pip install -e . #4872

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

Closed
vedpawar2254 opened this issue Mar 1, 2025 · 2 comments · Fixed by #4873
Closed

fix: DEPRECATION warning on pip install -e . #4872

vedpawar2254 opened this issue Mar 1, 2025 · 2 comments · Fixed by #4873
Labels
bug Something isn't working

Comments

@vedpawar2254
Copy link
Contributor

vedpawar2254 commented Mar 1, 2025

Description

This warning comes up when i run pip install -e .

DEPRECATION: Legacy editable install of cve-bin-tool==3.4 from file:///Users/vedpawar/Desktop/open_source/cve-bin-tool (setup.py develop) is deprecated. pip 25.0 will enforce this behaviour change. A possible replacement is to add a pyproject.toml or enable --use-pep517, and use setuptools >= 64. If the resulting installation is not behaving as expected, try using --config-settings editable_mode=compat. Please consult the setuptools documentation for more information. Discussion can be found at https://github.com/pypa/pip/issues/11457

I guess installing packages in editable mode using setup.py develop is legacy now

To reproduce

Steps to reproduce the behaviour:
Run pip install -e .

Expected behaviour:
ideally no warning should come up

Actual behaviour:

DEPRECATION warning

I'll look into this issue.
Please let me know if there is anything to add.

@vedpawar2254 vedpawar2254 added the bug Something isn't working label Mar 1, 2025
@vedpawar2254 vedpawar2254 changed the title fix: [bug description] fix: DEPRECATION warning on pip install -e . Mar 1, 2025
@vedpawar2254
Copy link
Contributor Author

using pip install -e . --use-pep517 will work but i think i'll add pyproject.toml file as the warning suggests

vedpawar2254 pushed a commit to vedpawar2254/cve-bin-tool that referenced this issue Mar 1, 2025
@terriko
Copy link
Contributor

terriko commented Mar 3, 2025

Duplicate of #4313. Since this issue has more information I'll close the older issue instead.

terriko added a commit to vedpawar2254/cve-bin-tool that referenced this issue Mar 5, 2025
vedpawar2254 added a commit to vedpawar2254/cve-bin-tool that referenced this issue Mar 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants