Skip to content

Commit

Permalink
create only toolfile per py2 package for pip packages insteaded in pi…
Browse files Browse the repository at this point in the history
…ppkgs
  • Loading branch information
smuzaffar committed Feb 17, 2017
1 parent ea424be commit 5c13cf8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions py2-pippkgs-toolfile.spec
Expand Up @@ -18,6 +18,14 @@ cat << \EOF_TOOLFILE >%{i}/etc/scram.d/py2-pippkgs.xml
</tool>
EOF_TOOLFILE

for pkg in $(grep '^[%]define *builddirectpkgreqs *external/' %{cmsroot}/SPECS/external/py2-pippkgs/$PY2_PIPPKGS_VERSION/spec | sed 's|.* builddirectpkgreqs *||' | tr ' ' '\n' | grep '/py2-') ; do
pk_name=$(echo $pkg | cut -d/ -f2)
pk_ver=$(echo $pkg | cut -d/ -f3)
echo "<tool name=\"$pk_name\" version=\"$pk_ver\">" > %{i}/etc/scram.d/$pk_name.xml
echo " <use name=\"py2-pippkgs\"/>" >> %{i}/etc/scram.d/$pk_name.xml
echo "</tool>" >> %{i}/etc/scram.d/$pk_name.xml
done

export PYTHON_LIB_SITE_PACKAGES

## IMPORT scram-tools-post

0 comments on commit 5c13cf8

Please sign in to comment.