Closed Bug 684775 Opened 13 years ago Closed 13 years ago

ensure that `make build` links to python2.6

Categories

(Cloud Services :: Server: Other, enhancement)

x86
Linux
enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: rfkelly, Unassigned)

Details

(Whiteboard: [qa+])

Attachments

(1 file)

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.
Docs updated in https://hg.mozilla.org/services/docs/rev/46d2749c39d5
Status: UNCONFIRMED → RESOLVED
Closed: 13 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.

Attachment

General

Created:
Updated:
Size: