-
-
Notifications
You must be signed in to change notification settings - Fork 9.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
f2py.compile issues (#7683) #7791
Conversation
@@ -35,8 +35,11 @@ def compile(source, | |||
additional parameters passed to f2py | |||
verbose: bool, optional | |||
print f2py output to screen | |||
source_fn : str, optional | |||
filename where the fortran source is dumped |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could use a bit more explanation. I can't figure out what "dumped" means in this context ;) Should document the default, here and for the other optional arguments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see your point :)
source_fn : str, optional
name of the file where the fortran source is written
before being compiled. The default is to use a temporary
file with an extension provided by the `extension` parameter
Looks generally good. Could you also fix the other |
Good point. Will do and then update the PR. Thanks for the review! |
If you put it in |
@charris I think i've addressed all your comments (apart from the context manager in |
""" | ||
Import and return module | ||
|
||
name : str |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs the heading
Parameters
-----------------
See doc/HOWTO_DOCUMENT.rst.txt
or other functions for docstring.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
Couple of style nits. Also, please squash the commits using |
8adc2ac
to
e805f16
Compare
All done, including the squashing. Also renamed |
filedescriptor) | ||
info_module = npy_load_module(fullname + '.info', | ||
info_file, | ||
filedescriptor) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops, will fix that indentation, sorry [DONE]
e805f16
to
add63f1
Compare
The new |
add63f1
to
849f2b7
Compare
ok thanks (and sorry there was yet one more thing i forgot). |
""" | ||
Load a module. | ||
|
||
.. versionadded:: 1.11.12 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo, I don't think we are 12 yet ;), seems to be 1.11.2
…c for f2py.compile (issue numpy#7683)
849f2b7
to
a05b653
Compare
@seberg, thanks. The |
Thanks @bertrand-l . |
For next time, note that your commit message summary line is too long. Lines should be kept <= 72 characters. |
Thanks @charris for the review and merge (and sorry it took so many iterations and comments) |
f2py.compile
's doctstring a description of thesource_fn
argumentimp.load_module
indistutil.misc_util
with Python 3That leaves one issue in #7683 that I have not yet figured out:
Looks like some string escaping issue, but nothing jumped at me looking at
distutil.exec_command.{exec_command,find_executable}
and I don't have a windows machine to test on.