Open moltar opened 1 week ago
PythonProject calls installDependencies all the time during synth, regardless of whether something has changed.
installDependencies
It is really wasteful and time-consuming to install deps on every projen synth run.
projen synth
Shall it perhaps check if any dep declarations have changed? For example, maybe check the requirements*.txt file for changes.
requirements*.txt
It is called here: https://github.com/projen/projen/blob/611c5b48f76b0295aa003a7c14bcf758bef0a50f/src/python/python-project.ts#L550
Yeah, it should have a similar check like the node project:
https://github.com/projen/projen/blob/611c5b48f76b0295aa003a7c14bcf758bef0a50f/src/javascript/node-package.ts#L889-L906
PythonProject calls
installDependencies
all the time during synth, regardless of whether something has changed.It is really wasteful and time-consuming to install deps on every
projen synth
run.Shall it perhaps check if any dep declarations have changed? For example, maybe check the
requirements*.txt
file for changes.It is called here: https://github.com/projen/projen/blob/611c5b48f76b0295aa003a7c14bcf758bef0a50f/src/python/python-project.ts#L550