Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Respect environment variable MAKE
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Sep 16, 2016
1 parent 3a8cc0e commit 0dd9c50
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
from __future__ import print_function

import os, sys, time, errno, platform, subprocess, glob
from distutils.core import setup

from distutils.core import setup, DistutilsSetupError

def excepthook(*exc):
"""
Expand Down Expand Up @@ -107,9 +106,11 @@ def excepthook(*exc):
### Generate some Python/Cython sources
#########################################################

status = subprocess.call("make -f generate_py_source.mk", shell=True)
make = os.environ.get("MAKE", 'make')
make_cmdline = make + " -f generate_py_source.mk"
status = subprocess.call(make_cmdline, shell=True)
if status != 0:
raise DistutilsSetupError("make -f generate_py_source.mk failed")
raise DistutilsSetupError("{} failed".format(make_cmdline))

#########################################################
### Testing related stuff
Expand Down

0 comments on commit 0dd9c50

Please sign in to comment.