Comments (4)
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.
That's a great idea.
How about parsing the input strings like pip+pandas
apt+ping
in
Lines 29 to 34 in e384038
then making a list of apt-modules & pip-modules and passing them into the
Composer
Line 35 in e384038
and finally generating the corresponding scripts here:
deepo/generator/core/composer.py
Line 61 in e384038
from deepo.
This issue is stale because it has been open for 180 days with no activity.
from deepo.
This issue was closed because it has been inactive for 30 days since being marked as stale.
from deepo.
Related Issues (20)
- Add support to ppc64le HOT 4
- cuda 10.2 image HOT 1
- theano gpu not working HOT 1
- PaddlePaddle
- How can I use YOLOv3 on this image? HOT 1
- ufoym/deepo:pytorch-py36-cu101 cuda.max_memory_allocated crash HOT 3
- deepo generate does not find CUDA
- VS code support
- TensorRT support? HOT 2
- Custom CPU version | MacOs HOT 1
- Python 3.8 Support HOT 2
- Is it possible to switch from a cpu to gpu version? HOT 1
- How to upgrade cuda for the image? HOT 1
- Does 'darknet version' support opencv for darknet video detection? HOT 2
- tensorflow 2.5.0 CUDA compatibility HOT 6
- caffe on RTX3090 run fail HOT 2
- Change `jupyter notebook` README example to `jupyter lab`? HOT 1
- How to use the platform to do parallel computing? HOT 2
- Problem with cudnn HOT 1
- import torch ModuleNotFoundError: No module named 'torch'
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 deepo.