Azure-docs: How to set --build-native-deps in the extension?

Created on 22 Nov 2018  Â·  13Comments  Â·  Source: MicrosoftDocs/azure-docs

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?


Document details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri1 assigned-to-author azure-functionsvc product-question triaged

Most helpful comment

There's no need to set --build-native-deps anymore since we're building Python apps on the remote by default now.

All 13 comments

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 with the name of your function app in Azure. This command builds the required binaries locally before publishing to Azure.

@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 --build-native-deps

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JamesDLD picture JamesDLD  Â·  3Comments

varma31 picture varma31  Â·  3Comments

spottedmahn picture spottedmahn  Â·  3Comments

paulmarshall picture paulmarshall  Â·  3Comments

AronT-TLV picture AronT-TLV  Â·  3Comments