Source
xxxxxxxxxx
open(CONF,$build_cfg) or die("unable to open build.conf");
foreach (<CONF>) {
if($_ =~ /casatasks/ && $pip_casatasks eq "") { print("casatasks from build.conf: $_"); chomp($_); $pip_casatasks = $_; }
}
}
if ($pip_casatasks eq ""){ $pip_casatasks = "casatasks";}
print("Installing casatasks\n");
system "pip3 install $pip_casatasks";
#print("Getting the latest tag\n");
#$version=`python $scriptdir/tagger/lasttag.py -s $scriptdir/ALMAtasks -b $branch`;
#print("Version: $version\n");
print("Checking for casatools\n");
$hasCasatools = `python3 -m casatools --grpc-protopy`;
print("Casatools status: $hasCasatools\n");
#$ENV{CASA_GIT_TAG}=$version;
#print("Creating wheel\n");
#system("export PATH=/usr/lib64/ccache:/opt/python/cp36-cp36m/bin:/opt/rh/devtoolset-4/root/usr/bin:/opt/rh/devtoolset-8/root/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin && cd $scriptdir/ALMAtasks && python3 setup.py bdist_wheel");
#print("Audit wheel\n");
#system("export PATH=/usr/lib64/ccache:/opt/python/cp36-cp36m/bin:/opt/rh/devtoolset-4/root/usr/bin:/opt/rh/devtoolset-8/root/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin && cd $scriptdir/ALMAtasks/dist/ && auditwheel repair *.whl");
#
#print("Copying wheel to /wheeldirectory");
print("Creating wheel\n");
system("export PATH=/usr/lib64/ccache:/opt/python/cp36-cp36m/bin:/opt/rh/devtoolset-4/root/usr/bin:/opt/rh/devtoolset-8/root/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin && cd $scriptdir/ALMAtasks && python3 setup.py bdist_wheel");
print("Audit wheel\n");
system("export PATH=/usr/lib64/ccache:/opt/python/cp36-cp36m/bin:/opt/rh/devtoolset-4/root/usr/bin:/opt/rh/devtoolset-8/root/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin && cd $scriptdir/ALMAtasks/dist/ && auditwheel repair *.whl");