Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Fix build warnings #1279

Merged
merged 136 commits into from
Apr 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
136 commits
Select commit Hold shift + click to select a range
304fbd8
Fix warnings on Mac
Apr 17, 2023
0852d42
Fix dg control error
dchassin Apr 17, 2023
3f0e772
Fix linux warning in source
dchassin Apr 17, 2023
9ef1000
Fixed incorrect buffer format limits
Apr 17, 2023
787ab1a
Fixed module warnings on linux
Apr 17, 2023
ffd531f
Update requirements
Apr 17, 2023
496c307
Update configure.ac
Apr 17, 2023
afbf4b7
Update requirements.txt
Apr 17, 2023
1079319
Fix validation errors
Apr 17, 2023
13181bc
Fix python config
Apr 17, 2023
a50748c
Move configure commands that change environment to makefile
dchassin Apr 18, 2023
237c6ac
Fix makefile
Apr 18, 2023
a92ce18
Update gridlabd.in
Apr 18, 2023
d324c63
Fix python clean
Apr 18, 2023
640db83
Update test_plot.png
Apr 18, 2023
dd37d72
Update makefiles
Apr 18, 2023
ffab926
Update requirements.txt
Apr 18, 2023
fa08d66
Update requirements process
Apr 18, 2023
8d7d6c4
Added python requirements for alternate systems
Apr 18, 2023
dbc419d
Charge Darwin ARM64 requirements filename
Apr 18, 2023
dee3972
Move python os/cpu requirements to python folder
Apr 18, 2023
d43d1e5
Update version.sh
Apr 18, 2023
3ec2228
Add Darwin 19 python requirements
dchassin Apr 19, 2023
8d8b025
Add requirements.txt generator
dchassin Apr 19, 2023
1c7c3a8
Update develop.yml
Apr 19, 2023
7f2b20f
Update version.sh
Apr 19, 2023
a3942cb
Update develop.yml
Apr 19, 2023
e06d735
Update requirements-debian11-x86_64.txt
Apr 19, 2023
b535995
Delete requirements.txt
Apr 19, 2023
f646f8a
Update .gitignore
Apr 19, 2023
7147aca
Remove static requirements
Apr 19, 2023
d2d5832
Update makefile to build requirements.txt
Apr 19, 2023
ac06bef
Update develop.yml
Apr 19, 2023
ed0df97
Move requirements.csv to python folder
Apr 19, 2023
9692898
Update python venv support
Apr 19, 2023
4a9ee6d
Update develop.yml
Apr 19, 2023
11999a5
Update develop.yml
Apr 19, 2023
9560473
Update develop.yml
Apr 19, 2023
763a8a9
Update develop.yml
Apr 19, 2023
f06ff8c
Update develop.yml
Apr 19, 2023
f0fea8e
Update develop.yml
Apr 19, 2023
3c8168a
Update develop.yml
Apr 19, 2023
b4140eb
Update develop.yml
Apr 19, 2023
de650fc
Merge branch 'develop-fix-warnings' of https://github.com/dchassin/gr…
Apr 19, 2023
d5b03c7
Update develop.yml
Apr 19, 2023
efc6f4b
Update develop.yml
Apr 19, 2023
f05a512
Update requirements.csv
Apr 19, 2023
0a4d2bd
Update develop.yml
Apr 19, 2023
a9b6df5
Update develop.yml
Apr 19, 2023
9f9655f
Update develop.yml
Apr 19, 2023
5208f1f
Update develop.yml
Apr 19, 2023
a24f5f8
Update develop.yml
Apr 19, 2023
10e8424
Update Makefile.am
Apr 19, 2023
c40a5f6
Update Makefile.am
Apr 19, 2023
06927ab
Update Makefile.am
Apr 19, 2023
d1705c9
Update develop.yml
Apr 19, 2023
7b4d2ac
Update Makefile.am
Apr 19, 2023
e0de3e2
Update develop.yml
Apr 19, 2023
d19d893
Update develop.yml
Apr 19, 2023
2c9fb9d
Update develop.yml
Apr 20, 2023
d703a97
fixed setuptools install
Stanford-CVX-group Apr 20, 2023
5ff0dc8
testing required installs before requirements can be run in batch....
Stanford-CVX-group Apr 20, 2023
b0510b0
testing complete format import
Stanford-CVX-group Apr 20, 2023
38b393f
if this works, I will cry inside
Stanford-CVX-group Apr 20, 2023
64f77fb
testing changing gdal version based on newer API available for debian 11
Stanford-CVX-group Apr 20, 2023
aa3d11f
testing unpinned raserio install
Stanford-CVX-group Apr 20, 2023
dbbf4e6
fixed rasterio, required newer version compatible with python3.10
Stanford-CVX-group Apr 20, 2023
eeb7bad
adjusted version
Stanford-CVX-group Apr 20, 2023
3f2de14
Move explicit pip installs to requirements.csv
Apr 20, 2023
f129736
Update requirements.py
Apr 20, 2023
ce275bf
Update requirements.py
Apr 20, 2023
6810df1
Update requirements.csv
Apr 20, 2023
17410b8
Fix test_fire_report autotest
Apr 20, 2023
64dc07c
Update develop.yml
Apr 20, 2023
99c02b6
Update Makefile.am
Apr 20, 2023
3375502
Fix Darwin 20 validation errors
Apr 20, 2023
ba9a3c9
Update gridlabd-plot
Apr 20, 2023
ed3ac99
Update create_player.py
Apr 20, 2023
a5f0ccf
Update fit_filter.py
Apr 20, 2023
ea44d23
Update test_fit_filter_opt.glm
Apr 20, 2023
31c57f1
Update Makefile.am
Apr 20, 2023
57311e3
Update market_model.py
Apr 20, 2023
4c20f15
Update test_market_model_opt.glm
Apr 20, 2023
2a773a1
Update requirements.csv
dchassin Apr 21, 2023
056ea14
Update requirements.csv
Apr 21, 2023
2113151
Update README.md
Apr 21, 2023
d96a95c
Update README.md
Apr 21, 2023
53b3839
Update requirements.py
Apr 21, 2023
ba4980d
Fix source error
Apr 21, 2023
d85c758
Merge branch 'develop-fix-warnings' of https://github.com/dchassin/gr…
Apr 21, 2023
9d53a92
Fix filename buffer overruns
Apr 21, 2023
7fa222c
Update Makefile.mk
Apr 21, 2023
94633e4
Update metrics_collector_writer.cpp
Apr 21, 2023
bf9ac32
Update requirements.csv
Apr 21, 2023
f44935b
Update Makefile.am
Apr 21, 2023
5de7d51
Update Makefile.am
Apr 21, 2023
ecdcacb
Update requirements.csv
Apr 21, 2023
21cd8dd
Update requirements.py
Apr 21, 2023
543d901
Update requirements.py
Apr 21, 2023
a8802c1
Update requirements.py
Apr 21, 2023
ea8b1bd
Update requirements.csv
Apr 21, 2023
1839fcd
Update requirements.py
Apr 21, 2023
5a5beb2
Update requirements.csv
Apr 21, 2023
22a2591
Update requirements.py
Apr 21, 2023
8e37bb4
Update develop.yml
Apr 21, 2023
116d3a7
Update Makefile.mk
Apr 21, 2023
d9d17b0
Fix python-install
Apr 21, 2023
50bd03f
Update requirements.py
dchassin Apr 22, 2023
979396a
Update Makefile.am
dchassin Apr 22, 2023
99af8ab
Update Makefile.mk
dchassin Apr 22, 2023
8bb6254
Update Makefile.am
dchassin Apr 22, 2023
8746eca
Update Makefile.mk
dchassin Apr 22, 2023
d18a8d6
Update Makefile.mk
dchassin Apr 22, 2023
36552f6
Update Makefile.mk
dchassin Apr 22, 2023
d3b806b
Update Makefile.mk
dchassin Apr 22, 2023
e5163cb
Update Makefile.mk
dchassin Apr 22, 2023
43546a2
Update globals.cpp
dchassin Apr 22, 2023
0b06512
Update globals.cpp
dchassin Apr 22, 2023
6807f01
Update globals.cpp
dchassin Apr 22, 2023
bef5156
Update Makefile.mk
dchassin Apr 22, 2023
4f81dfa
Update globals.cpp
dchassin Apr 22, 2023
f198a2a
Update globals.cpp
dchassin Apr 22, 2023
0878c11
Update cmdarg.cpp
dchassin Apr 22, 2023
71d086d
Update gridlabd.m4sh
dchassin Apr 22, 2023
3c98c4a
Update gridlabd.in
dchassin Apr 22, 2023
28a6531
Fix pythonpath
dchassin Apr 22, 2023
95385ec
Update globals.cpp
dchassin Apr 22, 2023
5c1aa18
Update globals.cpp
dchassin Apr 22, 2023
a77f1dc
Update globals.cpp
dchassin Apr 22, 2023
2b7da9e
Fix pythonpath initialization
dchassin Apr 22, 2023
ac752f9
Update globals.cpp
dchassin Apr 22, 2023
94941a9
Update requirements.csv
Apr 22, 2023
cc6d8ff
Update gridlabd.m4sh
Apr 22, 2023
a55196c
Update gridlabd.in
Apr 22, 2023
336771f
Update globals.cpp
Apr 22, 2023
7e08474
Merge branch 'develop' into develop-fix-warnings
dchassin Apr 23, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 5 additions & 11 deletions .github/workflows/develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,18 @@ jobs:
steps:
- uses: actions/checkout@v2

