diff options
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/random/_examples/__init__.py (renamed from numpy/random/examples/__init__.py) | 0 | ||||
-rw-r--r-- | numpy/random/_examples/cython/extending.pyx (renamed from numpy/random/examples/cython/extending.pyx) | 0 | ||||
-rw-r--r-- | numpy/random/_examples/cython/extending_distributions.pyx (renamed from numpy/random/examples/cython/extending_distributions.pyx) | 0 | ||||
-rw-r--r-- | numpy/random/_examples/cython/setup.py (renamed from numpy/random/examples/cython/setup.py) | 0 | ||||
-rw-r--r-- | numpy/random/_examples/numba/extending.py (renamed from numpy/random/examples/numba/extending.py) | 0 | ||||
-rw-r--r-- | numpy/random/_examples/numba/extending_distributions.py (renamed from numpy/random/examples/numba/extending_distributions.py) | 0 | ||||
-rw-r--r-- | numpy/random/setup.py | 2 | ||||
-rw-r--r-- | numpy/random/tests/test_extending.py | 6 | ||||
-rw-r--r-- | numpy/tests/test_public_api.py | 1 |
9 files changed, 4 insertions, 5 deletions
diff --git a/numpy/random/examples/__init__.py b/numpy/random/_examples/__init__.py index e69de29bb..e69de29bb 100644 --- a/numpy/random/examples/__init__.py +++ b/numpy/random/_examples/__init__.py diff --git a/numpy/random/examples/cython/extending.pyx b/numpy/random/_examples/cython/extending.pyx index 2a866648d..2a866648d 100644 --- a/numpy/random/examples/cython/extending.pyx +++ b/numpy/random/_examples/cython/extending.pyx diff --git a/numpy/random/examples/cython/extending_distributions.pyx b/numpy/random/_examples/cython/extending_distributions.pyx index d17da45c1..d17da45c1 100644 --- a/numpy/random/examples/cython/extending_distributions.pyx +++ b/numpy/random/_examples/cython/extending_distributions.pyx diff --git a/numpy/random/examples/cython/setup.py b/numpy/random/_examples/cython/setup.py index 315527a2d..315527a2d 100644 --- a/numpy/random/examples/cython/setup.py +++ b/numpy/random/_examples/cython/setup.py diff --git a/numpy/random/examples/numba/extending.py b/numpy/random/_examples/numba/extending.py index 0d240596b..0d240596b 100644 --- a/numpy/random/examples/numba/extending.py +++ b/numpy/random/_examples/numba/extending.py diff --git a/numpy/random/examples/numba/extending_distributions.py b/numpy/random/_examples/numba/extending_distributions.py index 9233ccced..9233ccced 100644 --- a/numpy/random/examples/numba/extending_distributions.py +++ b/numpy/random/_examples/numba/extending_distributions.py diff --git a/numpy/random/setup.py b/numpy/random/setup.py index 93d5144ea..776a018bc 100644 --- a/numpy/random/setup.py +++ b/numpy/random/setup.py @@ -34,7 +34,7 @@ def configuration(parent_package='', top_path=None): defs.append(('NPY_NO_DEPRECATED_API', 0)) config.add_data_dir('tests') - config.add_data_dir('examples') + config.add_data_dir('_examples') EXTRA_LINK_ARGS = [] # Math lib diff --git a/numpy/random/tests/test_extending.py b/numpy/random/tests/test_extending.py index 01e43b9e8..6f0f7a462 100644 --- a/numpy/random/tests/test_extending.py +++ b/numpy/random/tests/test_extending.py @@ -14,19 +14,19 @@ except ImportError: def test_cython(): curdir = os.getcwd() argv = sys.argv - examples = (os.path.dirname(__file__), '..', 'examples') + examples = (os.path.dirname(__file__), '..', '_examples') try: os.chdir(os.path.join(*examples)) sys.argv = argv[:1] + ['build'] with warnings.catch_warnings(record=True) as w: # setuptools issue gh-1885 warnings.filterwarnings('always', '', DeprecationWarning) - from numpy.random.examples.cython import setup + from numpy.random._examples.cython import setup finally: sys.argv = argv os.chdir(curdir) @pytest.mark.skipif(numba is None, reason="requires numba") def test_numba(): - from numpy.random.examples.numba import extending + from numpy.random._examples.numba import extending diff --git a/numpy/tests/test_public_api.py b/numpy/tests/test_public_api.py index ba3961bef..0484bb8cd 100644 --- a/numpy/tests/test_public_api.py +++ b/numpy/tests/test_public_api.py @@ -334,7 +334,6 @@ SKIP_LIST = [ "numpy.core.cversions", "numpy.core.generate_numpy_api", "numpy.distutils.msvc9compiler", - 'numpy.random.examples', ] |