diff options
| author | Matti Picus <matti.picus@gmail.com> | 2020-05-20 13:20:40 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-20 12:20:40 +0200 |
| commit | f6196441b7240c0fa862790efdfb1a62bf557744 (patch) | |
| tree | 815e3a0e28760a825b0510acfd92cc4826ff503d /numpy/distutils/command | |
| parent | 29f0b532988640cf2441b5eeaf57f87296ea111f (diff) | |
| download | numpy-f6196441b7240c0fa862790efdfb1a62bf557744.tar.gz | |
BUG: relpath fails for different drives on windows (#16308)
* BUG: relpath fails for different drives on windows
* ENH: always use abspath
Diffstat (limited to 'numpy/distutils/command')
| -rw-r--r-- | numpy/distutils/command/build_ext.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/distutils/command/build_ext.py b/numpy/distutils/command/build_ext.py index 078b8fb59..d53285c92 100644 --- a/numpy/distutils/command/build_ext.py +++ b/numpy/distutils/command/build_ext.py @@ -520,7 +520,7 @@ class build_ext (old_build_ext): # Wrap unlinkable objects to a linkable one if unlinkable_fobjects: - fobjects = [os.path.relpath(obj) for obj in unlinkable_fobjects] + fobjects = [os.path.abspath(obj) for obj in unlinkable_fobjects] wrapped = fcompiler.wrap_unlinkable_objects( fobjects, output_dir=self.build_temp, extra_dll_dir=self.extra_dll_dir) |
