diff options
author | mattip <matti.picus@gmail.com> | 2016-07-15 08:20:21 -0500 |
---|---|---|
committer | mattip <matti.picus@gmail.com> | 2016-07-18 19:28:12 +0300 |
commit | ab4f8284086a74c372802b62bb276fabb05308c7 (patch) | |
tree | 5fe086260aaf5dbeab4ceeebf3ab1da9470e5789 /numpy/distutils/fcompiler | |
parent | 52e09e86cf4085cbfed90d81606566a282162554 (diff) | |
download | numpy-ab4f8284086a74c372802b62bb276fabb05308c7.tar.gz |
ENH: Support for python runtime with no Makefile, like PyPy
Diffstat (limited to 'numpy/distutils/fcompiler')
-rw-r--r-- | numpy/distutils/fcompiler/gnu.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/numpy/distutils/fcompiler/gnu.py b/numpy/distutils/fcompiler/gnu.py index 9ba5759df..7c3dc4162 100644 --- a/numpy/distutils/fcompiler/gnu.py +++ b/numpy/distutils/fcompiler/gnu.py @@ -126,8 +126,13 @@ class GnuFCompiler(FCompiler): # from it. import distutils.sysconfig as sc g = {} - filename = sc.get_makefile_filename() - sc.parse_makefile(filename, g) + try: + get_makefile_filename = sc.get_makefile_filename + except AttributeError: + pass # i.e. PyPy + else: + filename = get_makefile_filename() + sc.parse_makefile(filename, g) target = g.get('MACOSX_DEPLOYMENT_TARGET', '10.3') os.environ['MACOSX_DEPLOYMENT_TARGET'] = target if target == '10.3': |