title: Unable to find module after trying to install custom wheel using POST_BUILD_COMMAND in Zip Deploy task for a Python Function App on Azure
body: <p><strong>Intro</strong></p>
  <p>My scenario is that I want to re-use shared code from a repo in Azure DevOps across multiple projects. I've built a pipeline that produces a <code>wheel</code> as an artifact so I can download it to other pipelines.</p>
  <p><strong>The situation</strong></p>
  <p>Currently I have succesfully setup a pipeline that deploys the Python Function App. The app is running fine and stable. I use <code>SCM_DO_BUILD_DURING_DEPLOYMENT=1</code> and  <code>ENABLE_ORYX_BUILD=1</code> to achieve this.</p>
  <p>I am now in the position that I want to use the artifact (Python/pip wheel) as mentioned in the intro.
  I've added a step in the pipeline and I am able to download the artifact successfully. The next step is ensuring that the artifact is installed during my <code>Python Function App</code>  <code>Zip Deployment</code>. And that is where I am stuck at.</p>
  <p>The structure of my zip looks like:</p>
  <pre><code>__app__
   | - MyFirstFunction
   | | - __init__.py
   | | - function.json
   | | - example.py
   | - MySecondFunction
   | | - __init__.py
   | | - function.json
   | - wheels
   | | - my_wheel-20201014.10-py3-none-any.whl                            &lt;&lt;&lt; this is my wheel
   | - host.json
   | - requirements.txt 
  </code></pre>
  <p><strong>The problem</strong></p>
  <p>I've tried to add commands like <code>POST_BUILD_COMMAND</code> and <code>PRE_BUILD_COMMAND</code> to get pip install the wheel but it seems the package is not found (by Oryx/Kudu) when I use the command:
  <code>-POST_BUILD_COMMAND &quot;python -m pip install --find-links=home/site/wwwroot/wheels my_wheel&quot;</code>
  Azure DevOps does not throw any exception or error message. Just when I execute the function I get an exception saying:
  <code>Failure Exception: ModuleNotFoundError: No module named 'my_wheel'. </code></p>
  <p>My question is how can I change my solution to make sure the build is able to install my_wheel correctly.</p>
  <p>Sidenote: Unfortunately I am not able to use the Artifacts feed from Azure DevOps to publish my_wheel and let pip consume that feed.</p>