File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 11[bumpversion]
2- current_version = 0.3.14
2+ current_version = 0.3.14.1
33commit = True
44tag = True
55parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)((?P<release>(a|b|rc|\.dev)\d+))?
Original file line number Diff line number Diff line change @@ -659,15 +659,16 @@ pub fn get_windows_python_symbols(
659659#[ cfg( any( target_os = "linux" , target_os = "freebsd" ) ) ]
660660pub fn is_python_lib ( pathname : & str ) -> bool {
661661 lazy_static ! {
662- static ref RE : Regex = Regex :: new( r"/libpython\d.\d\d?(m|d|u)?.so" ) . unwrap( ) ;
662+ static ref RE : Regex = Regex :: new( r"/libpython\d.\d\d?(m|d|u)?(-pyston\d.\d)? .so" ) . unwrap( ) ;
663663 }
664664 RE . is_match ( pathname)
665665}
666666
667667#[ cfg( target_os = "macos" ) ]
668668pub fn is_python_lib ( pathname : & str ) -> bool {
669669 lazy_static ! {
670- static ref RE : Regex = Regex :: new( r"/libpython\d.\d\d?(m|d|u)?.(dylib|so)$" ) . unwrap( ) ;
670+ static ref RE : Regex =
671+ Regex :: new( r"/libpython\d.\d\d?(m|d|u)?(-pyston\d.\d)?.(dylib|so)$" ) . unwrap( ) ;
671672 }
672673 RE . is_match ( pathname) || is_python_framework ( pathname)
673674}
@@ -714,7 +715,10 @@ mod tests {
714715 #[ test]
715716 fn test_is_python_lib ( ) {
716717 // libpython bundled by pyinstaller https://github.com/benfred/py-spy/issues/42
717- assert ! ( is_python_lib( "/tmp/_MEIOqzg01/libpython2.7.so.1.0" ) ) ;
718+ assert ! ( is_python_lib( "/usr/lib/libpython3.8-pyston2.3.so.1.0" ) ) ;
719+
720+ // test pyston based libpython
721+ assert ! ( is_python_lib( "/usr/lib/libpython2.7u.so" ) ) ;
718722
719723 // test debug/malloc/unicode flags
720724 assert ! ( is_python_lib( "./libpython2.7.so" ) ) ;
You can’t perform that action at this time.
0 commit comments