Comments (2)
The initial round is implemented partially as a “fail fast” mechanism to report immediately if the user-supplied requirement set already contains conflicts. But the same can be achieved with appropriate ordering (e.g. pip’s current approach of prioritising resolution of user-requested packages), so indeed it’s possible maybe we can do away with that initial round. I have not thought too deep into the algorithm to figure out whether that’s correct or not, however. It’d probably be a good start to just remove that part of the code, and run the test suite with a tweaked get_preference()
implementation.
from resolvelib.
👍 I'm currently integrating resolvelib into ansible-galaxy CLI and I've also noticed that find_matches happen earlier than the obvious conflicts are detected. So it does sound reasonable to do such an optimization.
One optimization (hack?) I see, on the caller side, is supplying a virtual requirement that depends on all the actual requirements.
from resolvelib.
Related Issues (20)
- Let's move this to the `pypa` organisation? HOT 4
- 0.8.1: pytest warnings HOT 3
- Typing inconsistency: `AbstractProvider.get_preferences` HOT 1
- Implement lazy consumption of the candidates iterable returned by find_matches() HOT 1
- Sdist releases on pypi.org do not contain files required for tests HOT 2
- Add documentation HOT 5
- Test Failures With Packaging 22.0/23.0 HOT 1
- Drop support for Python prior to 3.7 HOT 3
- Default branch has been renamed to `main` and branch protections enabled
- Resolvelib 0.9.0 passes identifiers to Provider's `get_preference` method without accompanying PreferenceInformation HOT 5
- Please make a new release
- Required Python versions not specified in pip-readable way HOT 1
- 0.9.0: pytest is failing in 6 units HOT 3
- sdist is missing conftest.py HOT 1
- Option to only provide causes of conflict when calling get_preference HOT 2
- An example of resolution failure while it does have a valid resolution. HOT 21
- Awkward wording in docstring for `find_matches()` HOT 5
- Implement Causes Narrowing HOT 1
- Toward 1.0 HOT 12
- ResolveLib 2.0 and unsupported Pythons HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from resolvelib.