Open mfripp opened 4 years ago
@josiahjohnston made several suggestions in this comment:
testfixtures
) in the bundle of extra dependencies[extras]
section in setup.py
, not ad hoc installation of individual packages
conda
doesn't provide this option, but presumably Josiah would be happy with a separate conda install switch_model_extras
for this.switch find <module>
switch solve --trace [[<module>|<file>[:<function>|<line>]], [<module>[:<function>]], ...]
switch install examples
is more opaque and no easier than copying explicitly from the repository
There are a number of ideas in pull request #115 that won't make it into the 2.0.6 release, so I'm gathering them here for future consideration.
First, unaddressed goals from the start of that pull request:
conda install switch_model_extras
/pip install switch_model[extras]
)conda install -c defaults -c conda-forge switch_model
orpip install switch_model
(+find glpk somewhere) for most users?conda config --add channels new_channel
). Should we recommend this for all users, or would that be too much meddling in people's system configuration?git clone https://github.com/switch-model/switch.git && cd switch
conda install --only-deps switch_model
pip install --editable .
orpython setup.py develop
(note:conda develop
doesn't install command-line scripts or dependencies; see https://github.com/conda/conda-build/issues/1992#issuecomment-322588270)switch find <module>
: report file path to specified module (possibly just a submodule within switch_model)atom `switch find switch_model`
,mate `switch find pyomo`
or maybeatom `switch find discrete_commit`
.switch install examples
: copy examples directory to local directoryswitch solve --trace [[<module>|<file>[:<function>|<line>]], [<module>[:<function>]], ...]
: invoke the debugger (a) when particular callbacks are called, (b) when any callback in the specified module is called (if no function specified), or (c) whenever any callback is called (if no modules specified).