GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still and

Unverified Commit 45a90444 authored by boklm's avatar boklm
Browse files

Add a setup script

A script which should have been added by commit ff092f6c.
parent 79d10ad8
#!/usr/bin/perl -w
use strict;
use FindBin;
use IO::CaptureOutput qw(qxx);
my $virtenv = "$FindBin::Bin/virtualenv";
my $pip = "$virtenv/bin/pip";
sub run {
system(@_) == 0 || die "Error running " . join(' ', @_);
sub pip_install {
my ($pkg) = @_;
my ($output) = qxx($pip, 'show', $pkg);
run($pip, 'install', $pkg) unless $output;
run('virtualenv', $virtenv) unless -d $virtenv;
for my $pkg (qw(selenium mozmill)) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment