Code Monkey home page Code Monkey logo

Comments (4)

cjdoris avatar cjdoris commented on May 27, 2024

CondaPkg does not promise (so far) to follow the same package specs as the Conda command line, so it's not a bug that tensorflow=*=cpu* is not supported. In fact the CondaPkg REPL syntax is very under-specified right now - sort of intentionally.

For your specific case, you can already do conda add 'tensorflow >0 cpu*' or CondaPkg.add("tensorflow", build="cpu*").

On the one hand, it is nice to support familiar syntax for Conda users. On the other hand, the pkg=version=build syntax has the drawback that it limits what versions are allowed (e.g. you can't specify the version as >=3,<4 because those extra =s confuse things) and the pkg=version syntax is special in that foo=3.8 actually parses the version as 3.8.*.

Also, CondaPkg generally tries to stick to conventions from Pkg. So I propose specifying the build with a #, e.g. conda add tensorflow#cpu*.

What do you think?

from condapkg.jl.

t-bltg avatar t-bltg commented on May 27, 2024

For your specific case, you can already do conda add 'tensorflow >0 cpu*' or CondaPkg.add("tensorflow", build="cpu*").

Thanks, I didn't know that, and it might be worth to add some test or some documentation examples for the users.

the pkg=version=build syntax has the drawback that it limits what versions are allowed (e.g. you can't specify the version as >=3,<4 because those extra =s confuse things)

Yes, imo using a = is a poor choice from the conda developers in the first place.

I would tend to agree with the choice of using add instead or install for consistency with Pkg. In fact, we could use @1.2 for version specifiers and as you proposed #cpu* for a build spec, and try to stick with the Pkg conventions. Of course, this would need docs.

from condapkg.jl.

cjdoris avatar cjdoris commented on May 27, 2024

FYI #59 implements this suggestion.

from condapkg.jl.

t-bltg avatar t-bltg commented on May 27, 2024

Great, thanks for the prompt fix and the new release ;)

from condapkg.jl.

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.