From 17e0070df93f4262908f884dca4b08cb7d0bba7f Mon Sep 17 00:00:00 2001 From: mattip Date: Mon, 13 May 2019 14:17:51 -0700 Subject: MAINT: Implement API changes for randomgen-derived code remove numpy.random.gen, BRNG.generator, pcg*, rand, randn remove use_mask and Lemire's method, fix benchmarks for PCG removal convert brng to bitgen (in C) and bit_generator (in python) convert base R{NG,andom.*} to BitGenerator, fix last commit randint -> integers, remove rand, randn, random_integers RandomGenerator -> Generator, more "basic RNG" -> BitGenerator random_sample -> random, jump -> jumped, resync with randomgen Remove derived code from entropy Port over changes accepted in upstream to protect log(0.0) where relevant fix doctests for jumped, better document choice Remove Python 2.7 shims Use NPY_INLINE to simplify Fix performance.py to work Renam directory brng to bit_generators Fix examples wiht new directory structure Clarify relationship to historical RandomState Remove references to .generator Rename xoshiro256/512starstar --- numpy/random/examples/cython/setup.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'numpy/random/examples/cython/setup.py') diff --git a/numpy/random/examples/cython/setup.py b/numpy/random/examples/cython/setup.py index d7a04f75a..69f057ed5 100644 --- a/numpy/random/examples/cython/setup.py +++ b/numpy/random/examples/cython/setup.py @@ -1,4 +1,10 @@ -# python setup.py build_ext -i +#!/usr/bin/env python3 +""" +Build the demos + +Usage: python setup.py build_ext -i +""" + import numpy as np from distutils.core import setup from Cython.Build import cythonize @@ -10,7 +16,7 @@ extending = Extension("extending", include_dirs=[np.get_include()]) distributions = Extension("extending_distributions", sources=['extending_distributions.pyx', - join('..', '..', '..', 'randomgen', 'src', + join('..', '..', 'src', 'distributions', 'distributions.c')], include_dirs=[np.get_include()]) -- cgit v1.2.1