-
Notifications
You must be signed in to change notification settings - Fork 10.4k
[IMP] install/setup: install dependencies from debian packages #1364
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
Conversation
| .. tip:: It can be preferable to not mix python modules packages between different instances of Odoo | ||
| or with your system. You can use virtualenv_ to create isolated Python environments. | ||
| In that case, the `requirements.txt` file can be used to install the dependencies. |
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.
I think that we should specify here that -dev packages are required. It is sad to loose this list.
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.
That means bringing back the whole pip explanation in the tip ... what do you think @AntoineVDV
|
Linked to #1329 |
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.
2 cents
ff0e329 to
de702c1
Compare
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.
I find it weird to keep only some of the explanations for the pip setup while removing the others (list of -dev packages, for example). Either we recommend installing the dependencies through apt and we properly explain how to do it through pip for those who prefer, or we only mention the Debian setup. If we go for the first option, I suggest that we properly split the instructions for the two setups in two different headings, and find a nicer-looking solution later on (tabs, maybe).
I'm a bit confused about why we'd want to discourage the pip setup. Maybe @amigrave could enlighten me? And, if we do that, why do we keep (and maintain) a requirements.txt file? Also, are Debian dependencies listed in the debian/control file compatible with any supported version of Odoo?
| .. tip:: It can be preferable to not mix python modules packages between different instances of Odoo | ||
| or with your system. You can use virtualenv_ to create isolated Python environments. | ||
| In that case, the `requirements.txt` file can be used to install the dependencies. |
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.
| In that case, the `requirements.txt` file can be used to install the dependencies. | |
| In that case, the :file:`requirements.txt` file can be used to install the dependencies. |
de702c1 to
f8a83c4
Compare
|
@AntoineVDV I splitted the installation of |
No, I'm ok with that. I'll link from the Odoo.sh FAQ to the "preferred way" of installation. |
f8a83c4 to
94e69d0
Compare
47e2f77 to
ba81ba0
Compare
I don't think that it adds any value from the POV of the doc. |
ba81ba0 to
867d1ff
Compare
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.
I took the liberty to make some fine-tuning changes:
- RST cleanup.
- Some wording fixes.
- Removed the sentence "In that case, the requirements.txt file can be used to install the dependencies." from the virtualenv tip as I believe it's a leftover from when you didn't want to suggest pip anymore.
- The
wkhtmltopdfwarning block didn't make sense anymore, I replaced it by a bullet point.
I believe that it's clear enough to be merged but maybe @jcs-odoo wants to do a last pass? Otherwise,
@robodoo delegate=jcs-odoo
867d1ff to
ffd1584
Compare
|
@d-fence I just noticed two changes that I'm not too sure about:
|
AFAIK, Buster and Focal only provides
In the required libraries, we now ask to install |
I'm adding a few small fixes then it's good to go. |
This commit changes the way that Odoo python dependencies should be installed. Before this commit, the described way to install Odoo dependencies was by using the `pip` utility. Now, we explicitly recommend to use a Debian based system and install Odoo dependencies from their packaging tool. The main reasons are: * Odoo productions instances are, most of the time, run on Debian based systems with those package already installed * That way, a developer cannot mistakenly use a feature from a dependency that does not exists on those production environments * Avoid mixes of python packages on the developer/user 's system
33d6c69 to
6ab0d55
Compare
|
@robodoo r+ |
This commit changes the way that Odoo python dependencies should be installed. Before this commit, the described way to install Odoo dependencies was by using the `pip` utility. Now, we explicitly recommend to use a Debian based system and install Odoo dependencies from their packaging tool. The main reasons are: * Odoo productions instances are, most of the time, run on Debian based systems with those package already installed * That way, a developer cannot mistakenly use a feature from a dependency that does not exists on those production environments * Avoid mixes of python packages on the developer/user 's system closes #1364 Signed-off-by: Castillo Jonathan (jcs) <jcs@odoo.com>
This commit changes the way that Odoo python dependencies should be
installed.
Before this commit, the described way to install Odoo dependencies was
by using the
piputility.Now, we explicitly recommend to use a Debian based system and install
Odoo dependencies from their packaging tool.
The main reasons are:
systems with those package already installed
dependency that does not exists on those production envirorments