Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package up Perl code? #3

Closed
bjpop opened this issue May 1, 2016 · 6 comments
Closed

Package up Perl code? #3

bjpop opened this issue May 1, 2016 · 6 comments
Assignees

Comments

@bjpop
Copy link
Contributor

bjpop commented May 1, 2016

Hi Torsten,

I tried to run the Perl code, but I don't have the necessary Bio library installed on my computer.

Is there a way to package up the perl code so that it will download the necessary dependencies, preferably into a local package database? Similar to pip, or the stack tool in Haskell?

@tseemann
Copy link
Contributor

tseemann commented May 5, 2016

It kind of is possible with FatPacker but BioPerl is gigantic. Usually expect user to install it via cpan: cpan Bio::Perl . Not sure if @drpowell is bundling all the npm stuff?

@drpowell
Copy link
Contributor

drpowell commented May 5, 2016

I think instructions in a readme for the directory to run something like cpan -i Bio::Perl is enough. That's what haskell, ruby & js have so far

@bjpop
Copy link
Contributor Author

bjpop commented May 5, 2016

Actually it is a bit more than that.

For Haskell and Python at least there is infrastructure to install the code onto the system, either locally in a sandbox or globally.

On 5 May 2016, at 5:11 pm, David Powell notifications@github.com wrote:

I think instructions in a readme for the directory to run something like cpan -i Bio::Perl is enough. That's what haskell, ruby & js have so far


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub

@tseemann
Copy link
Contributor

tseemann commented May 5, 2016

@bjpop you can install to local with cpan too using local::lib similar to pip --user

@tseemann tseemann self-assigned this May 5, 2016
@bjpop
Copy link
Contributor Author

bjpop commented May 6, 2016

Will that install the dependencies as well?

Can you please show the full cpan command that will install your biotool plus its dependencies in some local place? Doesn't have to be in the $PATH.

Cheers
Bernie

On 6 May 2016, at 8:46 am, Torsten Seemann notifications@github.com wrote:

@bjpop you can install to local with cpan too using local::lib similar to pip --user


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub

@tseemann
Copy link
Contributor

I have now fixed this by creating a README.md in the perl5 folder which explains how to install BIoperl for Debian, Redhat and General Unix via CPAN.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants