orkunkaraduman / perl5-virtualenv Goto Github PK
View Code? Open in Web Editor NEWPerl virtual environment
Home Page: https://metacpan.org/release/App-Virtualenv
License: GNU General Public License v3.0
Perl virtual environment
Home Page: https://metacpan.org/release/App-Virtualenv
License: GNU General Public License v3.0
I've been using App::Virtualenv for several years now and it works really nice for me. It's got one rough edge though that trips me up consistently. There's a single line that isn't compatible with the shell I'm using (mksh). I don't create new environments very often but I always forget I have to patch that one line. Once patched I haven't noticed any other problems.
The incompatible line is this one:
SOURCE=${BASH_SOURCE:-$0}
I've struggled to come up with a portable replacement. The best I've come up with so far is this little atrocity:
SOURCE="`lsof -p $$ -Fn | grep '^n' | cut -b2- | while read f ; do test -f $f && echo $f ; done | tail -1`"
Anyways, thanks for providing a great tool!
Edit: Updated the replacement for FreeBSD compatibility.
Tests fail with perl >= 5.24:
# Failed test 'use App::Virtualenv;'
# at t/App-Virtualenv.t line 7.
# Tried to use 'App::Virtualenv'.
# Error: Experimental keys on scalar is now forbidden at /home/cpansand/.cpan/build/2017030315/App-Virtualenv-2.00-0/blib/lib/App/Virtualenv.pm line 353.
# Compilation failed in require at t/App-Virtualenv.t line 7.
# BEGIN failed--compilation aborted at t/App-Virtualenv.t line 7.
App::Virtualenv::Utils is deprecated
App::Virtualenv::Module is deprecated
App::Virtualenv::Piv is deprecated
# Looks like you failed 1 test of 4.
t/App-Virtualenv.t ..
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/4 subtests
(Maybe, if this is fixed, the module could run again for perl < 5.14)
Tried virtualenv today and get following warnings:
# perl -MApp::Virtualenv -erun -- venv
... a lot noise :-)
# venv/bin/perl
given is deprecated at /usr/local/share/perl/5.38.2/App/Virtualenv.pm line 320.
when is deprecated at /usr/local/share/perl/5.38.2/App/Virtualenv.pm line 322.
when is deprecated at /usr/local/share/perl/5.38.2/App/Virtualenv.pm line 332.
given is deprecated at /usr/local/share/perl/5.38.2/App/Virtualenv.pm line 383.
when is deprecated at /usr/local/share/perl/5.38.2/App/Virtualenv.pm line 385.
when is deprecated at /usr/local/share/perl/5.38.2/App/Virtualenv.pm line 393.
when is deprecated at /usr/local/share/perl/5.38.2/App/Virtualenv.pm line 398.
when is deprecated at /usr/local/share/perl/5.38.2/App/Virtualenv.pm line 402.
when is deprecated at /usr/local/share/perl/5.38.2/App/Virtualenv.pm line 406.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.