Skip to content

Commit 6980c92

Browse files
committed
Clarification based on Anit's comments
1 parent 1cd52cb commit 6980c92

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

articles/azure-functions/functions-reference-python.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -438,19 +438,19 @@ Project files and dependencies are deployed from your local computer to Azure. R
438438

439439
### Custom dependencies
440440

441-
If your project has native OS dependencies or uses packages not publicly available, you must build your Python project locally instead of in Azure. Before publishing, run the following command to install the dependencies locally to the \_\_app\_\_/.python_packages folder:
441+
If your project uses packages not publicly available to our tools, you can make them available to your app by putting them in the \_\_app\_\_/.python_packages directory. Before publishing, run the following command to install the dependencies locally:
442442

443443
```command
444-
pip install --target="/.python_packages/lib/python3.6/site-packages" -r requirements.txt
444+
pip install --target="<PROJECT_DIR>/.python_packages/lib/site-packages" -r requirements.txt
445445
```
446446

447-
When using custom dependencies, you should use `--build-native-deps` instead of `--build local`. When you specify `--build-native-deps`, Core Tools uses docker to run the [mcr.microsoft.com/azure-functions/python](https://hub.docker.com/r/microsoft/azure-functions/) image as a container on your local machine. Using this environment, it builds and installs the required modules from source distribution, before packaging them up for final deployment to Azure.
447+
When using custom dependencies, you should use the `--no-build` publishing option, since you have already installed the dependencies.
448448

449449
```command
450-
func azure functionapp publish <APP_NAME> --build-native-deps
450+
func azure functionapp publish <APP_NAME> --no-build
451451
```
452452

453-
You must [install Docker](https://docs.docker.com/install/) on your local machine when using `--build-native-deps`. Remember to replace `<APP_NAME>` with the name of your function app in Azure.
453+
Remember to replace `<APP_NAME>` with the name of your function app in Azure.
454454

455455
## Unit Testing
456456

0 commit comments

Comments
 (0)