Skip to content
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

Do not --upgrade when installing pip dependencies #213

Merged
merged 1 commit into from
Apr 1, 2019
Merged

Conversation

yajo
Copy link
Contributor

@yajo yajo commented Apr 1, 2019

It can lead to unexpected or unneeded upgrades, making downstream images bigger and less stable.

If you really need a newer (or older) version of any dependency than the one bundled (the one shipped from Odoo requirements.txt file), all you have to do is pin it in the scaffolding's pip.txt file.

It can lead to unexpected or unneeded upgrades, making downstream images bigger and less stable.

If you really need a newer (or older) version of any dependency than the one bundled (the one shipped from Odoo `requirements.txt` file), all you have to do is pin it in the scaffolding's `pip.txt` file.
@yajo yajo merged commit cb9c186 into master Apr 1, 2019
@yajo yajo deleted the no-pip-upgrade branch April 1, 2019 11:29
yajo added a commit that referenced this pull request Apr 2, 2019
Being practical, most of the time you need to install this library from git master.

Since #213 adding [the corresponding line][1] to the scaffolding didn't actually install the version from master. The pip requirements file doesn't have a way to force updating a dependency when it is already installed from git.

It seems the easiest way to fix the situation is to remove `openupgradelib` from the base image. If you really need it, install it when building your subimage, either from pip or from git, however you want.

[1]: https://github.com/Tecnativa/doodba-scaffolding/blob/55a5e1b3ba65bec8604f3260e361f8b6a1d64b2e/odoo/custom/dependencies/pip.txt#L1
@yajo yajo mentioned this pull request Apr 2, 2019
yajo added a commit that referenced this pull request Apr 2, 2019
Being practical, most of the time you need to install this library from git master.

Since #213 adding [the corresponding line][1] to the scaffolding didn't actually install the version from master. The pip requirements file doesn't have a way to force updating a dependency when it is already installed from git.

It seems the easiest way to fix the situation is to remove `openupgradelib` from the base image. If you really need it, install it when building your subimage, either from pip or from git, however you want.

[1]: https://github.com/Tecnativa/doodba-scaffolding/blob/55a5e1b3ba65bec8604f3260e361f8b6a1d64b2e/odoo/custom/dependencies/pip.txt#L1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant