[yt-svn] commit/yt: ngoldbaum: Fixing setup.py for the case when the fortran kd tree isn't built.
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Fri Mar 15 13:41:46 PDT 2013
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/commits/7e5edbc1482c/
changeset: 7e5edbc1482c
branch: stable
user: ngoldbaum
date: 2013-03-13 00:46:49
summary: Fixing setup.py for the case when the fortran kd tree isn't built.
affected #: 1 file
diff -r 5ad9891f2f0051b5d6234aafe9d7adc4aa265700 -r 7e5edbc1482c0a52360fb28ecd360da0c11eb2a7 setup.py
--- a/setup.py
+++ b/setup.py
@@ -18,6 +18,9 @@
from distutils.core import Command
from distutils.spawn import find_executable
+def find_fortran_deps():
+ return (find_executable("Forthon"),
+ find_executable("gfortran"))
class BuildForthon(Command):
@@ -41,9 +44,7 @@
def run(self):
"""runner"""
- Forthon_exe = find_executable("Forthon")
- gfortran_exe = find_executable("gfortran")
-
+ (Forthon_exe, gfortran_exe) = find_fortran_deps()
if None in (Forthon_exe, gfortran_exe):
sys.stderr.write(
"fKDpy.so won't be built due to missing Forthon/gfortran\n"
@@ -193,9 +194,13 @@
class my_install_data(np_install_data.install_data):
def run(self):
- self.distribution.data_files.append(
- ('yt/utilities/kdtree', ['yt/utilities/kdtree/fKDpy.so'])
- )
+ (Forthon_exe, gfortran_exe) = find_fortran_deps()
+ if None in (Forthon_exe, gfortran_exe):
+ pass
+ else:
+ self.distribution.data_files.append(
+ ('yt/utilities/kdtree', ['yt/utilities/kdtree/fKDpy.so'])
+ )
np_install_data.install_data.run(self)
class my_build_py(build_py):
Repository URL: https://bitbucket.org/yt_analysis/yt/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the yt-svn
mailing list