# this is to fix GIT not liking owner of the checkout dir
- name: Set ownership
run: |
chown -R $(id -u):$(id -g) $PWD

- name: Update pip
run: python3 -m pip install --upgrade pip

- name: install gridlabd
- name: Build gridlabd
run: |
set +x
chown -R $(id -u):$(id -g) $PWD /github/home
autoreconf -isf
./configure
make -j$(($(nproc)*3)) system
make -j$(($(nproc)*3)) python-install system

- name: Install openfido
run: curl -sL https://raw.githubusercontent.com/openfido/cli/main/install.sh | bash

- name: Validate build
- name: Validate system
run: |
gridlabd -D keep_progress=TRUE -T 0 --validate -D github_actions=yes || ( utilities/save_validation_errors ; false )

Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,10 @@ fault_check.txt
# files that should be ignored by git
*_ignore.*

# requirements files
requirements.txt
python/venv

# specific outputs that should be ignored
python/example.png
models/ieee123/config/local.glm
Expand Down
97 changes: 70 additions & 27 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@
# Authors:
# DP Chassin (dchassin@slac.stanford.edu)

# !!! must match version specified in configure.ac
PYVER = 3.10
PYCFLAGS = $(shell python3.10-config --cflags)
PYLDFLAGS = $(shell python3.10-config --ldflags)

