Can't install ansible==3.4.0 using wheel file through pip3

The query is regarding installing ansible through .whl file using pip3.

I got the wheel file “ansible-3.4.0-py2.py3-none-any.whl” by building the source file “ansible-3.4.0.tar.gz”. When I am using .whl file to install ansible, /usr/local/bin/ansible* binaries are not getting the executable permissions.

Note: /tmp mountpoint is set to nodev, nosuid, noexec.

But I am able to successfully install ansible using source code (i.e using .tar.gz file).

When I am removing nodev, nosuid, noexec permissions from /tmp mountpoint, I am able to install ansible using wheel file also.

But due to CIS compliance, I need to set /tmp mountpoint permission to set nodev, nosuid, noexec.

So, please let me know why am I able to install using source file but not using the wheel file?
is there any workaround that I can use to install using the wheel file with ansible binaries getting proper permissions.

Note: PYPI repositories has only source file for ansible==3.4.0

You don’t say what install command you’re running, but have you
tried exporting TMPDIR as some alternate location where executable
bits are allowed on your system so that the installer doesn’t
default to unpacking wheels in /tmp?

I am using pip for installing ansible using the following command.

  1. To install using the wheel file.

sudo pip3 install ansible-3.4.0-py2.py3-none-any.whl

  1. To install using the source file

sudo pip3 install --no-index --find-links . ansible-3.4.0.tar.gz