GithubHelp home page GithubHelp logo

Error parsing Os about pyflow HOT 4 CLOSED

david-oconnor avatar david-oconnor commented on June 25, 2024
Error parsing Os

from pyflow.

Comments (4)

David-OConnor avatar David-OConnor commented on June 25, 2024 1

Should be fixed

from pyflow.

David-OConnor avatar David-OConnor commented on June 25, 2024

Fixed in latest commit, for the case of BSD. Like you suggest, I'm going to parse pep 508 and handle all cases, so this doesn't come up for a different OS - that PEP's exactly what we need to prevent this from coming up again.

from pyflow.

David-OConnor avatar David-OConnor commented on June 25, 2024

It looks like neither PEP 508 nor the sys module docs have a comprehensive list. this SO post is the best I can find. Also using some tricks like if the name contains bsd, linux etc. Let me know if you have a more comprehensive/official list.

from pyflow.

nuno-andre avatar nuno-andre commented on June 25, 2024

The point is that these requirements are abstract, and were devised to be interpreted by the application according its context. So there will be nothing like an exhaustive list of values for those requirements.

And I think this is a great design because, to my mind, there's no reliable way to model such an ever changing domain.

I usually find them easier to handle by reversing the evaluation in a lazy and best-effort approach, rather than attempting to model every single dependency; since you know how to evaluate the markers of the systems you support, but not many others which actually do not matter. In this way, this issue is not a bug, but an enhancement ;)

The flow in naïve-Python would be roughly like:

requirements_that_matter = list()

for requirement in install_requires:
    for marker, value in requirement.markers.items():
        if value not in this_specific_system.get_values_for(marker):
            break
    requirements_that_matter.append(requirement)

I think this approach makes the dependency management easier, especially the transitive ones.

It's great to hear about your commit. I'm going to try the build again and I'll give you feedback. Thanks!

from pyflow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.