]> gitweb.factorcode.org Git - factor.git/commitdiff
python.ffi: On Arch Linux, the library is called libpython3.so
authorDoug Coleman <doug.coleman@gmail.com>
Fri, 4 Jul 2014 01:17:22 +0000 (01:17 +0000)
committerDoug Coleman <doug.coleman@gmail.com>
Fri, 4 Jul 2014 01:17:22 +0000 (01:17 +0000)
extra/python/ffi/ffi.factor

index a489c6e66973b425f3b0a1d942a6b82046a53c75..4d5f382bd67b3f6d665dacb0100450def9f9201c 100644 (file)
@@ -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: