Closed Bug 559085 Opened 14 years ago Closed 14 years ago

[amo] Make a system package for jinja 2.3.1

Categories

(Infrastructure & Operations Graveyard :: WebOps: Other, task)

All
Other
task
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jbalogh, Assigned: oremj)

References

Details

Jinja has optional C speedups that make template auto-escaping move faster.  We need to compile that, so we need a system package.

Right now we're on 2.3.1, but 2.4 just came out so we'll move to that soon (though not immediately).
Assignee: server-ops → shyam
Assignee: shyam → jeremy.orem+bugs
Depends on: 560444
Done and installed on khan and preview. Let me know when you want these installed to the production machines.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
(In reply to comment #1)
> Done and installed on khan and preview. Let me know when you want these
> installed to the production machines.

Please add it to the cron job machine (mradm02?) as well.

Reopening because fox2mike installed python 2.6.5 and it looks like this needs to be rebuilt.

ImportError: /usr/lib/python2.6/site-packages/_pylibmc.so: undefined symbol: memcached_server_list

Here's a test to make sure we're good: 
python26 -c 'import pylibmc; print pylibmc.__version__'
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
(In reply to comment #2)
> Here's a test to make sure we're good: 
> python26 -c 'import pylibmc; print pylibmc.__version__'

That should be:
python -c 'import jinja2; print jinja2.__version__'
Are we sticking with the 2.6.5 rpm or reverting to 2.6.2?
(In reply to comment #4)
> Are we sticking with the 2.6.5 rpm or reverting to 2.6.2?

I think the 2.6.5 rpm needs to be redone so it doesn't crash.  2.6.2 still has our crashes in it
It turns out that Jinja doesn't build the C speedups by default.  We need to pass --with-speedups to get it going:

python setup.py --with-speedups build

In a shining note for Python option parsing, --with-speedups cannot come after build/install/whatever command you're calling.
This package has been installed across all the AMO machines.
Status: REOPENED → RESOLVED
Closed: 14 years ago14 years ago
Resolution: --- → FIXED
Component: Server Operations: Web Operations → WebOps: Other
Product: mozilla.org → Infrastructure & Operations
Product: Infrastructure & Operations → Infrastructure & Operations Graveyard
You need to log in before you can comment on or make changes to this bug.