natcl / max_package_downloader

A utility to download Packages from within Max
41 stars 7 forks source link

Dependencies #26

Closed delucis closed 8 years ago

delucis commented 9 years ago

Hi Nathanaël,

While using MPD — including some very successful experiences with a class of Max beginners recently — I’ve been wondering about creating a mechanism that would allow MPD to handle package dependencies (much like npm does).

I imagine at its simplest an optional addition to the package-info.json with an array of package names:

"dependencies": [ "ejies", "Max ToolBox" ]

Given Max’s package system is global, declaring version ranges (like npm does) is not a possibility.

MPD could then run checks and install dependencies if not already installed or out-of-date.

More powerful, but potentially more involved in terms of implementation, would be to permit inline package declarations (using the same structure as max_packages_master.json). Perhaps:

"dependencies": {
    "ejies": "master",
    "custom-package": {
        "link": "https://raw.githubusercontent.com/gh-user/custom-package/master/package-info.json",
        "relative_path": "None"
    }
}

Any thoughts? If you were enthusiastic, I’d be very happy to spend some time implementing this in MPD.

Thanks! Chris.

natcl commented 8 years ago

Sorry for the late answer, as you might have seen today, Cycling has released an official package Manager so this one is not very useful anymore... Thanks for using it while it was there though !