Skip to content

Commit

Permalink
splitting extra args to avoid #5 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
Martín Gaitán committed Oct 8, 2013
1 parent 7bd4328 commit bf644cf
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions fortranmagic.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
from distutils.ccompiler import compiler_class
from distutils.command.build_ext import build_ext

__version__ = '0.4.1'
__version__ = '0.4.2dev'
fcompiler.load_all_fcompiler_classes()


Expand Down Expand Up @@ -306,14 +306,16 @@ def fortran(self, line, cell):
if isinstance(v, basestring)]
f2py_args.extend(kw)

if args.extra:
f2py_args.append(' '.join(map(unquote, args.extra)))

# link resource
if args.link:
resources = ['--link-%s' % r for r in args.link]
f2py_args.extend(resources)

if args.extra:
extras = ' '.join(map(unquote, args.extra))
extras = extras.split()
f2py_args.extend(extras)

code = cell if cell.endswith('\n') else cell+'\n'
key = code, line, sys.version_info, sys.executable, f2py2e.f2py_version

Expand Down

0 comments on commit bf644cf

Please sign in to comment.