Skip to content

Commit

Permalink
Add editable install script
Browse files Browse the repository at this point in the history
  • Loading branch information
sbidoul committed Mar 17, 2024
1 parent f641d25 commit 61eb8ce
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions bin/oca_install_addons__editable
Original file line number Diff line number Diff line change
@@ -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_url_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

0 comments on commit 61eb8ce

Please sign in to comment.