question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Change the "Successfully Installed" message to use == instead of -

See original GitHub issue

What’s the problem this feature will solve?

Once I’ve installed new package I typically copy pasted the package and it’s version number from the CLI to the requirements file. The output of PIP re: version numbers is inconsistent with the input of PIP

Successfully installed django-advanced-filters-1.4.0 instead of Successfully installed django-advanced-filters==1.4.0

meaning I have to remember to edit that line or my next pip install -r will be broken. Would be nice if I didn’t have to remember that and the output was the same as the input.

Describe the solution you’d like

Pretty sure the only thing that would need to change is this line

https://github.com/pypa/pip/blob/7d618830001c827b9e72e7514e98b66fd7625e7c/src/pip/_internal/commands/install.py#L433

replacing the - with ==

However this would also involve fixing several tests which check for the output.

Alternative Solutions

Continue to manually work around this inconsistency or write a shell wrapper for pip to post process the output 🤮

Additional context

I’d be willing to make the change provided it would actually get merged but I’m not going to go to the trouble of fixing up all the tests for this to get a meh, not worth it kind of response.

Code of Conduct

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:2
  • Comments:16 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
piotr-dobrogostcommented, Mar 30, 2022

There’s no clear delineation between the package name and the package version (…)

This is exactly my point. I suspect you missed double negation in my post.

1reaction
piotr-dobrogostcommented, Mar 30, 2022

I really do not understand suggestions that django-advanced-filters==1.4.0 is not more readable and natural than the current django-advanced-filters-1.4.0 which (as stated) is a historical relic. Also, hypothetical tabular format should not block simple change proposed here.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I change the "Congratulations! you have ...
', Replace the text starting “Congratulations” with your own text that is welcoming and describes your business.
Read more >
Is it possible to change the message on my WIX install ...
I am new to Wix. My project uses the WixUI_Mode of InstallDir . I want the completion dialog to say "Installation completed" instead...
Read more >
Encrypt messages by using S/MIME in Outlook on the web
A digitally encrypted message can only be opened by recipients who have the correct key. ... Look for To use S/MIME, you need...
Read more >
Installation Failure Troubleshooting for iOS
This document assists with iOS App installation failures. Use it to diagnose specific causes and resolve app installation failures.
Read more >
The messages framework
The MESSAGE_LEVEL setting can be used to change the minimum recorded level (or it can be changed per request). Attempts to add messages...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found