Skip to content
Snippets Groups Projects
Commit 362a6def authored by Michael Reneer's avatar Michael Reneer Committed by tensorflow-copybara
Browse files

Fix the final `cp` command to allow for relative paths.

PiperOrigin-RevId: 271170572
parent 337d0c1b
No related branches found
No related tags found
No related merge requests found
......@@ -44,7 +44,6 @@ main() {
local temp_dir="$(mktemp -d)"
trap "rm -rf ${temp_dir}" EXIT
cp -LR "tensorflow_federated" "${temp_dir}"
cp "tensorflow_federated/tools/development/setup.py" "${temp_dir}"
pushd "${temp_dir}"
# Create a virtual environment
......@@ -54,10 +53,12 @@ main() {
# Build pip package
pip install --upgrade setuptools wheel
python setup.py bdist_wheel \
python "tensorflow_federated/tools/development/setup.py" bdist_wheel \
--universal \
--project_name "${project_name}"
cp "dist/"* "${output_dir}"
popd
cp "${temp_dir}/dist/"* "${output_dir}"
}
main "$@"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment