Skip to content

Commit

Permalink
[PIP] Make sure pip list displays correct xrootd version.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmichal committed Jan 18, 2021
1 parent 69d5fb5 commit a97eb7a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion packaging/wheel/install.sh
Expand Up @@ -45,7 +45,17 @@ rm -r xrootdbuild

# convert the egg-info into a proper dist-info
egginfo_path=$(ls $1/xrootd-*.egg-info)
distinfo_path="${egginfo_path%.*}.dist-info"
core="${egginfo_path%.*}"
core="${egginfo_path#$1/}"
sufix="${core#xrootd-*.*.*_-}"
core="${core%_-*}"
if [[ "$core" == "$sufix" ]]
then
distinfo_path="${egginfo_path%.*}.dist-info"
else
distinfo_path="$1/$core-$sufix"
fi
echo $distinfo_path >> /tmp/out.txt
mkdir $distinfo_path
mv $egginfo_path $distinfo_path/METADATA
echo -e "Wheel-Version: 1.0\nGenerator: bdist_wheel (0.35.1)\nRoot-Is-Purelib: true\nTag: py2-none-any\nTag: py3-none-any" > $distinfo_path/WHEEL
Expand Down

0 comments on commit a97eb7a

Please sign in to comment.