Skip to content

Commit

Permalink
Pin old setuptools-odoo for older Odoos
Browse files Browse the repository at this point in the history
Some of them depend on the unmaintained vatnumber
library, which itself needs a setuptools that supports use_2to3,
which setuptools 58 dropped.
  • Loading branch information
sbidoul committed Oct 6, 2021
1 parent 69d36e4 commit 9cdaf5e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/scripts/install_odoo.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,16 @@ def clone_odoo():


def install_odoo():
if odoo_branch in ["8.0", "9.0", "10.0", "11.0", "12.0", "13.0"]:
# setuptools 58 dropped support for 2to3, which is required
# for dependencies of older Odoo versions
subprocess.check_call(
[
"pip",
"install",
"setuptools<58",
]
)
subprocess.check_call(
[
"pip",
Expand Down

0 comments on commit 9cdaf5e

Please sign in to comment.