[issue22882] [patch] Linux packages you need to compile Python with all dependencies
New submission from Ludovic Gasc:
Hi,
To install easily Python 3.4.2 on Linux, I use Pythonz: http://saghul.github.io/pythonz/
I've discovered that, depends on the packages already installed on Linux, I don't have the same Python each time after compilation on servers.
Some features could missing, like pip, if you don't install some packages.
I've made a pull request in Pythonz with the list of packages you need to avoid that: https://github.com/saghul/pythonz#before-installing-pythons-via-pythonz
But, for me, this packages list should be in official Python documentation directly.
I've tested this packages list on Debian (Squeeze, Wheezy, Jessie, Sid), Ubuntu (12.04, 14.04) and CentOS 6.
Thanks for the merge.
Regards.
----------
assignee: docs@python
components: Documentation
files: build_dep_python.patch
keywords: patch
messages: 231245
nosy: Ludovic.Gasc, docs@python
priority: normal
severity: normal
status: open
title: [patch] Linux packages you need to compile Python with all dependencies
type: enhancement
versions: Python 3.4, Python 3.5, Python 3.6
Added file: http://bugs.python.org/file37208/build_dep_python.patch
_______________________________________
Python tracker
R. David Murray added the comment:
I don't think it is a good idea for us to try to track which packages are needed and what they are named by the various downstreams. We could document the optional modules by project name, though. Note also that the devguide does point to the "umbrella" downstream packages that pull in the dependencies needed to build python, where those exist.
It is likely that that section should cross link to the devguide. The devguide didn't exist when it was written.
----------
nosy: +r.david.murray
_______________________________________
Python tracker
Ludovic Gasc added the comment:
I'm not agree with you: I've lost a lot of time to find all packages I need for that, I've merged information from several blog posts.
I imagine that I'm not alone with this problem.
If you move this information in devguide, most persons don't find this.
Moreover, the names of packages are pretty stable across Linux versions, I don't think we will have a lot of exceptions.
----------
_______________________________________
Python tracker
Andrew Svetlov added the comment:
For Ubuntu/debian you can just run:
$ sudo apt-get build-dep python3
----------
nosy: +asvetlov
_______________________________________
Python tracker
Ludovic Gasc added the comment:
$ sudo apt-get build-dep python3
Good to know, I will test for my next deployment.
The only problem with that, if you use a old Debian with a Python3 that need less dependencies that actual version.
But you can add a line for that in documentation if we have the case one day.
----------
_______________________________________
Python tracker
R. David Murray added the comment:
The fact that it cost you a lot of time buttresses my point. Any documentation we write is likely to get stale; it is only the downstream that knows when these things change and could maintain such a document. And the easy answer is as Andrew indicated, which is maintained by downstream. That said, if the various downstreams are using a unified set of names, then the equation would change. The fact that you had separate sections for separate distributions argues that that is not (yet?) the case, though.
The build instructions in the devguide are more likely to be kept up to date, which is why I suggested we should cross link to them from the main build documentation.
----------
_______________________________________
Python tracker
Changes by R. David Murray
Changes by R. David Murray
participants (3)
-
Andrew Svetlov
-
Ludovic Gasc
-
R. David Murray