Skip to content
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

MAINT: rename moduleTNC extension back to _moduleTNC #15270

Merged
merged 1 commit into from
Dec 23, 2021

Conversation

rgommers
Copy link
Member

The underscore was recently removed, see gh-14882.
This change is undesired, because it's a private namespace.

@rgommers rgommers added scipy.optimize maintenance Items related to regular maintenance tasks backport-candidate This fix should be ported by a maintainer to previous SciPy versions. labels Dec 23, 2021
@rgommers
Copy link
Member Author

Ah, ugh:

ImportError: dynamic module does not define module export function (PyInit__moduleTNC)

Guess that was your reason to drop the underscore - when moving to Cython, the name is picked automatically based on the filename - so that filename should gain the underscore as well.

The underscore was recently removed, see scipygh-14882.
This change is undesired, because it's a private namespace.
@@ -32,7 +32,7 @@
(as a list of values); or None, to abort the minimization.
"""

from scipy.optimize import moduleTNC
from scipy.optimize import _moduleTNC as moduleTNC
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a straight revert; I considered dropping the as moduleTNC, but that would break the backwards compat import in optimize/tnc.py.

Copy link
Contributor

@tylerjereddy tylerjereddy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, CI failures are unrelated

@tylerjereddy tylerjereddy merged commit bdefc81 into scipy:master Dec 23, 2021
@rgommers rgommers deleted the moduletnc-underscore branch December 23, 2021 18:20
@rgommers rgommers added this to the 1.9.0 milestone Dec 23, 2021
@tylerjereddy tylerjereddy modified the milestones: 1.9.0, 1.8.0 Jan 16, 2022
@tylerjereddy tylerjereddy removed the backport-candidate This fix should be ported by a maintainer to previous SciPy versions. label Jan 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Items related to regular maintenance tasks scipy.optimize
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants