Re: :action depend for D

Bram Moolenaar <[email protected]>
Newsgroups gmane.comp.tools.aap.devel
Message-ID <[email protected]>
Lars Ivar Igesund wrote:

> From: "Bram Moolenaar" <[email protected]>
> >
> > There is also a problem for people that don't have an internet
> > connection.  They would not get past this :assertpkg.  Adding {optional}
> > is possible, but then dependency checking doesn't work...  Is giving a
> > warning sufficient?  Otherwise, the file could be included in the
> > distribution somehow.
> 
> Well, the license allows it :) It is about 10k, but for aap's purposes it
> don't need to be that large. Maybe a reduced version could be
> included in case there is no connection and it isn't present othervise?

This would be possible, but then it can't try to install a package at
the same time.  Thus the d module would have to check if "ddepcheck" can
be found and when not: build it from the included ddpecheck.d.

An alternative is to implement the dependency checker in Python.  Then
it doesn't need to be compiled and installed first.  It will be a lot
slower though.

You would have to send me ddepcheck.d each time you make improvements.

The user could still do "aap --install ddepcheck" to obtain an updated
version.

-- 
BEDEVERE: How do you know so much about swallows?
ARTHUR:   Well you have to know these things when you're a king, you know.
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///          Creator of Vim - Vi IMproved -- http://www.Vim.org          \\\
\\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
 \\\  Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html  ///


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.