Skip to content

Commit

Permalink
Old ubuntu doesn't have dpkg-architecture installed by default
Browse files Browse the repository at this point in the history
  • Loading branch information
wiredfool committed Nov 13, 2017
1 parent 6f2e2d8 commit b8733a7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,9 @@ def build_extensions(self):

elif sys.platform.startswith("linux"):
arch_tp = (plat.processor(), plat.architecture()[0])
# This should be correct on debian derivatives.
if plat.dist()[0].lower() in ('debian', 'ubuntu'):
# This should be correct on debian.
# Ubunbu <= Precise fails, >= Trusty succeeds.
if plat.dist()[0].lower() == 'debian':
# If this doesn't work, don't just silently patch
# downstream because it's going to break when people
# try to build pillow from source instead of
Expand Down

0 comments on commit b8733a7

Please sign in to comment.