diff options
author | David Cournapeau <cournape@gmail.com> | 2009-03-11 13:23:44 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2009-03-11 13:23:44 +0000 |
commit | a082b6c2ece92b3a2ed572d55becd3546f9c801d (patch) | |
tree | 4fec43b035445859ac238d9a6fb2178fa9159177 /numpy/distutils/command/build_src.py | |
parent | a2c67987055400e49c056f6301317a36dca5a244 (diff) | |
download | numpy-a082b6c2ece92b3a2ed572d55becd3546f9c801d.tar.gz |
Ugly hack to workaround some bug in mingw to make VS 2003 work with gfortran.
Diffstat (limited to 'numpy/distutils/command/build_src.py')
-rw-r--r-- | numpy/distutils/command/build_src.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/numpy/distutils/command/build_src.py b/numpy/distutils/command/build_src.py index 4ba3f0a9a..6d18f64e6 100644 --- a/numpy/distutils/command/build_src.py +++ b/numpy/distutils/command/build_src.py @@ -275,6 +275,13 @@ class build_src(build_ext.build_ext): #for f in h_files: # self.distribution.headers.append((package,f)) + hack_name = os.path.join(os.path.dirname(__file__), + os.pardir, "mingw", "gfortran_vs2003_hack.c") + target_c = os.path.join(self.build_src, + "gfortran_vs2003_hack.c") + import shutil + shutil.copy(hack_name, target_c) + #sources.append(target_c) ext.sources = sources def generate_sources(self, sources, extension): |