summaryrefslogtreecommitdiff
path: root/math/py-igraph/files
diff options
context:
space:
mode:
Diffstat (limited to 'math/py-igraph/files')
-rw-r--r--math/py-igraph/files/patch-setup.py20
-rw-r--r--math/py-igraph/files/patch-vendor_source_igraph_etc_cmake_compilers.cmake19
2 files changed, 30 insertions, 9 deletions
diff --git a/math/py-igraph/files/patch-setup.py b/math/py-igraph/files/patch-setup.py
index c45c6da41642..24e3ea45c0df 100644
--- a/math/py-igraph/files/patch-setup.py
+++ b/math/py-igraph/files/patch-setup.py
@@ -1,24 +1,26 @@
---- setup.py.orig 2023-07-13 11:49:16 UTC
+--- setup.py.orig 2025-06-11 00:02:53 UTC
+++ setup.py
-@@ -281,7 +281,7 @@ class IgraphCCoreCMakeBuilder:
+@@ -280,8 +280,8 @@ class IgraphCCoreCMakeBuilder:
+ args.append("-DIGRAPH_GRAPHML_SUPPORT:BOOL=OFF")
# Build the Python interface with vendored libraries
- for deps in "ARPACK BLAS GLPK GMP LAPACK".split():
+- for deps in "ARPACK BLAS GLPK GMP LAPACK PLFIT".split():
- args.append("-DIGRAPH_USE_INTERNAL_" + deps + "=ON")
++ for deps in "ARPACK BLAS GLPK GMP LAPACK".split():
+ args.append("-DIGRAPH_USE_INTERNAL_" + deps + "=OFF")
- # -fPIC is needed on Linux so we can link to a static igraph lib from a
- # Python shared library
-@@ -289,6 +289,12 @@ class IgraphCCoreCMakeBuilder:
-
+ # Use link-time optinization if available
+ args.append("-DIGRAPH_ENABLE_LTO=AUTO")
+@@ -293,6 +293,12 @@ class IgraphCCoreCMakeBuilder:
# No need to build tests
args.append("-DBUILD_TESTING=OFF")
-+
+
+ # Always use flex from ports
+ args.append("-DFLEX_EXECUTABLE:FILEPATH=%%LOCALBASE%%/bin/flex")
+
+ # Don't try to use git
+ args.append("-DCMAKE_DISABLE_FIND_PACKAGE_Git:BOOL=True")
-
++
# Do not treat compilation warnings as errors in case someone is trying
# to "pip install" igraph in an environment for which we don't provide
+ # wheels and the compiler complains about harmless things
diff --git a/math/py-igraph/files/patch-vendor_source_igraph_etc_cmake_compilers.cmake b/math/py-igraph/files/patch-vendor_source_igraph_etc_cmake_compilers.cmake
new file mode 100644
index 000000000000..c0f153b37fa3
--- /dev/null
+++ b/math/py-igraph/files/patch-vendor_source_igraph_etc_cmake_compilers.cmake
@@ -0,0 +1,19 @@
+Strip the _POSIX_C_SOURCE=200809L define again, our libc++ breaks claiming
+that a set included from locale cannot find isascii()...
+
+--- vendor/source/igraph/etc/cmake/compilers.cmake.orig 2025-06-11 00:03:00 UTC
++++ vendor/source/igraph/etc/cmake/compilers.cmake
+@@ -1,13 +1,5 @@ include(CheckCCompilerFlag)
+ include(CheckCCompilerFlag)
+
+-# Enable POSIX features. This needs to be set here instead of in source files so
+-# that it affects CMake-based feature tests.
+-#
+-# See:
+-# - https://pubs.opengroup.org/onlinepubs/007904875/functions/xsh_chap02_02.html
+-# - https://www.gnu.org/software/libc/manual/html_node/Feature-Test-Macros.html
+-add_compile_definitions(_POSIX_C_SOURCE=200809L)
+-
+ if(MSVC)
+ add_compile_options(/FS)
+ add_compile_definitions(_CRT_SECURE_NO_WARNINGS) # necessary to compile for UWP