[Sc-devel] Quarks dependencies handling
Till Bovermann
tboverma at techfak.uni-bielefeld.de
Mon Jul 16 12:42:28 PDT 2007
Hey Dan,
I'll test it asap... (sorry, don't have net access at home, so not on
weekends...)
regards
Till
On 14.07.2007, at 19:01, Dan Stowell wrote:
> OK - I have now committed changes to Quark.sc and Quarks.sc which
> should account for all of this. It uses the approach I described
> yesterday.
>
> Main changes:
>
> * When you run Quarks.install("blah") it automatically tries to
> install the dependencies, unless you turn this off by setting the
> "incDeps" arg to false.
>
> * Quark dependencies can now (optionally) be specified along with a
> base URL for the repository it comes from. All the old syntax still
> works, and the default is to look in the same repos. If you want to
> specify a dependency on a remote repository, change
>
> \dependencies: [("lfsaw.de" -> 1.0)],
>
> to an array like this:
>
> \dependencies: [["lfsaw.de", 1.0,
> "https://svn.hocus-pocus.de/trunk/whatever/quarks"]],
>
> (Note that Quarks:install can only handle this automatically if you
> have already *instantiated* a Quarks object that refers to that base
> URL. The main repos is always around though so that's OK.)
>
>
> Till: could you test this, please? Uninstall TUIO and TUIO-addons;
> then create the appropriate dependency info in the directory entry for
> TUIO-addons; recompile; and try installing TUIO-addons. You should be
> able to make it automatically install TUIO.
>
> Best
> Dan
>
>
> 2007/7/13, Till Bovermann <tboverma at techfak.uni-bielefeld.de>:
>> sure, but we should also take into account that there are other (non-
>> sf) quarks with cross-svn-inter-quarks-dependencies. e.g. I have a
>> local quark repository here in bielefeld containing a quark called
>> "TUIO-addons" depending on "TUIO"
>>
>> what about that?
>>
>>
>> 2c
>> Till
>>
>> On 13.07.2007, at 12:08, Dan Stowell wrote:
>>
>> > Hi -
>> >
>> > Any plans for how Quarks dependencies are supposed to be
>> handled? It
>> > doesn't look like Quarks:install takes any account of it.
>> >
>> > TUIO quark's directory entry includes the line
>> >
>> > \dependencies: [("lfsaw.de" -> 1.0)],
>> >
>> > And that info is used when listing info about the quark. But surely
>> > Quarks.install("TUIO") should automatically handle the dependency?
>> >
>> > So I'd propose that Quarks:install should also satisfy the
>> > dependencies, something like this:
>> >
>> > if(incDeps, {
>> > q.dependencies.do({ |dep|
>> > if(this.isInstalled(dep.name).not, {
>> > this.install(dep.name);
>> > });
>> > });
>> > });
>> >
>> >
>> > (incDeps being a new argument, so that people can turn off
>> > dependency-chasing if neccessary.)
>> >
>> > OK to commit something like this?
>> >
>> > Dan
>> >
>> > --
>> > http://www.mcld.co.uk
>> > _______________________________________________
>> > Sc-devel mailing list
>> > Sc-devel at create.ucsb.edu
>> > http://www.create.ucsb.edu/mailman/listinfo/sc-devel
>>
>> _______________________________________________
>> Sc-devel mailing list
>> Sc-devel at create.ucsb.edu
>> http://www.create.ucsb.edu/mailman/listinfo/sc-devel
>>
>
>
> --
> http://www.mcld.co.uk
> _______________________________________________
> Sc-devel mailing list
> Sc-devel at create.ucsb.edu
> http://www.create.ucsb.edu/mailman/listinfo/sc-devel
More information about the Sc-devel
mailing list