generated from arras-energy/gridlabd-old
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
David P. Chassin
committed
Sep 22, 2023
1 parent
b92e990
commit 7fa84b7
Showing
27 changed files
with
23,984 additions
and
8,836 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,8 @@ | |
# Authors: | ||
# DP Chassin ([email protected]) | ||
|
||
.SILENT: | ||
|
||
$(info Current target is $(shell $(top_srcdir)/build-aux/version.sh --name)) | ||
|
||
# !!! must match version specified in configure.ac | ||
|
@@ -50,13 +52,15 @@ AM_LDFLAGS += -module | |
AM_LDFLAGS += -avoid-version | ||
AM_LDFLAGS += -export-dynamic | ||
AM_LDFLAGS += $(GLD_LDFLAGS) -lpython$(PYVER) | ||
AM_LIBTOOLFLAGS = --quiet | ||
|
||
# makefile fragments populate these variables | ||
BUILT_SOURCES = | ||
CLEANFILES = | ||
EXTRA_DIST = | ||
dist_pkgdata_DATA = requirements.txt | ||
pkgdata_DATA = | ||
pkginclude_HEADERS = | ||
noinst_LTLIBRARIES = | ||
pkglib_LTLIBRARIES = | ||
bin_PROGRAMS = | ||
|
@@ -291,11 +295,18 @@ $(PREFIX)/docker.img: docker/Dockerfile Makefile | |
@mkdir -p $(prefix) | ||
docker save $(PACKAGE)/$(PACKAGE_VERSION)-$(PACKAGE_BRANCH):latest -o $(prefix)/docker.img | ||
|
||
system: python-install install | ||
system: python-install install $(prefix)/src | ||
@echo "Setting $$($(top_srcdir)/build-aux/version.sh --install) to the current system version" | ||
@$(prefix)/bin/gridlabd version set | ||
@test "$$(gridlabd --version=install)" = "$$($(top_srcdir)/build-aux/version.sh --install)" || echo 'WARNING : build and install versions differ; use build `--clean` option to fix this problem' | ||
|
||
$(prefix)/src: | ||
@echo Copying source files to $@... | ||
@mkdir -p $(prefix)/src/source $(prefix)/src/python | ||
@cp $(top_srcdir)/source/*.cpp $(prefix)/src/source | ||
@cp $(top_srcdir)/python/*.cpp $(prefix)/src/python | ||
@chmod -R 555 $(prefix)/src | ||
|
||
index: weather library template | ||
|
||
html-local: module-html developer-html troubleshooting-html | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,9 @@ | ||
<!DOCTYPE HTML /> | ||
<HTML> | ||
<SCRIPT LANGUAGE="Javascript" SRC="_defaults.js"></SCRIPT> | ||
<SCRIPT LANGUAGE="JavaScript"> | ||
document.writeln('<FRAMESET ROWS="' + (top_panel_height+20) + ',*" BORDER=2>'); | ||
console.info(window.location.search) | ||
document.writeln('<FRAME SRC="_topbar.html" NORESIZE="noresize"></FRAME>'); | ||
document.writeln('<FRAMESET COLS="320,*" BORDER=3>'); | ||
document.writeln('<FRAME NAME="contents" SRC="_contents.html' + window.location.search + '"></FRAME>'); | ||
document.writeln('<FRAME NAME="page" SRC="_page.html' + window.location.search + '"></FRAME>'); | ||
document.writeln('</FRAMESET>'); | ||
document.writeln('</FRAMESET>'); | ||
</SCRIPT> | ||
|
||
<HEAD> | ||
<META HTTP-EQUIV="refresh" CONTENT="0,url=http://docs.gridlabd.us/index.html?owner=arras-energy&project=gridlabd" /> | ||
</HEAD> | ||
<BODY> | ||
Redirecting to <A HREF="http://docs.gridlabd.us/index.html?owner=arras-energy&project=gridlabd">http://docs.arras-energy.org/index.html?owner=arras-energy&project=gridlabd</A>... | ||
</BODY> | ||
</HTML> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
[[/Subcommand/Shell]] -- Open GridLAB-D shell environment | ||
|
||
# Synopsis | ||
|
||
Shell: | ||
|
||
~~~ | ||
sh$ gridlabd shell [OPTIONS ...] | ||
~~~ | ||
|
||
# Description | ||
|
||
The `shell` subcommand opens a shell in the GridLAB-D environment. The shell used is the one currently running as specified by the `SHELL` environment variable. This can be used to run Python with the active python `venv` used for GridLAB-D, or to create a new Python virtual environment in which gridlabd can be run. The options are the same as for the shell current being used. | ||
|
||
The following environment variables are set in the shell environment: | ||
|
||
- `CCFLAGS`: C-compiler flags | ||
- `CFLAGS`: C-compiler flags | ||
- `CPPFLAGS`: C++ compiler flags | ||
- `CXXFLAGS`: C++ compiler flags | ||
- `GLD_BIN`: binary folder | ||
- `GLD_ETC`: shared files folder | ||
- `GLD_INC`: include files folder | ||
- `GLD_LIB`: library folder | ||
- `GLD_VER`: version folder | ||
- `GLPATH`: GridLAB-D file search path | ||
- `INCLUDE`: C-compiler include flags | ||
- `LDFLAGS`: linker flags | ||
- `LIB`: linker library path | ||
- `PYCCFLAGS`: python C-compiler flags | ||
- `PYLDFLAGS`: Python linker flags | ||
- `PYTHON_CONFIG` python config executable name | ||
- `PYTHON_VER`: python version number (major.minor) | ||
- `PYTHONPATH`: Python search path | ||
- `VIRTUAL_ENV`: Python virtual environment path | ||
- `VIRTUAL_ENV_PROMPT`: Python virtual environment prompt | ||
|
||
# Example | ||
|
||
The following commands open a GridLAB-D shell environment and create a Python virtual environment in which GridLAB-D is installed | ||
|
||
~~~ | ||
gridlabd shell | ||
python$PYTHON_VER -m venv myenv | ||
. myenv/bin/activate | ||
python3 -m pip install $GLD_ETC/*.whl | ||
~~~ | ||
|
||
# See also | ||
|
||
* [[/Subcommand/Python]] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.