feat: add no_upgrade config option for environment installation #1607
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add a
no_upgradefield toEnvConfigthat controls whether the--no-upgradeflag is passed toprime env install. This prevents the install command from upgrading existing packages, preserving locked dependencies (e.g., fromuv.lock). A useful option to have for when orchestrator auto-installs the specified environments in config (currently just uses the default behavior of prime env install).Follow-up PR to PrimeIntellect-ai/prime#295 (CC @JannikSt)
Changes:
no_upgrade: bool = FalsetoEnvConfiginstall_env()to accept and pass--no-upgradeflagget_env_ids_to_install()to return dict with no_upgrade settingsUsage
In your
rl.tomlconfig, addno_upgrade = trueto any environment that should preserve locked dependencies:This is useful when:
Note
Introduces a configuration to preserve locked dependencies during environment installation.
env.no_upgrade: booltoEnvConfigand documents it inCHANGELOG.mdinstall_env(env_id, no_upgrade=False)to pass--no-upgradetoprime env installwhen setget_env_ids_to_installto return a{env_id: no_upgrade}map and merge duplicates preferringTrueeval,orchestrator, andsynthesizeto use the new API; orchestrator merges train/eval envs withno_upgrade=TrueprecedenceWritten by Cursor Bugbot for commit 86ec5d9. This will update automatically on new commits. Configure here.