Skip to content

Commit

Permalink
MAINT: rename moduleTNC extension back to _moduleTNC
Browse files Browse the repository at this point in the history
The underscore was recently removed, see scipygh-14882.
This change is undesired, because it's a private namespace.
  • Loading branch information
rgommers committed Dec 23, 2021
1 parent efbcc92 commit d9e974e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scipy/optimize/_tnc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
from ._optimize import (MemoizeJac, OptimizeResult, _check_unknown_options,
_prepare_scalar_function)
from ._constraints import old_bound_to_new
Expand Down
4 changes: 2 additions & 2 deletions scipy/optimize/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ def configuration(parent_package='', top_path=None):
**lapack)
ext._pre_build_hook = pre_build_hook

sources = ['moduleTNC.c', 'tnc.c']
config.add_extension('moduleTNC',
sources = ['_moduleTNC.c', 'tnc.c']
config.add_extension('_moduleTNC',
sources=[join('tnc', x) for x in sources],
depends=[join('tnc', 'tnc.h')],
**numpy_nodepr_api)
Expand Down
File renamed without changes.

0 comments on commit d9e974e

Please sign in to comment.