summaryrefslogtreecommitdiff
path: root/numpy/f2py/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/f2py/__init__.py')
-rw-r--r--numpy/f2py/__init__.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/numpy/f2py/__init__.py b/numpy/f2py/__init__.py
index ef4d54e9d..17a575927 100644
--- a/numpy/f2py/__init__.py
+++ b/numpy/f2py/__init__.py
@@ -15,11 +15,12 @@ from . import diagnose
run_main = f2py2e.run_main
main = f2py2e.main
+
def compile(source,
- modulename = 'untitled',
- extra_args = '',
- verbose = 1,
- source_fn = None
+ modulename='untitled',
+ extra_args='',
+ verbose=1,
+ source_fn=None
):
''' Build extension module from processing source with f2py.
Read the source of this function for more information.
@@ -35,9 +36,9 @@ def compile(source,
f.write(source)
f.flush()
- args = ' -c -m %s %s %s'%(modulename, f.name, extra_args)
+ args = ' -c -m %s %s %s' % (modulename, f.name, extra_args)
c = '%s -c "import numpy.f2py as f2py2e;f2py2e.main()" %s' % \
- (sys.executable, args)
+ (sys.executable, args)
s, o = exec_command(c)
finally:
f.close()