SYSPYTHON = python$(PYVER)
PYTHONCONFIG = $(SYSPYTHON)-config

AM_INIT_AUTOMAKE = subdir-objects
AUTOMAKE_OPTIONS = -Wno-portability
ACLOCAL_AMFLAGS = -I m4
Expand All @@ -18,27 +26,30 @@ CC = $(PTHREAD_CC)
CXX = $(PTHREAD_CXX)

AM_CPPFLAGS = -Wall -fPIC
AM_CPPFLAGS += -I$(top_srcdir)/source -I$(top_srcdir)/build-dir/source
AM_CPPFLAGS += -I$(top_srcdir)/source #-I$(top_srcdir)/build-dir/source
AM_CPPFLAGS += $(GLD_CPPFLAGS)
AM_CPPFLAGS += $(PYCFLAGS)

AM_CFLAGS = -Wall
AM_CFLAGS += -I$(top_srcdir)/source -I$(top_srcdir)/build-dir/source
AM_CFLAGS += -I$(top_srcdir)/source #-I$(top_srcdir)/build-dir/source
AM_CFLAGS += $(PTHREAD_CFLAGS)
AM_CFLAGS += $(GLD_CFLAGS) -I$(top_srcdir)/build-dir/source
AM_CFLAGS += $(GLD_CFLAGS) #-I$(top_srcdir)/build-dir/source
AM_CFLAGS += $(PYCFLAGS)

