Skip to content

Commit

Permalink
Support relative wheel file output path in pip_pkg.sh
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 205900664
  • Loading branch information
csuter authored and Copybara-Service committed Jul 24, 2018
1 parent 4a6cc02 commit 00ce10d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pip_pkg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,13 @@ if [[ $# -lt 1 ]] ; then
fi

# Create the destination directory, then do dirname on a non-existent file
# inside it to give us an absolute paths with tilde characters resolved to the
# destination directory. Readlink -f is a cleaner way of doing this but is not
# available on a fresh macOS install.
# inside it to give us a path with tilde characters resolved (readlink -f is
# another way of doing this but is not available on a fresh macOS install).
# Finally, use cd and pwd to get an absolute path, in case a relative one was
# given.
mkdir -p "$1"
DEST="$(dirname "${1}/does_not_exist")"
DEST=$(dirname "${1}/does_not_exist")
DEST=$(cd "$DEST" && pwd)

cd bazel-bin/pip_pkg.runfiles/tensorflow_probability
# Pass through remaining arguments (following the first argument, which
Expand Down

0 comments on commit 00ce10d

Please sign in to comment.