Login | Register
My pages Projects Community openCollabNet

Discussions > issues > [Issue 207] New - Replace explicit linking against Python framework with dynamic lookup

pysvn
Discussion topic

Back to topic list

[Issue 207] New - Replace explicit linking against Python framework with dynamic lookup

Author semenov
Full name Ilya Semenov
Date 2016-05-12 21:17:52 PDT
Message http://pysvn.tigris.​org/issues/show_bug.​cgi?id=207
                 Issue #|207
                 Summary|Replace explicit linking against Python framework with
                        | dynamic lookup
               Component|pysvn
                 Version|current
                Platform|Macintosh
              OS/Version|All
                     URL|
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|PATCH
                Priority|P3
            Subcomponent|extension
             Assigned to|barryscott
             Reported by|semenov






------- Additional comments from semenov at tigris dot org Thu May 12 21:17:52 -0700 2016 -------
Python extension modules do not need to link to Python framework on OS X, doing so is
considered bad practice. Please follow up here: http://blog.tim-smit​h.us/2015/09/python-​
extension-modules-os-x/

The proposed patch replaces explicit linking with dynamic lookup.

$ python setup.py configure && make && otool -L pysvn/_pysvn_2_7.so | grep -i python ;
python -c 'import pysvn; print pysvn, pysvn.Client()'

Without patch:
....
Link pysvn/_pysvn_2_7.so
    /usr/local/Framework​s/Python.framework/V​ersions/2.7/Python (compatibility version 2.7.0,
current version 2.7.0)
<module 'pysvn' from 'pysvn/__init__.pyc'> <Client object at 0x7fa530523ab8>

With patch:
....
Link pysvn/_pysvn_2_7.so
<module 'pysvn' from 'pysvn/__init__.pyc'> <Client object at 0x7fd3d9d138e8>

« Previous message in topic | 1 of 11 | Next message in topic »

Messages

Show all messages in topic

[Issue 207] New - Replace explicit linking against Python framework with dynamic lookup semenov Ilya Semenov 2016-05-12 21:17:52 PDT
     [Issue 207] Replace explicit linking against Python framework with dynamic lookup semenov Ilya Semenov 2016-05-12 21:19:46 PDT
     [Issue 207] Replace explicit linking against Python framework with dynamic lookup barryscott Barry Scott 2016-05-14 05:14:28 PDT
     [Issue 207] Replace explicit linking against Python framework with dynamic lookup barryscott Barry Scott 2016-05-13 06:05:53 PDT
     [Issue 207] Replace explicit linking against Python framework with dynamic lookup semenov Ilya Semenov 2016-05-14 01:34:39 PDT
     [Issue 207] Replace explicit linking against Python framework with dynamic lookup barryscott Barry Scott 2016-05-14 02:12:38 PDT
     [Issue 207] Replace explicit linking against Python framework with dynamic lookup barryscott Barry Scott 2016-05-14 02:27:12 PDT
     [Issue 207] Replace explicit linking against Python framework with dynamic lookup semenov Ilya Semenov 2016-05-14 02:37:03 PDT
     [Issue 207] Replace explicit linking against Python framework with dynamic lookup barryscott Barry Scott 2016-05-14 02:46:26 PDT
     [Issue 207] Replace explicit linking against Python framework with dynamic lookup semenov Ilya Semenov 2016-05-14 05:05:23 PDT
     [Issue 207] Replace explicit linking against Python framework with dynamic lookup semenov Ilya Semenov 2016-05-14 05:08:24 PDT
Messages per page: