Skip to content

Commit cfeced0

Browse files
committed
[Release] Release of 1.00.13
1 parent fa9646e commit cfeced0

14 files changed

+207
-152
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ include (config/project_config_embeddable.cmake)
1010
project (travelccm)
1111
set_project_names (travelccm TravelCCM)
1212
set_project_brief ("C++ Travel Customer Choice Model Library")
13-
set_project_versions (1 00 12)
13+
set_project_versions (1 00 13)
1414

1515
##
1616
# Project options

ChangeLog

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
* Thu Dec 25 2025 Denis Arnaud <denis.arnaud_fedora at m4x.org> - 1.00.13
2+
- Upgraded CMake conf for Python
3+
14
* Wed Dec 17 2025 Denis Arnaud <denis.arnaud_fedora at m4x.org> - 1.00.12
25
- Fixed a few issues with the doc and man pages
36

NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
* 2025-12-25:
2+
- Version 1.00.13
3+
- Upgraded CMake conf for Python
4+
15
* 2025-12-17:
26
- Version 1.00.12
37
- Fixed a few issues with the doc and man pages

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ To customise the following to your environment, you can alter the path
8080
to the installation directory:
8181
```bash
8282
export INSTALL_BASEDIR="${HOME}/dev/deliveries"
83-
export CCM_VER="1.00.12"
83+
export CCM_VER="1.00.13"
8484
```
8585

8686
Then, as usual:

autogen.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ fi
5151
#
5252
VERSION_MAJOR=1
5353
VERSION_MINOR=00
54-
VERSION_PATCH=12
54+
VERSION_PATCH=13
5555
VERSION_TMP_STRING=`grep "set_project_versions" CMakeLists.txt | sed -e "s/set_project_versions.*\([0-9]\+.\+[0-9]\+.\+[0-9]\+\).\+/\1/"`
5656
VERSION_STRING=`echo "${VERSION_TMP_STRING}" | grep "^[0-9]\+.[0-9]\+.[0-9]\+$"`
5757

config/FindPython/Support.cmake

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ if (NOT DEFINED _${_PYTHON_PREFIX}_REQUIRED_VERSION_MAJOR)
3030
message (FATAL_ERROR "FindPython: INTERNAL ERROR")
3131
endif()
3232
if (_${_PYTHON_PREFIX}_REQUIRED_VERSION_MAJOR EQUAL "3")
33-
set(_${_PYTHON_PREFIX}_VERSIONS 3.14 3.13 3.12 3.11 3.10 3.9 3.8 3.7 3.6 3.5 3.4 3.3 3.2 3.1 3.0)
33+
set(_${_PYTHON_PREFIX}_VERSIONS 3.15 3.14 3.13 3.12 3.11 3.10 3.9 3.8 3.7 3.6 3.5 3.4 3.3 3.2 3.1 3.0)
3434
elseif (_${_PYTHON_PREFIX}_REQUIRED_VERSION_MAJOR EQUAL "2")
3535
set(_${_PYTHON_PREFIX}_VERSIONS 2.7 2.6 2.5 2.4 2.3 2.2 2.1 2.0)
3636
else()
@@ -625,18 +625,16 @@ function (_PYTHON_GET_CONFIG_VAR _PYTHON_PGCV_VALUE NAME)
625625
set (_values "_d")
626626
endif()
627627
elseif (NAME STREQUAL "ABIFLAGS" AND WIN32)
628-
# config var ABIFLAGS does not exist, check GIL specific variable
628+
# config var ABIFLAGS does not exist for version < 3.14, check GIL specific variable
629629
execute_process (COMMAND ${_${_PYTHON_PREFIX}_INTERPRETER_LAUNCHER} "${_${_PYTHON_PREFIX}_EXECUTABLE}" -c
630-
"import sys; import sysconfig; sys.stdout.write(str(sysconfig.get_config_var('Py_GIL_DISABLED')))"
630+
"import sys\nimport sysconfig\ntry:\n sys.stdout.write(sysconfig.get_config_var('ABIFLAGS'))\nexcept Exception:\n sys.stdout.write('t' if sysconfig.get_config_var('Py_GIL_DISABLED') == 1 else '<none>')"
631631
RESULT_VARIABLE _result
632632
OUTPUT_VARIABLE _values
633633
ERROR_QUIET
634634
OUTPUT_STRIP_TRAILING_WHITESPACE)
635-
if (result OR NOT _values EQUAL "1")
635+
if (_result OR NOT _values)
636636
# assume ABI is not supported or GIL is set
637637
set (_values "<none>")
638-
else()
639-
set (_values "t")
640638
endif()
641639
else()
642640
set (config_flag "${NAME}")
@@ -4071,7 +4069,11 @@ if(_${_PYTHON_PREFIX}_CMAKE_ROLE STREQUAL "PROJECT")
40714069
set_property (TARGET ${__name}
40724070
PROPERTY INTERFACE_COMPILE_DEFINITIONS "${${_PYTHON_PREFIX}_DEFINITIONS}")
40734071
endif()
4074-
4072+
if(WIN32)
4073+
# avoid implicit library link (recognized by version 3.14 and upper)
4074+
set_property (TARGET ${__name}
4075+
APPEND PROPERTY INTERFACE_COMPILE_DEFINITIONS "Py_NO_LINK_LIB")
4076+
endif()
40754077

40764078
if (${_PYTHON_PREFIX}_${_PREFIX}LIBRARY_RELEASE AND ${_PYTHON_PREFIX}_RUNTIME_${_PREFIX}LIBRARY_RELEASE)
40774079
# System manage shared libraries in two parts: import and runtime
@@ -4133,6 +4135,11 @@ if(_${_PYTHON_PREFIX}_CMAKE_ROLE STREQUAL "PROJECT")
41334135
set_property (TARGET ${__name}
41344136
PROPERTY INTERFACE_COMPILE_DEFINITIONS "${${_PYTHON_PREFIX}_DEFINITIONS}")
41354137
endif()
4138+
if(WIN32)
4139+
# avoid implicit library link (recognized by version 3.14 and upper)
4140+
set_property (TARGET ${__name}
4141+
APPEND PROPERTY INTERFACE_COMPILE_DEFINITIONS "Py_NO_LINK_LIB")
4142+
endif()
41364143

41374144
# When available, enforce shared library generation with undefined symbols
41384145
if (APPLE)

config/FindPythonInterp.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ unset(_Python_NAMES)
6767

6868
set(_PYTHON1_VERSIONS 1.6 1.5)
6969
set(_PYTHON2_VERSIONS 2.7 2.6 2.5 2.4 2.3 2.2 2.1 2.0)
70-
set(_PYTHON3_VERSIONS 3.14 3.13 3.12 3.11 3.10 3.9 3.8 3.7 3.6 3.5 3.4 3.3 3.2 3.1 3.0)
70+
set(_PYTHON3_VERSIONS 3.15 3.14 3.13 3.12 3.11 3.10 3.9 3.8 3.7 3.6 3.5 3.4 3.3 3.2 3.1 3.0)
7171

7272
if(PythonInterp_FIND_VERSION)
7373
if(PythonInterp_FIND_VERSION_COUNT GREATER 1)

config/FindPythonLibs.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ set(CMAKE_FIND_FRAMEWORK LAST)
9999

100100
set(_PYTHON1_VERSIONS 1.6 1.5)
101101
set(_PYTHON2_VERSIONS 2.7 2.6 2.5 2.4 2.3 2.2 2.1 2.0)
102-
set(_PYTHON3_VERSIONS 3.14 3.13 3.12 3.11 3.10 3.9 3.8 3.7 3.6 3.5 3.4 3.3 3.2 3.1 3.0)
102+
set(_PYTHON3_VERSIONS 3.15 3.14 3.13 3.12 3.11 3.10 3.9 3.8 3.7 3.6 3.5 3.4 3.3 3.2 3.1 3.0)
103103

104104
if(PythonLibs_FIND_VERSION)
105105
if(PythonLibs_FIND_VERSION_COUNT GREATER 1)

config/FindReadline.cmake

Lines changed: 54 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,20 @@
1616
#
1717
# Variables defined by this module:
1818
#
19-
# READLINE_FOUND System has readline, include and lib dirs found
20-
# Readline_INCLUDE_DIR The readline include directories.
21-
# Readline_LIBRARY The readline library.
19+
# Readline_FOUND System has readline, include and lib dirs found
20+
# Readline_VERSION The Readline version
21+
# Readline_VERSION_MAJOR The Readline major version
22+
# Readline_VERSION_MINOR The Readline minor version
23+
# Readline_INCLUDE_DIR The readline include directories
24+
# Readline_LIBRARY The readline library
2225
#
2326

2427
find_path (Readline_ROOT_DIR
2528
NAMES include/readline/readline.h
2629
)
2730

