[oneiric] python-imaging needs to be multiarch-aware
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-imaging (Debian) |
Fix Released
|
Unknown
|
|||
python-imaging (Ubuntu) |
Fix Released
|
Medium
|
Barry Warsaw |
Bug Description
This is the content of the _imaging compiled module from Oneiric desktop amd64 [20110624]:
>>> import _imaging
>>> dir(_imaging)
['__doc__', '__file__', '__name__', '__package__', 'bit_decoder', 'blend', 'convert', 'copy', 'crc32', 'draw', 'effect_
And, this is the content after I dist-upgrade:
['__doc__', '__file__', '__name__', '__package__', 'bit_decoder', 'blend', 'convert', 'copy', 'crc32', 'draw', 'effect_
Notice how the latter no longer contains the zip encoder and decoder... this is causing some dependent projects to fail building, like Launchpad itself, with the exception: IOError: decoder zip not available
summary: |
- [oneiric] IOError: decoder zip not available + [oneiric] python-imaging needs to be multiarch-aware |
Changed in python-imaging (Ubuntu): | |
status: | New → Confirmed |
assignee: | nobody → Barry Warsaw (barry) |
milestone: | none → oneiric-alpha-2 |
importance: | Undecided → Medium |
Changed in python-imaging (Ubuntu): | |
milestone: | oneiric-alpha-2 → oneiric-alpha-3 |
Changed in python-imaging (Debian): | |
status: | Unknown → Fix Released |
Modifying setup.py to know about the new architecture specific lib directories seems to fix the problem. Here is an example diff where the architecture is hard coded, I'm sure there's precedent in other packages to patch the file properly:
=== modified file 'setup.py'
add_ directory( library_ dirs, "/opt/local/lib")
add_ directory( include_ dirs, "/opt/local/ include" )
--- setup.py 2009-11-20 19:22:59 +0000
+++ setup.py 2011-07-06 20:56:04 +0000
@@ -147,6 +147,9 @@
+ elif sys.platform == "linux2": library_ dirs, "/usr/lib/ x86_64- linux-gnu" )
add_directory (library_ dirs, "/usr/local/lib")
+ add_directory(
+
# FIXME: check /opt/stuff directories here?