Skip to content

Trouble with development environment #2833

Answered by gaborbernat
tibortakacs asked this question in Q&A
Discussion options

You must be logged in to vote
  • I would like to add a new proxy core config (tox_add_env_config). Later, during the installation (tox_on_install), I want to use a special install command based on the value of proxy. So, somewhere in the call chain, I would like to overwrite the install_command config. (I do understand that I could just add a install_command to tox.ini, I would like to dynamically decide what the right install command is.) That said, is there any way to set or overwrite a config value in a plugin? Is only way that I create a new environment?

From within a plugin you can insert a memory loader earlier into the source chain as done here https://github.com/tox-dev/tox/blob/main/src/tox/session/cmd/exec_…

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
2 replies
@tibortakacs
Comment options

@gaborbernat
Comment options

Answer selected by gaborbernat
Comment options

You must be logged in to vote
5 replies
@gaborbernat
Comment options

@tibortakacs
Comment options

@gaborbernat
Comment options

@tibortakacs
Comment options

@gaborbernat
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2832 on January 06, 2023 21:27.