2831
find_path (Readline_INCLUDE_DIR
29-
NAMES readline/readline.h /usr/include/readline
32+
NAMES readline/readline.h
3033
HINTS ${Readline_ROOT_DIR}/include
3134
)
3235

@@ -35,8 +38,51 @@ find_library (Readline_LIBRARY
3538
HINTS ${Readline_ROOT_DIR}/lib
3639
)
3740

41+
# Extract version information from readline.h
42+
if (Readline_INCLUDE_DIR)
43+
# Extract Readline_VERSION from readline.h
44+
# Read the whole file:
45+
set (Readline_VERSION "")
46+
set (Readline_VERSION_MAJOR "")
47+
set (Readline_VERSION_MINOR "")
48+
file (READ "${Readline_INCLUDE_DIR}/readline/readline.h"
49+
_readline_VERSION_HPP_CONTENTS)
50+
if (Readline_DEBUG)
51+
message (STATUS "[ ${CMAKE_CURRENT_LIST_FILE}:${CMAKE_CURRENT_LIST_LINE} ] "
52+
"location of readline.h: ${Readline_INCLUDE_DIR}/readline/readline.h")
53+
endif (Readline_DEBUG)
54+
55+
string (REGEX REPLACE ".*#define RL_READLINE_VERSION\t([0-9x]*).*" "\\1"
56+
Readline_VERSION "${_readline_VERSION_HPP_CONTENTS}")
57+
58+
string (REGEX REPLACE ".*#define RL_VERSION_MAJOR\t([0-9]*).*" "\\1"
59+
Readline_VERSION_MAJOR "${_readline_VERSION_HPP_CONTENTS}")
60+
61+
string (REGEX REPLACE ".*#define RL_VERSION_MINOR\t([0-9]*).*" "\\1"
62+
Readline_VERSION_MINOR "${_readline_VERSION_HPP_CONTENTS}")
63+
64+
set (Readline_VERSION ${Readline_VERSION}
65+
CACHE INTERNAL "The version number for Readline")
66+
67+
set (Readline_VERSION_MAJOR ${Readline_VERSION_MAJOR}
68+
CACHE INTERNAL "The major version number for Readline")
69+
70+
set (Readline_VERSION_MINOR ${Readline_VERSION_MINOR}
71+
CACHE INTERNAL "The minor version number for Readline")
72+
73+
#
74+
if (Readline_DEBUG)
75+
message (STATUS "[ ${CMAKE_CURRENT_LIST_FILE}:${CMAKE_CURRENT_LIST_LINE} ] "
76+
"readline.h reveals Readline ${Readline_VERSION}")
77+
endif (Readline_DEBUG)
78+
79+
else (Readline_INCLUDE_DIR)
80+
set (Readline_ERROR_REASON
81+
"${Readline_ERROR_REASON}Unable to find the Readline header files. Please set Readline_ROOT_DIR to the root directory containing Readline or Readline_INCLUDE_DIR to the directory containing Readline's headers.")
82+
endif (Readline_INCLUDE_DIR)
83+
3884
if(Readline_INCLUDE_DIR AND Readline_LIBRARY AND Ncurses_LIBRARY)
39-
set(READLINE_FOUND TRUE)
85+
set(Readline_FOUND TRUE)
4086
else(Readline_INCLUDE_DIR AND Readline_LIBRARY AND Ncurses_LIBRARY)
4187
FIND_LIBRARY(Readline_LIBRARY NAMES readline)
4288
include(FindPackageHandleStandardArgs)
@@ -46,6 +92,9 @@ endif(Readline_INCLUDE_DIR AND Readline_LIBRARY AND Ncurses_LIBRARY)
4692

4793
mark_as_advanced(
4894
Readline_ROOT_DIR
95+
Readline_VERSION
96+
Readline_VERSION_MAJOR
97+
Readline_VERSION_MINOR
4998
Readline_INCLUDE_DIR
5099
Readline_LIBRARY
51100
)

config/FindSOCI.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ if (SOCI_LIBRARY_DIR)
7878
NO_DEFAULT_PATH)
7979
else (SOCI_LIBRARY_DIR)
8080
find_library (SOCI_LIBRARIES
81-
NAMES ${CHECK_LIBRARIES})
82-
#PATH_SUFFIXES soci)
81+
NAMES ${CHECK_LIBRARIES}
82+
PATH_SUFFIXES soci)
8383
endif (SOCI_LIBRARY_DIR)
8484

8585
##

0 commit comments

Comments
 (0)