Python3 library path, no symlink in /opt/local/lib?

Ruben Di Battista rubendibattista at gmail.com
Sat Aug 3 09:14:23 UTC 2019


In any case I think that the `python27` and the `python3` ports need to behave at the same way (that means also removing the symlink of the library into /opt/local/lib from the `python27` or adding it in the `python3` ports). Symmetry is good. :)

Or is there any other reason why they behave differently?

          _   
-.     .´  |∞∞∞∞
  ',  ;    |∞∞∞∞∞∞
    ˜˜     |∞∞∞∞∞∞∞∞∞ RdB
    ,.,    |∞∞∞∞∞∞
  .'   '.  |∞∞∞∞
-'       `’

https://rdb.is

On 2 August 2019 at 00:21:34, Ruben Di Battista (rubendibattista at gmail.com) wrote:

Ok, 
I fixed the cmake invocation that before was looking for the python library in /opt/local/lib. It was hardcoded in the cmake invocation. Now it looks into /opt/local/Library/Frameworks/Python.framework/Versions/{version}/lib as expected.

Thanks Joshua for putting me on the right path! :)
          _    
-.     .´  |∞∞∞∞
  ',  ;    |∞∞∞∞∞∞
    ˜˜     |∞∞∞∞∞∞∞∞∞ RdB
    ,.,    |∞∞∞∞∞∞
  .'   '.  |∞∞∞∞
-'       `’

https://rdb.is

On 1 August 2019 at 01:11:26, Joshua Root (jmr at macports.org) wrote:

On 2019-8-1 08:45 , Ruben Di Battista wrote:
> :info:configure -- Looking for feenableexcept - not found
> :info:configure -- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
> :info:configure -- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
> :info:configure -- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
> :info:configure -- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
> - Success
> :info:configure -- Performing Test COMPILER_HAS_DEPRECATED_ATTR
> :info:configure -- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
> :info:configure -- Found PythonLibs: /opt/local/lib/libpython3.7.dylib
>
> ```
>
> So it finds Python 3.7, but the library path is wrong. How is this
> possible? Anyone can give me an hint?

No idea, you'd have to look at what its CmakeLists is doing. It's
clearly not using any of the recommended ways to find out how to link
against python though:

% python3.7-config --ldflags
-L/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/config-3.7m-darwin
-lpython3.7m -ldl -framework CoreFoundation

% pkg-config --libs python-3.7
-L/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib
-lpython3.7m

Hopefully there is a cmake variable that can be set to influence where
it looks.

- Josh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20190803/d7bb4354/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Message signed with OpenPGP using AMPGpg
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20190803/d7bb4354/attachment.sig>


More information about the macports-dev mailing list