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.

Docs: add instructions on config to default to new resolver

See original GitHub issue

Some people would like to set an environment variable manually on the command line, or something in pypi.rc or pip.conf, so they can tell pip to default to the new resolver #6536 #988 and test it more easily, without having to manually include --use-feature=2020-resolver each time. Example via Twitter:

It would be handy to be able to enable the new deps resolver via an env var. This would allow testing it in conjunction with tools such as poetry and pipenv.

@Julian in IRC logs suggested editing pip.conf and daturkel says this worked:

[install] use-feature = 2020-resolver

We should decide whether we want to support this, and then if we do, we should add a line about it to the how-to-test docs.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:10 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
akaiholacommented, Jul 31, 2020

Note that if you modify configuration using

pip config set global.use-feature 2020-resolver

it isn’t possible to disable the resolver simply using

pip config unset global.use-feature

Instead, you’ll need

pip config unset --user global.use-feature

I see this behavior on Fedora 30, Python 3.7 and pip 20.2.

1reaction
McSinyxcommented, Jul 31, 2020

I can’t reproduce this on my Debian machine with CPython 3.8 and pip 20.2. pip config unset global.use-feature does unset the feature, but I notice that it unsets the entire option and AFAIK there’s yet to be a way to deselect just one feature. I’m wondering if we want to support that, and if so I’ll file a separate ticket tracking it.

@akaihola, I wonder what pip config debug says on your system.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuring Metro - Meta Open Source
Metro's default resolver processes each of these fields according to the browser field spec, including the ability to replace and ignore ...
Read more >
Resolvers - Apollo GraphQL Docs
Apollo Server needs to know how to populate data for every field in your schema so that it can respond to requests for...
Read more >
git-config Documentation - Git
A list of all available configuration variables can be obtained using the git help --config command. OPTIONS. --replace-all. Default behavior is to replace...
Read more >
User Guide - pip documentation v22.3.1
Users of pip 20.2 who want pip to default to using the new resolver can run pip config set global.use-feature 2020-resolver (for more...
Read more >
Configuring resolvers (VTL) - AWS AppSync
On the Create Resolver page, choose the data source you created in the Attaching a data source guide. In the Configure mapping templates...
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