I tried to deploy with dependencies that apparently need to be built and the error message says I need Docker and to specify the '--build-native-deps' flag. How do I do the latter?
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
Thanks for the feedback! We are currently investigating and will update you shortly.
@MicahMcKittrick-MSFT please assign this issue to @asavaritayal.
@brettcannon the official docs are not up yet but you can find more information here - https://github.com/Azure/azure-functions-python-worker/wiki/Developer-Guide#python-version-and-package-management
To build the required binaries locally, install Docker and run the following command to publish using the Azure Functions Core Tools:
func azure functionapp <app name> --build-native-deps
Replace
@asavaritayal yep, I figured that out, but my report was on the Functions extension docs since there doesn't seem to be any way to pass arguments for that step.
@brettcannon ah got it, thanks for clarifying. I'll follow up on this.
@brettcannon you can edit tasks.json directly
The right command to deploy for Python is:
func azure functionapp publish
Right now the extension tells you it can't directly deploy Python Functions Project, I find it informative enough until it is implemented.
Any update on this @asavaritayal?
GitHub user asavaritayal has been removed from the MicrosoftDocs organization, so they were automatically removed as an assignee.
@fiveisprime is this functionality that is planned for the Functions extension, or is there somewhere @brettcannon can request it?
There's no need to set --build-native-deps anymore since we're building Python apps on the remote by default now.
@brettcannon we just updated the Python reference article to clarify the build options available by using Core Tools (func azure functionapp publish). I am going to close this issue, since it isn't a documentation issue. Please reopen if you disagree. #please-close
Most helpful comment
There's no need to set
--build-native-depsanymore since we're building Python apps on the remote by default now.