From a52d2fa765096f1afd6c477e0f51ec3d6cb55814 Mon Sep 17 00:00:00 2001 From: Ralf Gommers Date: Sun, 12 Jun 2016 21:31:08 +0200 Subject: [PATCH] BUG: fix issue on OS X with Python 3.x where npymath.ini was not installed. Closes gh-7707. Happened for `pip install .` or another location (including a remote git repo). --- numpy/distutils/misc_util.py | 12 ++++++------ numpy/distutils/tests/test_misc_util.py | 9 ++++++++- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/numpy/distutils/misc_util.py b/numpy/distutils/misc_util.py index 79b6f25f3bf9..8136f8f4f0dd 100644 --- a/numpy/distutils/misc_util.py +++ b/numpy/distutils/misc_util.py @@ -126,13 +126,13 @@ def allpath(name): return os.path.join(*splitted) def rel_path(path, parent_path): - """Return path relative to parent_path. - """ - pd = os.path.abspath(parent_path) - apath = os.path.abspath(path) - if len(apath)