[setup] use ``gmake`` instead of ``make`` on freebsd

Once all the appropriate packages are installed (devel/py-qt4, textproc/asciidoc, and textproc/xmlto at least), "python setup.py build" works if it runs gmake instead of (bsd) make. I assume this holds for other FreeBSD versions (certainly should for 9.x).

mail:http://lists.logilab.org/pipermail/python-projects/2013-May/003466.html
authorChris Torek <chris.torek@gmail.com>
changeset8aa4cdf51939
branchstable
phasepublic
hiddenno
parent revision#a802dac29c7e [qt] full support for unicode with utf-8 encoding (closes #142378)
child revision#ff735a2a686c [qt4] fix non displayed working directory on refreshing (closes #137714)
files modified by this revision
setup.py
# HG changeset patch
# User Chris Torek <chris.torek@gmail.com>
# Date 1367827864 -7200
# Mon May 06 10:11:04 2013 +0200
# Branch stable
# Node ID 8aa4cdf5193952c3b91cb59b4f9fdfcc5e70d44f
# Parent a802dac29c7e1b8d8b1f72d1c6739921c26bbf06
[setup] use ``gmake`` instead of ``make`` on freebsd

Once all the appropriate packages are installed (devel/py-qt4,
textproc/asciidoc, and textproc/xmlto at least), "python setup.py build"
works if it runs gmake instead of (bsd) make. I assume this holds for
other FreeBSD versions (certainly should for 9.x).

:mail: http://lists.logilab.org/pipermail/python-projects/2013-May/003466.html

diff --git a/setup.py b/setup.py
@@ -161,12 +161,16 @@
1          self.set_undefined_options('build', ('build_doc', 'build_dir'))
2 
3      def run(self):
4          # be sure to compile man page
5          self.mkpath(self.build_dir)
6 +        if sys.platform.startswith('freebsd'):
7 +            make_cmd = 'gmake'
8 +        else:
9 +            make_cmd = 'make'
10          try:
11 -            check_call(['make', '-C', self.build_dir,
12 +            check_call([make_cmd, '-C', self.build_dir,
13                          '-f', '../../doc/Makefile', 'VPATH=../../doc'])
14          except:
15              if not py2exe:
16                  # does not make sense (either because of windows vs toolchain
17                  # or we don't need the doc in the installer)