Skip to content

Commit

Permalink
Quote filenames [build wheel]
Browse files Browse the repository at this point in the history
  • Loading branch information
matham committed Jun 17, 2018
1 parent 04bfcff commit 2e400aa
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,12 @@ script:

chmod +x .ci/build-wheels-linux.sh;
docker run --rm -v `pwd`:/io $DOCKER_IMAGE "/io/.ci/build-wheels-linux.sh";
ls wheelhouse/;
for name in wheelhouse/*manylinux*.whl; do
new_name="${name/dev0/$wheel_name}";
cp -n $name $new_name;
if [ ! -f "$new_name" ]; then
cp -n $name $new_name;
fi;
done;
ls wheelhouse/;

Expand Down Expand Up @@ -190,10 +193,13 @@ script:
wheel_date=$(python -c "from datetime import datetime; print(datetime.utcnow().strftime('%Y%m%d'))");
git_tag=$(git rev-parse --short HEAD);
wheel_name="dev0.$wheel_date.$git_tag";
ls wheelhouse/;

for name in ../wheelhouse/*.whl; do
new_name="${name/dev0/$wheel_name}";
cp -n $name $new_name;
if [ ! -f "$new_name" ]; then
cp -n "$name" "$new_name";
fi;
done;
ls ../wheelhouse/;

Expand Down

0 comments on commit 2e400aa

Please sign in to comment.