arras-energy / gridlabd-old

HiPAS GridLAB-D is the California Energy Commission (CEC) version of GridLAB-D.
https://docs.gridlabd.us
BSD 3-Clause "New" or "Revised" License
33 stars 31 forks source link

Add wheel install #1310

Closed dchassin closed 1 year ago

dchassin commented 1 year ago

This PR fixes on item missed on issue #1250, i.e., the wheel was not installed in the shared folder so it was not possible to install the gridlabd module in any other venv created by the user after gridlabd was installed. Now you can do the following anytime:

python3.10 -m venv example
. example/bin/activate
python3 -m pip install /usr/local/opt/gridlabd/current/gridlabd/share/*.whl
python3 -c 'import gridlabd; print(gridlabd.version())'

which should generation output like

{'major': 4, 'minor': 3, 'patch': 3, 'build': 230708, 'branch': 'develop_add_wheel_install'}

This PR also fixes a problem with output from the Python documentation example.