Search code examples
pythonazurepypiazure-web-app-servicepython-wheel

Azure Webapp wheels --find-links does not work


I have been struggling with --find-links for an entire day, and I will be very grateful if sb could help me out here.

I have been developing using python3.4 and one of the new features I added uses Azure Storage( the most recent version) and it requires cryptograph, which requires cffi, idna, etc... However, when I try to test it against Azure Webapp, the deployment failes, saying 'error : unable to find vcvarsall.bat'

With some research, I figured putting --find-links wheelhouse at the top of my requirements.txt and have wheels(cffi-1.8.2-cp34-cp34m-win32.whl (md5) and cryptography-1.5-cp34-cp34m-win32.whl (md5)) located at wheelhouse folder in the root should work. This was not helping at all, and I was running into same problems.

I tried --no-index and it gives "Could not find any downloads that satisfy the requirement cffi==1.8.2". Somebody says if I want to use --no-index, then I should have all wheels located in wheelhouse; otherwise, i will get that error.

With this, I would like to use my wheels for cffi and cryptograph and the rest download from pypi. Anyone have any clue...? HELP!


Solution

  • You are not the only one in that situation: https://github.com/Azure/azure-storage-python/issues/219

    It seems for an unknown reason that the version of pip on the WebApp machine does not detect the platform tag as "win32" (it's why it does not find your wheel).

    Several solutions: