[Python-Dev] Debian wheezy, amd64: make not finding files for bz2 and other packages (original) (raw)
Christian Heimes lists at cheimes.de
Sat May 5 17:23:24 CEST 2012
- Previous message: [Python-Dev] Debian wheezy, amd64: make not finding files for bz2 and other packages
- Next message: [Python-Dev] Debian wheezy, amd64: make not finding files for bz2 and other packages
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Am 05.05.2012 16:13, schrieb Antoine Pitrou:
Perhaps setup.py should detect that? It shouldn't be too hard to parse /etc/debianversion in order to know whether the system is multiarch-enabled. That would avoid confusing build failures.
This sounds like a good idea. dpkg-architecture is available on older version of Debian and Ubuntu but doesn't support DEB_HOST_MULTIARCH (which is fine).
We could parse the output of platform.dist() but it's easier to just search for the apt-get command:
if not find_executable('apt-get'): # no Debian based distro return if not find_executable('dpkg-architecture'): print "Warning, Debian detected but no dpkg-architecture found. Please run 'sudo apt-get install build-essential'. return
Christian
- Previous message: [Python-Dev] Debian wheezy, amd64: make not finding files for bz2 and other packages
- Next message: [Python-Dev] Debian wheezy, amd64: make not finding files for bz2 and other packages
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]