Skip to content

Commit a12fddd

Browse files
committed
Update Linux packages
1 parent bf388bc commit a12fddd

File tree

4 files changed

+8
-20
lines changed

4 files changed

+8
-20
lines changed

CMakeLists.txt

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ endif()
2929

3030
find_package (OpenTURNS CONFIG REQUIRED)
3131
message (STATUS "Found OpenTURNS: ${OPENTURNS_ROOT_DIR} (found version \"${OPENTURNS_VERSION_STRING}\")")
32-
if (NOT DEFINED OPENTURNS_PYTHON_MODULE_PATH)
33-
set (OPENTURNS_PYTHON_MODULE_PATH ${OPENTURNS_PYTHON3_MODULE_PATH})
34-
endif ()
3532

3633
if (NOT BUILD_SHARED_LIBS)
3734
list ( APPEND OTMORRIS_DEFINITIONS "-DOTMORRIS_STATIC" )
@@ -84,9 +81,9 @@ if (BUILD_PYTHON)
8481
endif ()
8582

8683
if (WIN32)
87-
set (OTMORRIS_PYTHON_MODULE_PATH Lib/site-packages CACHE PATH "site-packages dir")
84+
set (OTMORRIS_PYTHON_MODULE_PATH Lib/site-packages CACHE STRING "site-packages dir")
8885
else ()
89-
set (OTMORRIS_PYTHON_MODULE_PATH ${CMAKE_INSTALL_LIBDIR}/python${Python_VERSION_MAJOR}.${Python_VERSION_MINOR}/site-packages CACHE PATH "site-packages dir")
86+
set (OTMORRIS_PYTHON_MODULE_PATH ${CMAKE_INSTALL_LIBDIR}/python${Python_VERSION_MAJOR}.${Python_VERSION_MINOR}/site-packages CACHE STRING "site-packages dir")
9087
endif ()
9188
endif ()
9289
endif ()

ChangeLog

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
= 0.17 release (wip)
1+
= 0.17 release (2024-10-23)
22

33
* Make bounds argument last to disambiguate constructors
44

distro/debian/rules

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,17 @@ CXXFLAGS+=$(CPPFLAGS)
77
DPKG_EXPORT_BUILDFLAGS = 1
88
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
99

10-
PY3VER = $(shell py3versions -d)
11-
1210
%:
1311
dh $@ --buildsystem=cmake --with python3
1412

1513
override_dh_auto_configure:
1614
dh_auto_configure -Bbuild -- \
17-
-DUSE_SPHINX=OFF \
1815
-DCMAKE_SKIP_INSTALL_RPATH:BOOL=ON \
1916
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
20-
-DCMAKE_INSTALL_LIBDIR:PATH="lib/$(DEB_HOST_MULTIARCH)" \
17+
-DCMAKE_INSTALL_LIBDIR:PATH=lib/$(DEB_HOST_MULTIARCH) \
2118
-DINSTALL_DESTDIR:PATH=$(CURDIR)/debian/otmorris \
22-
-DPYTHON_SITE_PACKAGES:PATH="lib/$(PY3VER)/site-packages"
19+
-DOTMORRIS_PYTHON_MODULE_PATH=lib/python3/dist-packages \
20+
-DCMAKE_UNITY_BUILD=ON
2321

2422
override_dh_auto_build:
2523
$(MAKE) -C build -j4

distro/rpm/otmorris.spec

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,11 @@
77
%endif
88

99
%define __cmake %{_bindir}/cmake
10-
%define _cmake_lib_suffix64 -DLIB_SUFFIX=64
1110
%define cmake \
1211
CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; \
1312
CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; \
1413
FFLAGS="${FFLAGS:-%optflags}" ; export FFLAGS ; \
15-
%__cmake \\\
16-
-DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \\\
17-
%if "%{?_lib}" == "lib64" \
18-
%{?_cmake_lib_suffix64} \\\
19-
%endif \
20-
-DBUILD_SHARED_LIBS:BOOL=ON
14+
%__cmake -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix}
2115

2216
Name: otmorris
2317
Version: 0.17
@@ -66,11 +60,10 @@ Python textual interface to OTMORRIS uncertainty library
6660
%build
6761
%cmake -DINSTALL_DESTDIR:PATH=%{buildroot} \
6862
-DCMAKE_SKIP_INSTALL_RPATH:BOOL=ON \
69-
-DUSE_SPHINX=OFF .
63+
-DCMAKE_UNITY_BUILD=ON .
7064
make %{?_smp_mflags}
7165

7266
%install
73-
rm -rf %{buildroot}
7467
make install DESTDIR=%{buildroot}
7568

7669
%check

0 commit comments

Comments
 (0)