AM_CXXFLAGS = -Wall -fPIC
AM_CXXFLAGS += $(PTHREAD_CFLAGS)
AM_CXXFLAGS += $(GLD_CXXFLAGS) -I$(top_srcdir)/build-dir/source
AM_CXXFLAGS += $(GLD_CXXFLAGS) #-I$(top_srcdir)/build-dir/source
AM_CXXFLAGS += $(PYCFLAGS)

AM_LDFLAGS =
AM_LDFLAGS = $(PYLDFLAGS)
AM_LDFLAGS += -no-undefined
AM_LDFLAGS += -module
AM_LDFLAGS += -avoid-version
AM_LDFLAGS += -export-dynamic
AM_LDFLAGS += $(GLD_LDFLAGS)
AM_LDFLAGS += $(GLD_LDFLAGS) -lpython$(PYVER)

# makefile fragments populate these variables
BUILT_SOURCES =
BUILT_SOURCES =
CLEANFILES =
EXTRA_DIST =
dist_pkgdata_DATA =
Expand All @@ -49,8 +60,6 @@ bin_PROGRAMS =
bin_SCRIPTS =
dist_doc_DATA =

python_requirements = $(shell find $(top_srcdir) -name requirements.txt -print)

docs_targets =

# required modules
Expand All @@ -71,6 +80,55 @@ include $(top_srcdir)/modules.mk
# custom modules (see ./customize)
include $(top_srcdir)/custom.mk

BUILT_SOURCES += python-requirements

#
# Post install report
#

install-exec-hook: | index docs
@cp ${top_srcdir}/{COPYRIGHT,LICENSE} $(prefix)
@echo ""
@echo "Install complete. Here are some useful commands now:"
@echo ""
@echo "To include this version in your command path:"
@echo " export PATH='$(DESTDIR)$(bindir):$$PATH'"
@echo ""
@echo "To run this version directly without using the command path:"
@echo " $(DESTDIR)$(bindir)/gridlabd"
@echo ""
@echo "To make this version the default for all users on this system:"
@echo " $(DESTDIR)$(bindir)/gridlabd version set $(shell basename $(exec_prefix))"
@echo ""

#
# Python setup
#

PYENV=$(bindir)/pkgenv
PYBIN=$(PYENV)/bin
PYLIB=$(PYENV)/lib
PYINC=$(PYENV)/include
ENVPYTHON=$(PYBIN)/python$(PYVER)
PYACTIVATE=source $(PYBIN)/activate

python-requirements: | $(PYENV)

# NB: it's ok to use the runner's python to generate the requirements.txt file
requirements.txt: python/requirements.csv
@python3 -m pip -q install pandas==2.0.0
@python3 python/requirements.py $< >$@

$(PYENV): requirements.txt
@echo "Processing python requirements..."
@mkdir -p $(PYBIN) $(PYLIB) $(PYINC)
@$(SYSPYTHON) -m venv --symlinks $(PYENV)
@$(ENVPYTHON) -m pip install --upgrade pip
@$(ENVPYTHON) -m pip install pandas==2.0.0
@$(ENVPYTHON) python/requirements.py --buildenv | bash
@$(ENVPYTHON) -m pip install -r requirements.txt
@touch $(PYENV)

# for doxygen commands
include $(top_srcdir)/aminclude.mk

Expand Down Expand Up @@ -285,24 +343,9 @@ distclean-local: python-clean
libtool: $(LIBTOOL_DEPS)
$(SHELL) $(PWD)/config.status libtool > /dev/null

install-exec-hook: index python-requirements docs
@cp ${top_srcdir}/{COPYRIGHT,LICENSE} $(prefix)
@echo ""
@echo "Install complete. Here are some useful commands now:"
@echo ""
@echo "To include this version in your command path:"
@echo " export PATH='$(DESTDIR)$(bindir):$$PATH'"
@echo ""
@echo "To run this version directly without using the command path:"
@echo " $(DESTDIR)$(bindir)/gridlabd"
@echo ""
@echo "To make this version the default for all users on this system:"
@echo " $(DESTDIR)$(bindir)/gridlabd version set $(shell basename $(exec_prefix))"
@echo ""

