On Wed, Aug 20, 2014 at 8:38 AM, RAPPAZ Francois <francois.rap...@unifr.ch>
wrote:

> I‘m trying to have the right zip from the start, but I’m struggling with
> the modules that described my tables: they are located in a Dbc folder,
> below the working directory instead of in my site/lib perl tree.
>
>
>
> I tried to include these with
>
>
>
> pp -v 3 -B -cd .\ppcache -I .\Dbc\Schema -I .\Dbc\Schema\Result  -M
> Dbc::Schema -M Dbc::Schema::Result  …
>

If your script does

use Dbc::Schema;

and that works (when running it from your working directory), then
Module::ScanDeps will pick it up
and it will be packed (when packing from your working directory). This
assumes that your @INC includes
"." (check with "perl -V"). In any case, check the output of "scandeps.pl
-V -B your_script.pl".
In any case, the options

-I .\Dbc\Schema -I .\Dbc\Schema\Result

don't make sense: the pp option -I works like the same option for perl
itself: it adds to @INC,
Hence to locate module Dbc::Schema below some_dir (i.e. the file
some_dir/Dbc/Schema.pm),
you should add "-I some-dir". But if you do all stuff in your working
directory, some_dir is "." and
that is already implicity in @INC.

If your script does NOT

use Dbc::Schema;

to load module Dbc::Schema, or if the loading depends on compile or runtime
manipulation of @INC
(either explicitly or thru "use lib ..." or similar), tell me what you did.

Cheers, Roderich

Reply via email to