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


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

Re: Build Python 2.7 version >= 2.7.15 on Debian 9

From Jeremy Stanley <fungi@yuggoth.org>
Newsgroups linux.debian.maint.python
Subject Re: Build Python 2.7 version >= 2.7.15 on Debian 9
Date 2020-04-03 23:50 +0200
Message-ID <zRCml-nG-7@gated-at.bofh.it> (permalink)
References <zRBqi-8fS-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On 2020-04-03 23:21:25 +0300 (+0300), ellis.magaud@pp.inet.fi wrote:
[...]
> What is the correct way to build a clean version of python2.7 on
> Debian9 that will be compatible with already packaged python2.7
> modules?

The Python modules with C extensions packaged in Debian are built
against the Python development library headers for the version of
the Python interpreter which is packaged in Debian. If you replace
the interpreter with a different version I expect you'll at least
have to relink, if not entirely recompile, those extensions against
newer headers. I don't personally know a way to go about that short
of rebuilding those additional modules from source. You might be
better off switching to a newer version of Debian which provides a
newer Python 2.7 release and has the other packages you need already
built against it, or using some other Python package management
solution like conda or virtualenv.
-- 
Jeremy Stanley

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


Thread

Build Python 2.7 version >= 2.7.15 on Debian 9 "ellis.magaud@pp.inet.fi" <ellis.magaud@pp.inet.fi> - 2020-04-03 22:50 +0200
  Re: Build Python 2.7 version >= 2.7.15 on Debian 9 Jeremy Stanley <fungi@yuggoth.org> - 2020-04-03 23:50 +0200

csiph-web