Skip to content

Commit

Permalink
ensure clean package_dir state
Browse files Browse the repository at this point in the history
  • Loading branch information
georgeliaw committed Jun 13, 2018
1 parent 1aebc36 commit 51d5bec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wheel/wheel.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@ def _bdist_wheel_impl(ctx):
setup_py = _generate_setup_py(ctx)
manifest = _generate_manifest(ctx, package_name)

command = "mkdir -p {package_dir} " \
command = "rm -rf {package_dir}" \
+ "&& mkdir -p {package_dir} " \
+ "&& rsync -R {source_list} {package_dir} " \
+ "&& cp {setup_py_path} {setup_py_dest_dir} " \
+ "&& cp {manifest_path} {setup_py_dest_dir} " \
+ "&& chmod 0777 {setup_py_dest_dir}/setup.py {setup_py_dest_dir}/MANIFEST.in " \
+ "&& cd {setup_py_dest_dir} " \
+ "&& python setup.py bdist_wheel --bdist-dir {bdist_dir} --dist-dir {dist_dir} " \
+ "&& cd {backtrack_path} " \
+ "&& rm -rf {setup_py_dest_dir}"
+ "&& cd {backtrack_path} "

ctx.actions.run_shell(
mnemonic="BuildWheel",
Expand Down

0 comments on commit 51d5bec

Please sign in to comment.