This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: build-deps instructions for Ubuntu
Type: Stage: resolved
Components: Devguide Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: Glenn.Jones, barry, eric.araujo, ezio.melotti, python-dev, r.david.murray
Priority: normal Keywords: patch

Created on 2014-04-14 14:18 by Glenn.Jones, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
ubuntu-build-dep.patch Glenn.Jones, 2014-04-14 14:49
issue21215.patch Glenn.Jones, 2014-04-14 21:22
Messages (9)
msg216080 - (view) Author: Glenn Jones (Glenn.Jones) * Date: 2014-04-14 14:18
The package listed in the dev guide may not exist depending on the version of Ubuntu. It may be necessary to use python3.3 or python3.4.
msg216086 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2014-04-14 14:52
Since you are saying that it is "sometimes" necessary to use a different package, perhaps we should be saying that in the devguide?  And providing the possible names.
msg216088 - (view) Author: Glenn Jones (Glenn.Jones) * Date: 2014-04-14 15:04
On Ubuntu 13.10, using python3 did not install the dependencies (apt reported using the python3-defaults source package instead of python3). The python3.4, package does not exist, but the python3.3 package did work.

This may be that we're specifying the wrong package or that the upstream Ubuntu package has a bug or maybe we just need to use the specific package depending on what's available in the ubuntu version.

barry, what do you think?
msg216115 - (view) Author: Barry A. Warsaw (barry) * (Python committer) Date: 2014-04-14 17:12
The `python3` binary package is a sort of meta package that brings in the interpreter (and some ancillary stuff) for all supported Python 3 versions.  For Ubuntu 14.04 that will be just python3.4.  But if you want to build the interpreter from source (e.g. an hg clone) on an Ubuntu system, you'll need to bring in the Build-Depends for the specific interpreter package you want.  That would be python3.4 or python3.3, etc.  It's generally okay to `sudo apt-get build-dep python3.3` on a-pre-14.04 Ubuntu to get all the build-deps for Python 3.4.  There maybe something you'll need to install manually, but I can't think of what that is.
msg216134 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2014-04-14 17:47
OK, so the devguide currently has 

  sudo apt-get build-dep python3

which did something on Glenn's machine, but did not enable him to build the optional packages.  So the question is, what should we put in the devguide as the correct build-dep to install?  Is it build-dep for the same version as the system python for that particular system?
msg216143 - (view) Author: Barry A. Warsaw (barry) * (Python committer) Date: 2014-04-14 18:07
On Apr 14, 2014, at 05:47 PM, R. David Murray wrote:

>OK, so the devguide currently has 
>
>  sudo apt-get build-dep python3
>
>which did something on Glenn's machine, but did not enable him to build the
>optional packages.  So the question is, what should we put in the devguide as
>the correct build-dep to install?  Is it build-dep for the same version as
>the system python for that particular system?

I guess I would recommend:

$ sudo apt-get build-dep python3.4

with a fallback to

$ sudo apt-get build-dep python3.3

The drag is if they have a really old version which only has python3.2, or an
even newer future version that has only python3.5.
msg216222 - (view) Author: Glenn Jones (Glenn.Jones) * Date: 2014-04-14 21:22
Uploaded new patch with a little more about getting build-deps installed.
msg216263 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2014-04-15 01:27
New changeset 84ccbb961f26 by R David Murray in branch 'default':
#21215: update debian/ubuntu build-dep instructions.
http://hg.python.org/devguide/rev/84ccbb961f26
msg216265 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2014-04-15 01:29
Thanks, Glenn.
History
Date User Action Args
2022-04-11 14:58:01adminsetgithub: 65414
2014-04-15 01:29:09r.david.murraysetstatus: open -> closed
resolution: fixed
messages: + msg216265

stage: resolved
2014-04-15 01:27:32python-devsetnosy: + python-dev
messages: + msg216263
2014-04-14 21:22:44Glenn.Jonessetfiles: + issue21215.patch

messages: + msg216222
2014-04-14 18:07:06barrysetmessages: + msg216143
2014-04-14 17:57:20eric.araujosetnosy: + eric.araujo
2014-04-14 17:47:39r.david.murraysetmessages: + msg216134
2014-04-14 17:12:12barrysetmessages: + msg216115
2014-04-14 15:04:17Glenn.Jonessetmessages: + msg216088
2014-04-14 14:52:30r.david.murraysetnosy: + barry, r.david.murray
messages: + msg216086
2014-04-14 14:49:16Glenn.Jonessetfiles: + ubuntu-build-dep.patch
keywords: + patch
2014-04-14 14:18:49Glenn.Jonescreate