Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #12521

Re: pkg-config of python3

From Stefano Rivera <stefanor@debian.org>
Newsgroups linux.debian.maint.python
Subject Re: pkg-config of python3
Date 2020-04-24 20:00 +0200
Message-ID <zZaMh-1Kr-13@gated-at.bofh.it> (permalink)
References <zZ1pE-4BL-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi PICCA (2020.04.24_07:33:48_+0000)
> so it seems that the program is not linked with the Python3 library
> 
> I use pkg-config to obtain the library
> 
> picca@2a02-8420-6c55-6500-d012-4688-0bee-a0c6:~/hkl/contrib/haskell$ pkg-config --libs python3
> 
> picca@2a02-8420-6c55-6500-d012-4688-0bee-a0c6:~/hkl/contrib/haskell$ pkg-config --libs python2
> -lpython2.7

If you want to embed python in an application, you need to use python3-embed.pc
Or python3-config --embed

See:
https://docs.python.org/3/whatsnew/3.8.html#debug-build-uses-the-same-abi-as-release-build

Python libraries should not be linked to libpython, as that's present
when they're loaded into the interpreter.

SR

-- 
Stefano Rivera
  http://tumbleweed.org.za/
  +1 415 683 3272

Back to linux.debian.maint.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

pkg-config of python3 PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2020-04-24 10:00 +0200
  Re: pkg-config of python3 Stefano Rivera <stefanor@debian.org> - 2020-04-24 20:00 +0200
    RE:pkg-config of python3 PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2020-04-24 20:50 +0200
      Re: pkg-config of python3 Simon McVittie <smcv@debian.org> - 2020-04-24 21:00 +0200

csiph-web