python-requirements: $(python_requirements)
@echo "Updating python requirements..."
@$(bindir)/pkgenv/bin/python3 -m pip install -q -r $(subst $(subst ,, ), -r ,$(python_requirements))
#
# Run this after changes that affect build-aux/version.sh output
#

reconfigure: distclean
autoreconf -isf && $(PWD)/configure --quiet
Expand Down
10 changes: 10 additions & 0 deletions build-aux/version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,15 @@ case $1 in
echo "$PKG" ;;
--package-name | -P)
echo "$NAM" ;;
--sysspec )
if [ "$(uname -s)" == "Darwin" ]; then
echo darwin$(uname -r | cut -f1 -d.)-$(uname -m)
elif [ -f "/etc/os-release" ]; then
echo $(grep ^ID= /etc/os-release | cut -f2 -d= | tr -d '"')-$(grep ^VERSION_ID= /etc/os-release | cut -f2 -d= | tr -d '"')-$(uname -m)
else
echo $(uname -s)$(uname -r)-$(uname -m)
fi
;;
--help | -h)
echo "Syntax: build-aux/version.sh <option>
Options:
Expand All @@ -47,5 +56,6 @@ Options:
--package|-p output package PACKAGE
--package-name|-P output package name PACKAGE_NAME
--name|-m output install name REV_MAJOR.REV_MINOR.REV_PATCH-NUMBER-BRANCH
--sysspec output system specification OSVER-ARCH
--help|-h output this help" ;;
esac
112 changes: 9 additions & 103 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ AC_CONFIG_AUX_DIR([build-aux])
###############################################################################
# Init automake
###############################################################################

AM_INIT_AUTOMAKE([foreign subdir-objects -Wall])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES])

Expand Down Expand Up @@ -578,103 +579,16 @@ BINDIR=$DSTDIR/bin
LIBDIR=$DSTDIR/lib/gridlabd
ETCDIR=$DSTDIR/share/gridlabd
DOCDIR=$DSTDIR/share/doc/gridlabd
ENVDIR=$BINDIR/pkgenv
PYDIR=$ENVDIR/bin
PYEXE=3.10

echo "os: $host_os"
echo "cpu: $host_cpu"

# Verify python version
if test ! -d "$BINDIR/pkgenv"; then
mkdir -p "$BINDIR"
fi
PYTHON_REQ=3.10

