-
Couldn't load subscription status.
- Fork 10.4k
[ADD] odoo_sh: Mention Python dependency behavior in FAQ #1329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -30,3 +30,26 @@ We advise that: | |||||||||||
| `idempotent <https://stackoverflow.com/a/1077421/3332416>`_: they must not | ||||||||||||
| cause side-effects if they are started more often than expected. | ||||||||||||
|
|
||||||||||||
| Why are the installed Python libraries different from Odoo's own requirements.txt? | ||||||||||||
| ---------------------------------------------------------------------------------- | ||||||||||||
|
|
||||||||||||
| On Odoo.sh, Odoo uses the Python libraries available in the Linux distribution | ||||||||||||
| to fulfill its dependencies. Odoo is compatible with the packages in Debian | ||||||||||||
| stable and Ubuntu LTS releases. The `requirements.txt <https://github.com/odoo/odoo/blob/master/requirements.txt>`_ | ||||||||||||
| included with Odoo is intended for use on different distributions where the | ||||||||||||
| same library versions might not be available. As a result, Odoo.sh does not use | ||||||||||||
| Odoo's own requirements.txt file and there might be occasional differences | ||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||
| between them. | ||||||||||||
|
|
||||||||||||
| For example, reportlab 3.5.34 is the version available on Ubuntu 20.04 as a | ||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Probably best with a custom "example" admonition for better readability. (note that a new "example" admonition should be added soon)
Suggested change
|
||||||||||||
| distribution package. That distribution uses Python 3.8, in which case | ||||||||||||
| requirements.txt in `Odoo 14.0 <https://github.com/odoo/odoo/blob/2097c75dc38b310c4d9ddecd79e2218448a51a4c/requirements.txt#L46>`_ | ||||||||||||
| specifies reportlab 3.5.55. Normally speaking the pin in requirements.txt | ||||||||||||
| should reflect that and be 3.5.34, but it turns out that this version only | ||||||||||||
| works if Ubuntu's patches are applied to it. Ubuntu LTS releases have | ||||||||||||
| backporting of bug fixes, which means that the behavior of a Python package in | ||||||||||||
| the distribution might not be the same as that same version when installed with | ||||||||||||
| pip. This is the case with reportlab, which is why the pin is different. | ||||||||||||
|
|
||||||||||||
| If a custom module requires a more recent version of a package than is | ||||||||||||
| installed on Odoo.sh, you can specify it in your own requirements.txt file. | ||||||||||||
|
Comment on lines
+54
to
+55
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
requirements.txtpart.See Content guidelines: paragraphs