Skip to content

Commit d991d63

Browse files
committed
stop using the legacy setup.py bdist_wheel mechanism which was removed
in pip 25.3. while there, add missing parent dirs in PLIST-perl, and avoid extra @cwd juggling for the pkg-readme in PLIST-main, it can just be listed in the main set of files installed under ${LOCALBASE}.
1 parent 2559b3a commit d991d63

4 files changed

Lines changed: 34 additions & 2 deletions

File tree

‎geo/mapserver/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ COMMENT-perl= Perl Mapscript binding
77
COMMENT-python= Python Mapscript binding
88

99
V= 8.4.1
10+
REVISION= 0
1011
DISTNAME= mapserver-${V}
1112
PKGNAME-main= mapserver-${V:S/-//}
1213
PKGNAME-utils= mapserver-utils-${V:S/-//}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
Index: src/mapscript/python/CMakeLists.txt
2+
--- src/mapscript/python/CMakeLists.txt.orig
3+
+++ src/mapscript/python/CMakeLists.txt
4+
@@ -69,7 +69,7 @@ add_custom_command(
5+
WORKING_DIRECTORY ${MAPSCRIPT_WORKING_DIR}
6+
COMMAND ${Python_EXECUTABLE} -m venv mapscriptvenv
7+
COMMAND ${CMAKE_COMMAND} -E env PIP_NO_PYTHON_VERSION_WARNING=1
8+
- ${Python_VENV_SCRIPTS}/pip install --no-warn-script-location -r ${PROJECT_SOURCE_DIR}/src/mapscript/python/requirements-dev.txt > requires.log
9+
+ ${Python_VENV_SCRIPTS}/pip install --use-pep517 --no-build-isolation --no-warn-script-location -r ${PROJECT_SOURCE_DIR}/src/mapscript/python/requirements-dev.txt > requires.log
10+
COMMAND ${CMAKE_COMMAND} -E touch ${MAPSCRIPT_WORKING_DIR}/mapscriptvenv.stamp
11+
COMMENT "Creating a Python virtual environment and installing the required packages"
12+
)
13+
@@ -87,7 +87,7 @@ add_custom_command(
14+
WORKING_DIRECTORY ${Python_VENV_SCRIPTS} # make sure scripts aren't run when from the same folder as mapscript.py
15+
DEPENDS ${MAPSCRIPT_WORKING_DIR}/mapscriptwheel.stamp
16+
OUTPUT ${MAPSCRIPT_WORKING_DIR}/mapscripttests.stamp
17+
- COMMAND ${Python_VENV_SCRIPTS}/pip install --no-index --find-links=${MAPSCRIPT_WORKING_DIR}/dist mapscript
18+
+ COMMAND ${Python_VENV_SCRIPTS}/pip install --use-pep517 --no-build-isolation --no-index --find-links=${MAPSCRIPT_WORKING_DIR}/dist mapscript
19+
# ERROR: file or package not found: mapscript.tests (missing __init__.py?) is caused by
20+
# ImportError: DLL load failed while importing _mapscript: The specified module could not be found.
21+
COMMAND ${Python_VENV_SCRIPTS}/python -m pytest --pyargs mapscript.tests
22+
@@ -140,7 +140,7 @@ install(
23+
endif()
24+
25+
execute_process(
26+
- COMMAND ${Python_EXECUTABLE} -m pip install \${PYTHON_ROOT} \${PYTHON_PREFIX} .
27+
+ COMMAND ${Python_EXECUTABLE} -m pip install --use-pep517 --no-build-isolation \${PYTHON_ROOT} \${PYTHON_PREFIX} .
28+
WORKING_DIRECTORY ${MAPSCRIPT_WORKING_DIR}
29+
)
30+
"

‎geo/mapserver/pkg/PLIST-main‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
@cwd ${LOCALBASE}
44
@bin bin/mapserv
55
@lib lib/libmapserver.so.${LIBmapserver_VERSION}
6+
share/doc/pkg-readmes/${PKGSTEM}
67
share/mapserver/mapserver-sample.conf
78
@sample ${SYSCONFDIR}/mapserver.conf
89
share/mapserver/ogcapi/
@@ -18,5 +19,3 @@ share/mapserver/ogcapi/templates/html-plain/footer.html
1819
share/mapserver/ogcapi/templates/html-plain/header.html
1920
share/mapserver/ogcapi/templates/html-plain/landing.html
2021
share/mapserver/ogcapi/templates/html-plain/openapi.html
21-
@cwd ${LOCALBASE}/share/doc/pkg-readmes
22-
${PKGSTEM}

‎geo/mapserver/pkg/PLIST-perl‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/
2+
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/
13
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/mapscript/
24
@so libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/mapscript/mapscript.so
35
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/mapscript.pm

0 commit comments

Comments
 (0)