Skip to content

Commit

Permalink
don't error when a wheel is pure
Browse files Browse the repository at this point in the history
  • Loading branch information
mckaymatt committed May 12, 2017
1 parent 7a8bc5e commit 1c37559
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion auditwheel/wheeltools.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@ def add_platforms(wheel_ctx, platforms, remove_platforms=()):
info_fname = pjoin(_dist_info_dir(wheel_ctx.path), 'WHEEL')
info = read_pkg_info(info_fname)
if info['Root-Is-Purelib'] == 'true':
raise WheelToolsError('Cannot add platforms to pure wheel')
print('No need to add platforms to pure wheel - Skipping {}'.format(wheel_ctx.in_wheel))
return

# Check what tags we have
if wheel_ctx.out_wheel is not None:
Expand Down

0 comments on commit 1c37559

Please sign in to comment.