Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to manage the installation of modules used by an open source Perl project?

I work on a small open-source Perl project with Catalyst, Open Street Map and dozens of modules. I try to use as many modules found on the CPAN as I can because my aim is not to reinvent the wheel.

All this stuff has been installed through cpanm and local::lib. Each time I need something new I install a couple of modules and dependencies (it's so simple with cpanm). Now, I'm asking myself how people who will clone my project could install the dozens of module without an horrible headache-of-death?

What are the best practices for this? I am supposed to list all required modules into Makefile.pl? I feel now anxious about this because I worked hard on this project, try to follow a lot of good practices, but feel I commit a mistake on this particular point (for not think about this).

I need some advice about this problem because everything seems so magic that I don't believe that it's enough to list the modules names in the Makefile with the 'require' keyword. I hope too it's not necessary to include all dependencies in the project and commit all this huge package for later uses.

like image 994
smonff Avatar asked Mar 21 '13 21:03

smonff


People also ask

Which is the open source repository for Perl modules?

The Comprehensive Perl Archive Network (CPAN) is a repository of over 250,000 software modules and accompanying documentation for 39,000 distributions, written in the Perl programming language by over 12,000 contributors.


1 Answers

If you use Catalyst, you can add the modules you need as dependencies in the Makefile.PL created for your Catalyst application.

like image 107
Julien Avatar answered Oct 02 '22 21:10

Julien