From d013baa30508b7848ced69efcba5e2a87f77bbd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Fri, 19 Jan 2024 11:46:09 +0100 Subject: [PATCH] Add editable install script --- bin/oca_install_addons__editable | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 bin/oca_install_addons__editable diff --git a/bin/oca_install_addons__editable b/bin/oca_install_addons__editable new file mode 100755 index 0000000..4c4b3ca --- /dev/null +++ b/bin/oca_install_addons__editable @@ -0,0 +1,24 @@ +#!/bin/bash + +# +# Install addons to test in editable mode. This will install all python dependencies +# from PyPI, including OCA addons from other repos. +# + +set -ex + +# pre-install build tools for faster installation with --no-build-isolation +# Note that --no-build-isolation wont work if some dependencies have no wheel +# available and need to be built with additional build-system requirements. +# The long term solution for this perf issue is to have pip cache build environments. +pip install setuptools-odoo wheel "whool ; python_version>='3.7'" + +oca_list_addons_to_test_as_reqs --editable >> test-requirements.txt + +cat test-requirements.txt + +# Disable git versioning strategies for performance reasons. +# Disable build isolation for performance reasons. +env SETUPTOOLS_ODOO_POST_VERSION_STRATEGY_OVERRIDE=none \ + WHOOL_POST_VERSION_STRATEGY_OVERRIDE=none \ + pip install --no-build-isolation -r test-requirements.txt