Skip to content

Commit

Permalink
remove unnecessary handling
Browse files Browse the repository at this point in the history
  • Loading branch information
georgeliaw committed Jan 8, 2019
1 parent eb257f7 commit d9ceab1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions wheel/wheel.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,9 @@ def _bdist_wheel_impl(ctx):
package_dir = ctx.actions.declare_directory(work_dir)
package_name = package_dir.dirname.split('/')[-1]

if len(build_file_dir.split('/')) > 1:
setup_py_parent_relative_dir = '/'.join(build_file_dir.split('/')[:-1])
else:
setup_py_parent_relative_dir = build_file_dir
setup_py_dest_dir = '/'.join([
package_dir.path,
setup_py_parent_relative_dir,
'/'.join(build_file_dir.split('/')[:-1]),
ctx.attr.strip_src_prefix.strip('/')
])
backtrack_path = '/'.join(['..' for i in setup_py_dest_dir.split('/') if i])
Expand Down

0 comments on commit d9ceab1

Please sign in to comment.