-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Pipenv can't install black because black is only a pre-release #5171
Comments
I propose adding a very very simple clause to https://github.com/erinxocon/vscode-python/blob/e441ed614fe9ccda1818e19acbba5ab8d82d772c/src/client/common/installer/pipEnvInstaller.ts#L33
I am concerned though, this places the burden on the VS Code development team when black comes out with a non-pre version. The other option could be to instruct the user to do this manually passing the --pre flag. The reason I bring this up is that I believe, and @techalchemy can correct me if I'm wrong, but when |
@erinxocon, thanks for letting us know about this. We'll look into it. |
@ericsnowcurrently thanks! I'm willing to work on a PR once a decision is reached on how to handle this edge case. I helped develop pipenv and am very familiar with it's workings 🌈🍰🌈 |
Agreed, we will have to make an exception with |
Environment data
Expected behaviour
Black installs ok
Actual behaviour
Black fails to install because there are only beta releases and pipenv doesn't look for those by default
Steps to reproduce:
--pre
isn't providedLogs
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)Output from
Console
under theDeveloper Tools
panel (toggle Developer Tools on underHelp
; turn on source maps to make any tracebacks be useful by runningEnable source map support for extension debugging
)Output from terminal:
Proposed solution:
--pre
flag to the pipenv command when black is chosen and installed.The text was updated successfully, but these errors were encountered: