Skip to content
Permalink
077d6ef2a4
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 51 lines (33 sloc) 878 Bytes
#! /usr/bin/perl
sub USAGE {
<<"__EOF__";
usage: $0 package version
eg: $0 pyparsing 2.1.10
This only works for pypi ( https://pypi.python.org/pypi ) packages
__EOF__
}
@ARGV==2 or die USAGE;
my ($package,$version)=@ARGV;
$package=lc $package;
my $beefile="python-$package.be0";
my $c=substr($package,0,1);
-e $beefile and die "$beefile: exists\n";
open my $bee,'>',$beefile or die "$beefile: $!\n";
print $bee <<"__EOF__";
#!/bin/env beesh
# BEE_VERSION python-$package-$version-0
# https://pypi.python.org/pypi/$package
SRCURL[0]="https://files.pythonhosted.org/packages/source/$c/$package/$package-\${PKGVERSION}.tar.gz"
BEE_CONFIGURE=none
build_in_sourcedir
B=\${S}
mee_build() {
python setup.py build
}
mee_install() {
python setup.py install --root=\${D}
}
__EOF__
close $bee;
system 'chmod','+x',$beefile and exit 1;
warn "created $beefile\n";