-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit 33bd170 Author: Dan Smith <[email protected]> Date: Mon Dec 13 11:44:54 2021 -0500 nitro release 2.10.7 commit ef19ad2 Author: Dan Smith <[email protected]> Date: Mon Dec 13 11:42:09 2021 -0500 coda-oss release 2021-12-13 commit 86c1856 Author: Dan Smith <[email protected]> Date: Fri Dec 10 11:57:26 2021 -0500 xml.lite tweaks from coda-oss commit f21f79d Author: Dan Smith <[email protected]> Date: Thu Dec 9 17:36:09 2021 -0500 test_xmlParser might be be running in coda-oss commit 3526cd0 Author: Dan Smith <[email protected]> Date: Thu Dec 9 16:09:17 2021 -0500 "private" is part of name mangling commit 351a45f Author: Dan Smith <[email protected]> Date: Thu Dec 9 15:54:13 2021 -0500 more xml.lite updates from coda-oss commit 1c72ba2 Author: Dan Smith <[email protected]> Date: Thu Dec 9 15:15:34 2021 -0500 trying to fine the right macro for SWIG commit 8d6e11d Author: Dan Smith <[email protected]> Date: Thu Dec 9 14:51:34 2021 -0500 need updates to Python bindings too commit e208dd4 Author: Dan Smith <[email protected]> Date: Thu Dec 9 14:41:12 2021 -0500 xml.lite changes from coda-oss commit 169df75 Author: Dan Smith <[email protected]> Date: Wed Dec 8 14:32:37 2021 -0500 latest from coda-oss
- Loading branch information
Dan Smith
committed
Dec 13, 2021
1 parent
1a74d40
commit c9c0ec3
Showing
8 changed files
with
109 additions
and
30 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
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,82 @@ | ||
from subprocess import check_output, check_call, DEVNULL | ||
import os | ||
import sys | ||
from platform import dist | ||
from sys import stdout | ||
from threading import Timer, Event | ||
import itertools, sys | ||
|
||
|
||
def thinking(evt): | ||
def thought(): | ||
# https://stackoverflow.com/a/22616059/5401366 | ||
spinner = itertools.cycle(["-", "/", "|", "\\"]) | ||
while not evt.isSet(): | ||
stdout.write(next(spinner)) # write the next character | ||
stdout.flush() # flush stdout buffer (actual character display) | ||
stdout.write("\b") # erase the last written char | ||
|
||
return thought | ||
|
||
|
||
def linux_version(): | ||
distro, version, _ = dist() | ||
maj_version = version.split(".")[0] | ||
return distro, maj_version | ||
|
||
|
||
def swig_version(): | ||
decoded_result = check_output(["swig", "-version"]).decode("ascii") | ||
return decoded_result.split("\n")[1].split(" ")[-1] | ||
|
||
|
||
def python(args): | ||
|
||
stdout, stderr = ( | ||
(sys.stdout, sys.stderr) | ||
if "DEBUG_PY_BINDINGS" in os.environ | ||
else (DEVNULL, DEVNULL) | ||
) | ||
|
||
return check_call([sys.executable] + args.split(" "), stdout=stdout, stderr=stderr) | ||
|
||
|
||
def main(): | ||
|
||
(distro, major_version) = linux_version() | ||
|
||
if distro != "centos" and major_version != "7": | ||
print( | ||
"Found non-standard os %s{}:%s{}, which may introduce subtle differences in generated code; YMMV" | ||
% (distro, major_version) | ||
) | ||
|
||
sv = swig_version() | ||
if sv != "3.0.12": | ||
print("Found unapproved swig version '%s'. Output may vary a great deal!" % sv) | ||
|
||
print("Thinking about how great cmake is...") | ||
|
||
evt = Event() | ||
thread = Timer(0.7, thinking(evt)) | ||
thread.start() | ||
|
||
try: | ||
python("waf configure --enable-debugging --prefix=installed --enable-swig") | ||
print("Just") | ||
|
||
python("waf build") | ||
print("about") | ||
|
||
except Exception as e: | ||
print("Thoughts interrupted by: ") | ||
print(e) | ||
finally: | ||
python("waf distclean") | ||
print("done") | ||
|
||
evt.set() | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
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,5 +1,5 @@ | ||
#pragma once | ||
|
||
#if !defined(NRT_LIB_VERSION) | ||
#define NRT_LIB_VERSION "2.10.6" | ||
#define NRT_LIB_VERSION "2.10.7" | ||
#endif |