if echo "$host_os" | grep '^linux' >/dev/null; then
# Check for Debian or Ubuntu
if grep -E '^ID=(debian|ubuntu)$' /etc/*-release; then
# Check for Debian 10
if grep -E '^VERSION_ID="10"' /etc/*-release; then
echo "Detected Debian 10 operating system"
# Add Debian 10-specific configuration here
/usr/local/bin/python$PYEXE -m venv "$BINDIR/pkgenv"
"$PYDIR/python3" -m pip install --upgrade pip
"$PYDIR/python3" -m pip install matplotlib Pillow pandas numpy networkx pytz pysolar PyGithub scikit-learn xlrd boto3
"$PYDIR/python3" -m pip install IPython censusdata
"$PYDIR/python3" -m pip install GDAL==2.4.0
"$PYDIR/python3" -m pip install rasterio==1.2.10
elif grep -E '^VERSION_ID="9"' /etc/*-release; then
echo "Detected Debian 9 operating system"
# Add Debian 9-specific configuration here
/usr/local/bin/python$PYEXE -m venv "$BINDIR/pkgenv"
"$PYDIR/python3" -m pip install --upgrade pip
"$PYDIR/python3" -m pip install matplotlib Pillow pandas numpy networkx pytz pysolar PyGithub scikit-learn xlrd boto3
"$PYDIR/python3" -m pip install IPython censusdata
else
echo "Detected Debian or Ubuntu operating system"
# Add Debian/Ubuntu-specific configuration here
/usr/local/bin/python$PYEXE -m venv "$BINDIR/pkgenv"
"$PYDIR/python3" -m pip install --upgrade pip
"$PYDIR/python3" -m pip install matplotlib Pillow pandas numpy networkx pytz pysolar PyGithub scikit-learn xlrd boto3
"$PYDIR/python3" -m pip install IPython censusdata
"$PYDIR/python3" -m pip install GDAL==3.0.4
"$PYDIR/python3" -m pip install rasterio==1.2.10
fi

if test ! -d "$BINDIR/pkgenv/include/python*"; then
ln -sF /usr/local/bin/python${PYEXE}-config $BINDIR/pkgenv/bin/python3-config
ln -sF /usr/local/lib/*${PYEXE}* $BINDIR/pkgenv/lib
ln -sF /usr/local/include/python${PYEXE} $BINDIR/pkgenv/include
fi

else
echo "Unsupported Linux distribution"
exit 1
fi
elif echo "$host_os" | grep '^darwin' >/dev/null; then
if echo "$host_cpu" | grep -E 'i386|x86_64'; then
echo "Detected Intel Mac operating system"
# Add Intel Mac-specific configuration here
/usr/local/bin/python$PYEXE -m venv "$BINDIR/pkgenv"

ln -sF /usr/local/opt/python@$PYEXE/Frameworks/Python.framework/Versions/$PYEXE/bin/python$PYEXE-config $BINDIR/pkgenv/bin/python3-config
ln -sF /usr/local/opt/python@$PYEXE/Frameworks/Python.framework/Versions/$PYEXE/include/python$PYEXE $BINDIR/pkgenv/include
ln -sF /usr/local/opt/python@$PYEXE/Frameworks/Python.framework/Versions/$PYEXE/lib/*${PYEXE}* $BINDIR/pkgenv/lib

$PYDIR/python3 -m ensurepip --upgrade
$PYDIR/python3 -m pip install matplotlib Pillow pandas numpy networkx pytz pysolar PyGithub scikit-learn xlrd boto3
$PYDIR/python3 -m pip install build
$PYDIR/python3 -m pip install pyproj wheel

elif echo "$host_cpu" | grep 'aarch64'; then
echo "Detected arm64 Mac operating system"
# Add arm64 Mac-specific configuration here
/opt/homebrew/bin/python$PYEXE -m venv "$BINDIR/pkgenv"

ln -sF /opt/homebrew/opt/python@$PYEXE/Frameworks/Python.framework/Versions/$PYEXE/bin/python$PYEXE-config $BINDIR/pkgenv/bin/python3-config
ln -sF /opt/homebrew/opt/python@$PYEXE/Frameworks/Python.framework/Versions/$PYEXE/include/python$PYEXE $BINDIR/pkgenv/include
ln -sF /opt/homebrew/opt/python@$PYEXE/Frameworks/Python.framework/Versions/$PYEXE/lib/*${PYEXE}* $BINDIR/pkgenv/lib

$PYDIR/python3 -m ensurepip --upgrade
$PYDIR/python3 -m pip install matplotlib Pillow pandas numpy networkx pytz pysolar PyGithub scikit-learn xlrd boto3
$PYDIR/python3 -m pip install build
$PYDIR/python3 -m pip install pyproj wheel
else
echo "Unknown CPU architecture on Mac operating system"
exit 1
fi
else
echo "Unsupported operating system: $host_os"
exit 1
fi

HAVE_PYTHON="$($BINDIR/pkgenv/bin/python3 --version | cut -f2 -d' ')"
PYTHON_EXEC="$($BINDIR/pkgenv/bin/python3 -c "import os; print(os.path.realpath('$BINDIR/pkgenv/bin/python3'))")"
PYTHON_VER=$(echo $HAVE_PYTHON | cut -f1-2 -d.)
AM_PATH_PYTHON([$PYTHON_REQ])
PYTHON=$(which python$PYTHON_REQ)
HAVE_PYTHON="$($PYTHON --version | cut -f2 -d' ')"
AM_CONDITIONAL([HAVE_PYTHON], [test ! "x$HAVE_PYTHON" = "xno"])
AS_IF([test "x$HAVE_PYTHON" != "xno" -a "$(uname)" == "Darwin" ],
[PYTHON_LIB="-lpython${PYTHON_VER} -shared -Wl-undefined,dynamic_lookup"],
[PYTHON_LIB="-lpython${PYTHON_VER}"])
[PYTHON_LIB="-lpython${PYTHON_REQ} -shared -Wl-undefined,dynamic_lookup"],
[PYTHON_LIB="-lpython${PYTHON_REQ}"])

###############################################################################
# The End
Expand All @@ -690,7 +604,7 @@ AC_MSG_RESULT([
Version: .................... $VERSION
Branch: ..................... $PACKAGE_ORIGIN
Install prefix: ............. ${DSTDIR/^$PWD/.}
Python Location: ............ $PYTHON_EXEC
Python binary: .............. $PYTHON

Dependencies:

Expand All @@ -708,6 +622,7 @@ AC_MSG_RESULT([

Build flags:

CFLAGS: ..................... ${CFLAGS:-(none)}
CXXFLAGS: ................... ${CXXFLAGS:-(none)}
LDFLAGS: .................... ${LDFLAGS:-(none)}

Expand Down Expand Up @@ -744,18 +659,9 @@ AC_MSG_RESULT([

$DSTDIR/bin/$PACKAGE version set

Developer flags:
CFLAGS ........ "$CFLAGS -D PYTHON_EXEC='\"$PYTHON_EXEC\"'"
CXXFLAGS ...... "$($BINDIR/pkgenv/bin/python3-config --cflags) $CXXFLAGS -D PYTHON_EXEC='\"$PYTHON_EXEC\"'"
LDFLAGS ....... "$($BINDIR/pkgenv/bin/python3-config --ldflags) $PYTHON_LIB $LDFLAGS "

-----------------------------------------------------------------------
])

CFLAGS="$CFLAGS -D PYTHON_EXEC='\"$PYTHON_EXEC\"'"
CXXFLAGS="$($BINDIR/pkgenv/bin/python3-config --cflags) $CXXFLAGS -D PYTHON_EXEC='\"$PYTHON_EXEC\"'"
LDFLAGS="$($BINDIR/pkgenv/bin/python3-config --ldflags) $PYTHON_LIB $LDFLAGS "

AC_CONFIG_FILES([Makefile])
AC_CONFIG_FILES([gridlabd.spec])
AC_CONFIG_FILES([source/gridlabd], [chmod +x source/gridlabd])
Expand Down
2 changes: 0 additions & 2 deletions converters/Makefile.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# INPUT CONVERTERS
#

python_requirements += $(top_srcdir)/converters/requirements.txt

# csv -> glm
dist_pkgdata_DATA += converters/csv-ami2glm-ceus.py
dist_pkgdata_DATA += converters/csv-ami2glm-rbsa.py
Expand Down
2 changes: 1 addition & 1 deletion converters/mdb-cyme2glm.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
"DEBUG" : ["False"],
"QUIET" : ["False"],
"VERBOSE" : ["False"],
}).transpose().set_axis(["value"],axis=1,inplace=0)
}).transpose().set_axis(["value"],axis=1)
config.index.name = "name"

cyme_phase_name = {0:"ABCN", 1:"A", 2:"B", 3:"C", 4:"AB", 5:"AC", 6:"BC", 7:"ABC"} # CYME phase number -> phase names
Expand Down
4 changes: 0 additions & 4 deletions converters/requirements.txt

This file was deleted.

2 changes: 1 addition & 1 deletion geodata/autotest/unittest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ DIR=${0/unittest.sh/..}
N=0
for F in $DIR/*.py; do
echo '*** '"$(basename $F) unittest"' ***' > /tmp/$$_$N.err
( $GLD_BIN/pkgenv/bin/python3 $F -q 2>>/tmp/$$_$N.err && rm /tmp/$$_$N.err ) &
( gridlabd python $F -q 2>>/tmp/$$_$N.err && rm /tmp/$$_$N.err ) &
N=$(($N+1))
done
wait
Expand Down
Loading