Skip to content
This repository was archived by the owner on May 10, 2023. It is now read-only.

Commit ca022e4

Browse files
committed
Merge branch 'release/jakarta' into build/jakarta/2020.330
2 parents c0648f4 + cf23261 commit ca022e4

File tree

4 files changed

+21
-13
lines changed

4 files changed

+21
-13
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Jakarta
22

3+
## Release 2020.330 patch1
4+
5+
* cmake
6+
7+
* Port FindNumpy macro to Python3
8+
9+
* scbulletin, scdumpobject
10+
11+
* Fix crash at start
12+
313
## Release 2020.330
414

515
```SC_API_VERSION 13.0.0```

Modules/FindNumpy.cmake

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@
55
# PYTHON_NUMPY_INCLUDE_DIR - directory where the arrayobject.h header file can be found
66

77
IF(PYTHON_EXECUTABLE)
8-
FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/det_npp.py "try: import numpy; print numpy.get_include()\nexcept: pass\n")
9-
EXEC_PROGRAM("${PYTHON_EXECUTABLE}"
10-
ARGS "\"${CMAKE_CURRENT_BINARY_DIR}/det_npp.py\""
11-
OUTPUT_VARIABLE NUMPY_PATH
12-
)
13-
FILE(REMOVE ${CMAKE_CURRENT_BINARY_DIR}/det_npp.py)
8+
FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/det_npp.py "from __future__ import print_function\ntry: import numpy; print(numpy.get_include())\nexcept: pass\n")
9+
EXEC_PROGRAM("${PYTHON_EXECUTABLE}"
10+
ARGS "\"${CMAKE_CURRENT_BINARY_DIR}/det_npp.py\""
11+
OUTPUT_VARIABLE NUMPY_PATH
12+
)
13+
FILE(REMOVE ${CMAKE_CURRENT_BINARY_DIR}/det_npp.py)
1414
ENDIF(PYTHON_EXECUTABLE)
1515

1616
FIND_PATH(PYTHON_NUMPY_INCLUDE_DIR numpy/arrayobject.h
17-
"${NUMPY_PATH}/"
18-
DOC "Directory where the numpy/arrayobject.h header file can be found. This file is part of the numpy package"
17+
"${NUMPY_PATH}/"
18+
DOC "Directory where the numpy/arrayobject.h header file can be found. This file is part of the numpy package"
1919
)
2020

2121
IF(PYTHON_NUMPY_INCLUDE_DIR)
22-
SET (PYTHON_NUMPY_FOUND 1 CACHE INTERNAL "Python numpy development package is available")
22+
SET (PYTHON_NUMPY_FOUND 1 CACHE INTERNAL "Python numpy development package is available")
2323
ENDIF(PYTHON_NUMPY_INCLUDE_DIR)

src/trunk/apps/python/scbulletin-lib.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,8 +1038,7 @@ def run(self):
10381038

10391039

10401040
def main():
1041-
argv = [ bytes(a.encode()) for a in sys.argv ]
1042-
app = BulletinApp(len(argv), argv)
1041+
app = BulletinApp(len(sys.argv), sys.argv)
10431042
return app()
10441043

10451044

src/trunk/apps/python/scdumpobject.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
class ObjectDumper(Client.Application):
77

88
def __init__(self):
9-
argv = [bytes(a.encode()) for a in sys.argv]
10-
Client.Application.__init__(self, len(argv), argv)
9+
Client.Application.__init__(self, len(sys.argv), sys.argv)
1110
self.setMessagingEnabled(True)
1211
self.setDatabaseEnabled(True, False)
1312
self.setMessagingUsername("")

0 commit comments

Comments
 (0)