From 5c8bb0f69e2e236ae73ae7fa2786ad8e63d6bec5 Mon Sep 17 00:00:00 2001 From: Doug Coleman Date: Fri, 4 Jul 2014 01:17:22 +0000 Subject: [PATCH] python.ffi: On Arch Linux, the library is called libpython3.so --- extra/python/ffi/ffi.factor | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extra/python/ffi/ffi.factor b/extra/python/ffi/ffi.factor index a489c6e669..4d5f382bd6 100644 --- a/extra/python/ffi/ffi.factor +++ b/extra/python/ffi/ffi.factor @@ -2,9 +2,9 @@ USING: alien alien.c-types alien.destructors alien.libraries alien.libraries.fin alien.syntax assocs kernel sequences system ; IN: python.ffi -<< "python" { "3.0" "2.7" "2.6" } +<< "python" { "3.0" "3" "2.7" "2.6" } os windows? [ [ [ CHAR: . = not ] filter ] map ] when -[ "python" prepend find-library ] map-find drop +[ "python" prepend find-library* ] map-find drop cdecl add-library >> ! Functions that return borrowed references needs to be called like this: