26 Apr 2022 22:28:41 UTC
- Distribution: App-cpm
- Module version: 0.997011
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (29)
- Testers (788 / 0 / 0)
- KwaliteeBus factor: 1
- 100.00% Coverage
- License: perl_5
- Perl: v5.8.1
- Download (41.17KB)
- MetaCPAN Explorer
- Subscribe to distribution
- Reverse dependencies
- CPAN Testers List
- Dependency graph
- This version
- Latest version++ed by:25 non-PAUSE users
App::cpm - a fast CPAN module installer
> cpm install Module
cpm is a fast CPAN module installer, which uses Menlo in parallel.
Moreover cpm keeps the each builds of distributions in your home directory, and reuses them later. That is, if prebuilts are available, cpm never builds distributions again, just copies the prebuilts into an appropriate directory. This is (of course!) inspired by Carmel.
For tutorial, check out App::cpm::Tutorial.
Why do we need a new CPAN client?
I used cpanm a lot, and it's totally awesome.
But if your Perl project has hundreds of CPAN module dependencies, then it takes quite a lot of time to install them.
So my motivation is simple: I want to install CPAN modules as fast as possible.
Just an example:
> time cpanm -nq -Lextlib Plack real 0m47.705s > time cpm install Plack real 0m16.629s
This shows cpm is 3x faster than cpanm.
eserte reported that the parallel feature of cpm yielded a new type of failure for CPAN module installation. That is, if ModuleA implicitly requires ModuleB in configure/build phase, and ModuleB is about to be installed, then it may happen that the installation of ModuleA fails.
I can say that it hardly happens especially if you use a new Perl. Moreover, for a workaround, cpm automatically retries the installation if it fails.
I hope that if almost all CPAN modules are distributed with static install enabled, then cpm will parallelize the installation for these CPAN modules safely and we can eliminate this new type of failure completely.
If you all find cpm useful, then cpm should be merged into cpanm 2.0. How exciting!
To merge cpm into cpanm, there are several TODOs:
(DONE) Win32? - support platforms that do not have fork(2) system call
(DONE) Logging? - the parallel feature makes log really messy
Your feedback is highly appreciated.
Copyright 2015 Shoichi Kaji <email@example.com>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
|s||Focus search bar|
|?||Bring up this help dialog|
|g p||Go to pull requests|
|g i||go to github issues (only if github is preferred repository)|
|g a||Go to author|
|g c||Go to changes|
|g i||Go to issues|
|g d||Go to dist|
|g r||Go to repository/SCM|
|g s||Go to source|
|g b||Go to file browse|