kou commented on pull request #7937:
URL: https://github.com/apache/arrow/pull/7937#issuecomment-673204636


   Thanks.
   How about this?
   
   ```diff
   diff --git a/python/pyarrow/__init__.py b/python/pyarrow/__init__.py
   index e011ee74f..9e22cc013 100644
   --- a/python/pyarrow/__init__.py
   +++ b/python/pyarrow/__init__.py
   @@ -380,7 +380,7 @@ def create_library_symlinks():
            bundled_libs = glob.glob(_os.path.join(package_cwd, '*.*.dylib'))
    
            def get_symlink_path(hard_path):
   -            return '.'.join((hard_path.split('.')[0], 'dylib'))
   +            return '.'.join((hard_path.rsplit('.', 2)[0], 'dylib'))
    
        for lib_hard_path in bundled_libs:
            symlink_path = get_symlink_path(lib_hard_path)
   ```
   
   This will be simpler than your implementation and similar to the 
implementaion for `'linux'`. Similar implementation will be easy to maintain.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to