If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

ensure that `make build` links to python2.6

RESOLVED FIXED

Status

Cloud Services
Server: Other
--
enhancement
RESOLVED FIXED
6 years ago
6 years ago

People

(Reporter: rfkelly, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [qa+])

Attachments

(1 attachment)

(Reporter)

Description

6 years ago
Created attachment 558363 [details] [diff] [review]
docs patch describing how to run `make build` in a py26 venv

I just went through a clean checkout and build of server-full following the guide at:

  http://docs.services.mozilla.com/server-devguide/setup.html

On an Ubuntu Natty box, the system python is v2.7 and the default `make build` created a virtualenv linked to python2.7.  This then fails several testcases.  You have to explicitly install python2.6 and use it when running `make build`.

I see two different options for dealing with this.

1) Just document that you have to run `make build` inside a python2.6 environment.  The attached docs patch summarizes the approach that worked for me.

2) Have the Makefile forcibly link to the appropriate version, by adding "--python=python2.6" to the virtualenv command-line.  I've also tested this approach and it seems to work for me.


 Cheers,

    Ryan
Looks good.

When you submit a patch you can ask for a review by adding a review ? flag, with the email of the reviewer. We all have aliases to make this easier, so for example if you want me to review your flag you can fill the review like this:   review ? :tarek

Also, you need to ask for a commit access for hg.mozilla.org/services, by filing an IT bug. You need someone to vouch for you. Anyone from the team can vouch for you.
(Reporter)

Comment 2

6 years ago
Docs updated in https://hg.mozilla.org/services/docs/rev/46d2749c39d5
Status: UNCONFIRMED → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
Component: General → Server: Other
QA Contact: general → other-server
Whiteboard: [qa+]
You need to log in before you can comment on or make changes to this bug.