Giter Site home page Giter Site logo

Support for package managers about deepo HOT 4 CLOSED

ufoym avatar ufoym commented on May 14, 2024
Support for package managers

from deepo.

Comments (4)

kklemon avatar kklemon commented on May 14, 2024 1

This was also my initial idea and I also made a rough implementation for this. It introduces a PackageManager base class which can be inherited to realize specific package managers. Each such implementation, for example an PipPackageManager class would take a package name as argument and then produce the corresponding install statement in its build() method. The only problem I encountered is that Composer is designed to work on base of module/classes and not their instances. This leads to the situation that you can't pass different instances of a single module (e.g. different instances of a PackageManager, each for a single pip package) to the composer. I don't know how to solve this properly at the moment except to redesign the code base to let the Composer take instances of modules.

Another approach I wanted to try is that each package manager module collects the packages to be installed in a class attribute before the composer is invoked. The composer then instantiates each module in the same way as it is done currently and each package manager would then just build a single install statement with all packages that have been registered before.

If it is not completely clear what I mean, I could provide a basic implementation in the next days.

from deepo.

ufoym avatar ufoym commented on May 14, 2024

That's a great idea.

How about parsing the input strings like pip+pandas apt+ping in

for module in args.modules:
terms = module.split('==')
m = _import(terms[0])
in_modules.append(m)
if len(terms) > 1:
versions[m] = terms[1]

then making a list of apt-modules & pip-modules and passing them into the Composer
composer = Composer(in_modules, args.cuda_ver, args.cudnn_ver, versions)

and finally generating the corresponding scripts here:

from deepo.

github-actions avatar github-actions commented on May 14, 2024

This issue is stale because it has been open for 180 days with no activity.

from deepo.

github-actions avatar github-actions commented on May 14, 2024

This issue was closed because it has been inactive for 30 days since being marked as stale.

from deepo.

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.