-
Notifications
You must be signed in to change notification settings - Fork 235
howto install pyomo local
Ludovico Bianchi edited this page May 18, 2023
·
1 revision
These steps assume that:
- A local Git clone of IDAES exists at
/home/myuser/proj/idaes/idaes-pse
- We want to work on a branch called
my-idaes-branch
- We want to work on a branch called
- A local Git clone of Pyomo exists at
/home/myuser/proj/idaes/pyomo
- We want to work on a branch called
new-pyomo-feature
- We want to work on a branch called
- When in doubt, it's generally safer to create a new environment
conda create -n idaes-with-dev-pyomo python=3.10 && conda activate idaes-with-dev-pyomo
cd /home/myuser/proj/idaes/idaes-pse
git checkout my-idaes-branch
pip install -r requirements-dev.txt
pip uninstall --yes pyomo
cd /home/myuser/proj/idaes/pyomo
git checkout new-pyomo-feature
pip install --editable .
pip show pyomo
# the output should contain Location: /home/myuser/proj/idaes/pyomo
- Set up pre-commit
- Run pytest with coverage report
- Run Pylint locally
- Update the Pyomo version
- Install Pyomo from a local Git clone
- Set up GitHub authentication with GCM
- Handle warnings in pytest