Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Catalyst: Users

catalyst.pl-generated installer installs MyApp/root in same dir as MyApp/lib/*?

 

 

Catalyst users RSS feed   Index | Next | Previous | View Threaded


rmb32 at cornell

Jun 8, 2009, 5:49 PM

Post #1 of 6 (571 views)
Permalink
catalyst.pl-generated installer installs MyApp/root in same dir as MyApp/lib/*?

The Module::Install code generated by catalyst.pl puts MyApp/root into
blib/lib/MyApp/root, right alongside all the things from MyApp/lib. Is
this actually the Right Thing to do? Seems fishy to put the templates
and images and such in the same place as the perl modules.

In the pod for File::ShareDir (which I perused after reading on dhoss's
blog about where he's thinking of putting the helper templates), I read
that static data for modules are supposed to go in the module's 'auto'
directory. Link:
http://search.cpan.org/~adamk/File-ShareDir-1.00/lib/File/ShareDir.pm

So, if I understand rightly, shouldn't the MyApp/root be going into
blib/auto/MyApp/root instead of blib/MyApp/root ?

Rob


_______________________________________________
List: Catalyst[at]lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst[at]lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


bobtfish at bobtfish

Jun 9, 2009, 10:57 AM

Post #2 of 6 (519 views)
Permalink
Re: catalyst.pl-generated installer installs MyApp/root in same dir as MyApp/lib/*? [In reply to]

Robert Buels wrote:
> So, if I understand rightly, shouldn't the MyApp/root be going into
> blib/auto/MyApp/root instead of blib/MyApp/root ?

The simple answer you're looking for is 'hysterical raisins'.

I'm hoping that we'll move to using File::ShareDir for template for
installed applications as well as the (Catalyst::Helper) helper files at
some point in the future (Reaction is doing this already, I see no
reason not to pull it back into core at some point).

However most people don't actually install their applications (in a make
install type way), and so this isn't so much of an issue for them...

Cheers
t0m

_______________________________________________
List: Catalyst[at]lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst[at]lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


devin.austin at gmail

Jun 9, 2009, 11:04 AM

Post #3 of 6 (519 views)
Permalink
Re: catalyst.pl-generated installer installs MyApp/root in same dir as MyApp/lib/*? [In reply to]

On Tue, Jun 9, 2009 at 11:57 AM, Tomas Doran <bobtfish[at]bobtfish.net> wrote:

> Robert Buels wrote:
>
>> So, if I understand rightly, shouldn't the MyApp/root be going into
>> blib/auto/MyApp/root instead of blib/MyApp/root ?
>>
>
> The simple answer you're looking for is 'hysterical raisins'.
>
> I'm hoping that we'll move to using File::ShareDir for template for
> installed applications as well as the (Catalyst::Helper) helper files at
> some point in the future (Reaction is doing this already, I see no reason
> not to pull it back into core at some point).
>
> However most people don't actually install their applications (in a make
> install type way), and so this isn't so much of an issue for them...
>
> Cheers
> t0m
>
>
> _______________________________________________
> List: Catalyst[at]lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/catalyst[at]lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>

We have a bit of code in the Helper section that looks for the stuff in the
distribution, as t0m has said, but it's untested, and not really implemented
yet tbh. People *don't* really install their applications, although they
should, because a reasonable developer keeps their Makefile.PL up to date
and thus keeps application dependencies up to date.


-dhoss

--
Devin Austin
http://www.codedright.net
http://www.dreamhost.com/r.cgi?326568/hosting.html - Host with DreamHost!


hdp.perl.catalyst.users at weftsoar

Jun 9, 2009, 11:11 AM

Post #4 of 6 (519 views)
Permalink
Re: catalyst.pl-generated installer installs MyApp/root in same dir as MyApp/lib/*? [In reply to]

On Tue, Jun 09, 2009 at 06:57:19PM +0100, Tomas Doran wrote:
> However most people don't actually install their applications (in a make
> install type way), and so this isn't so much of an issue for them...

This is so strange to me; I *always* install my applications with make install,
or make debian packages of them, or...

hdp.

_______________________________________________
List: Catalyst[at]lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst[at]lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


rmb32 at cornell

Jun 9, 2009, 11:59 AM

Post #5 of 6 (520 views)
Permalink
Re: catalyst.pl-generated installer installs MyApp/root in same dir as MyApp/lib/*? [In reply to]

Hans Dieter Pearcey wrote:
> This is so strange to me; I *always* install my applications with make install,
> or make debian packages of them, or...

Ditto. For me, the most important aspect of actually doing an
installation is having dependencies get pulled in automatically. For
example, if you're doing automatic continuous integration testing, or
automatically building local::libs or debian packages for deployment on
lots of machines, you've got to have some kind of automation for
dependencies.

Rob


_______________________________________________
List: Catalyst[at]lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst[at]lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


bobtfish at bobtfish

Jun 10, 2009, 3:17 PM

Post #6 of 6 (486 views)
Permalink
Re: catalyst.pl-generated installer installs MyApp/root in same dir as MyApp/lib/*? [In reply to]

On 9 Jun 2009, at 19:59, Robert Buels wrote:

> Hans Dieter Pearcey wrote:
>> This is so strange to me; I *always* install my applications with
>> make install,
>> or make debian packages of them, or...

Ok, so, I'm obviously full of crap. (This should not be news to
anyone who reads the list)

A lot of people install their applications.

A lot of people find the fact that their config gets installed into
MyApp/myapp.yml, and your templates go into MyApp/root odious and
offensive.

You're preaching to the converted, I say we move them into a
sharedir, which is at least somewhat more sane, or we could even
adopt the crazy schemes proposed by john (http://
jjnapiorkowski.vox.com/library/post/rfc-non-code-data-directories-and-
standards-for-catalyst.html).

We're going to merge the first stage of the -Devel stuff shortly, at
which point branches to change the application structure (s/root/
share/) etc, welcome.

Please to be commenting on John's blog and branching Runtime 5.80 in
the mean time + stealing the sharedir handling out of Reaction, and
getting Alias to accept patches to do the 'am I in a checked out
dist' special move on File::ShareDir?

Well volunteered.

Cheers
t0m


_______________________________________________
List: Catalyst[at]lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst[at]lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/

Catalyst users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.