summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
Diffstat (limited to 'numpy')
-rw-r--r--numpy/fft/__init__.py2
-rw-r--r--numpy/fft/_pocketfft.c (renamed from numpy/fft/pocketfft.c)8
-rw-r--r--numpy/fft/_pocketfft.py (renamed from numpy/fft/pocketfft.py)2
-rw-r--r--numpy/fft/setup.py4
4 files changed, 8 insertions, 8 deletions
diff --git a/numpy/fft/__init__.py b/numpy/fft/__init__.py
index 64b35bc19..9bb7a9f24 100644
--- a/numpy/fft/__init__.py
+++ b/numpy/fft/__init__.py
@@ -3,7 +3,7 @@ from __future__ import division, absolute_import, print_function
# To get sub-modules
from .info import __doc__
-from .pocketfft import *
+from ._pocketfft import *
from .helper import *
from numpy._pytesttester import PytestTester
diff --git a/numpy/fft/pocketfft.c b/numpy/fft/_pocketfft.c
index 9d1218e6b..d75b9983c 100644
--- a/numpy/fft/pocketfft.c
+++ b/numpy/fft/_pocketfft.c
@@ -2362,7 +2362,7 @@ static struct PyMethodDef methods[] = {
#if PY_MAJOR_VERSION >= 3
static struct PyModuleDef moduledef = {
PyModuleDef_HEAD_INIT,
- "pocketfft_internal",
+ "_pocketfft_internal",
NULL,
-1,
methods,
@@ -2376,11 +2376,11 @@ static struct PyModuleDef moduledef = {
/* Initialization function for the module */
#if PY_MAJOR_VERSION >= 3
#define RETVAL(x) x
-PyMODINIT_FUNC PyInit_pocketfft_internal(void)
+PyMODINIT_FUNC PyInit__pocketfft_internal(void)
#else
#define RETVAL(x)
PyMODINIT_FUNC
-initpocketfft_internal(void)
+init_pocketfft_internal(void)
#endif
{
PyObject *m;
@@ -2389,7 +2389,7 @@ initpocketfft_internal(void)
#else
static const char module_documentation[] = "";
- m = Py_InitModule4("pocketfft_internal", methods,
+ m = Py_InitModule4("_pocketfft_internal", methods,
module_documentation,
(PyObject*)NULL,PYTHON_API_VERSION);
#endif
diff --git a/numpy/fft/pocketfft.py b/numpy/fft/_pocketfft.py
index 1f6201c7c..50720cda4 100644
--- a/numpy/fft/pocketfft.py
+++ b/numpy/fft/_pocketfft.py
@@ -35,7 +35,7 @@ __all__ = ['fft', 'ifft', 'rfft', 'irfft', 'hfft', 'ihfft', 'rfftn',
import functools
from numpy.core import asarray, zeros, swapaxes, conjugate, take, sqrt
-from . import pocketfft_internal as pfi
+from . import _pocketfft_internal as pfi
from numpy.core.multiarray import normalize_axis_index
from numpy.core import overrides
diff --git a/numpy/fft/setup.py b/numpy/fft/setup.py
index 6c3548b65..8c3a31557 100644
--- a/numpy/fft/setup.py
+++ b/numpy/fft/setup.py
@@ -8,8 +8,8 @@ def configuration(parent_package='',top_path=None):
config.add_data_dir('tests')
# Configure pocketfft_internal
- config.add_extension('pocketfft_internal',
- sources=['pocketfft.c']
+ config.add_extension('_pocketfft_internal',
+ sources=['_pocketfft.c']
)
return config