Skip to content

Commit 8f09138

Browse files
authored
docs: add small note on dependency maangement (#62)
1 parent 48af963 commit 8f09138

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,12 @@ To deploy your function please refer to our official documentation.
9494

9595
No, this framework does not affect deployment or performance.
9696

97+
**How can I use my packaged dependencies?**
98+
99+
When deploying Python functions, your dependencies must be bundled in a `package` folder at the root of your project. For local testing, you can set `PYTHONPATH=$(pwd)/package` to make your dependencies available. This can be useful to avoid packaging your dependencies in multiple locations.
100+
101+
Please note that this does not work for native dependencies as the Scaleway Python runtime is different from your local machine.
102+
97103
**Why are my logs not showing up when using the print function?**
98104

99105
By default, stdout is buffered in Python, so calling `print` without `flush=True` can lead to missing logs when running locally.

0 commit comments

Comments
 (0)