This would work like Python's requirements.txt or Ruby's Gemfile or Node's packages.json and allows a patch author to specify exactly which externals their patch depends on.
See also #84.
The patch author should do three things:
- Create a
pd-dependencies.txt to go with their patch.
- In their patch instantiate
[declare -path pd-dependencies/zexy] for example.
- Instantiate a
[deken-dependencies] object in their patch.
(maybe 2 & 3 could be combined)
I suggest a format as follows for pd-dependencies.txt:
# Dependencies for mypatch.pd
freeverb~-v0-0extended
zexy-v0-0extended
http://puredata.info/Members/zmoelnig/software/cyclone/0-0extended/cyclone-v0-0extended-(Darwin-i386-32)(Darwin-PowerPC-32)(Darwin-x86_64-32)-externals.tar.gz
Note in this example the patch author has specified the exact URL for the 'cyclone' externals set.
The end user can now:
- Send the message "install" to the
[deken-dependencies] object.
- This will look for and open
pd-dependencies.txt; and
- Create a new folder next to the patch called
pd-dependencies; and
- Download & unpack each listed deken package into the
pd-dependencies folder.
Suggest we start with the simplest possible iteration that works and don't try to solve every problem in an automated way.
@millerpuckette @umlaeute
This would work like Python's
requirements.txtor Ruby'sGemfileor Node'spackages.jsonand allows a patch author to specify exactly which externals their patch depends on.See also #84.
The patch author should do three things:
pd-dependencies.txtto go with their patch.[declare -path pd-dependencies/zexy]for example.[deken-dependencies]object in their patch.(maybe 2 & 3 could be combined)
I suggest a format as follows for
pd-dependencies.txt:Note in this example the patch author has specified the exact URL for the 'cyclone' externals set.
The end user can now:
[deken-dependencies]object.pd-dependencies.txt; andpd-dependencies; andpd-dependenciesfolder.Suggest we start with the simplest possible iteration that works and don't try to solve every problem in an automated way.
@millerpuckette @umlaeute