10000 ENH: expose `bit_generator` and random C-API to cython by mattip · Pull Request #15463 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

ENH: expose bit_generator and random C-API to cython #15463

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

Merged
merged 11 commits into from
Mar 16, 2020
Merged
Prev Previous commit
Next Next commit
BUG: actually prefix f-string with f
  • Loading branch information
mattip committed Jan 31, 2020
commit 93ec29dc35f76dda37f55c77b7d861dcf4a1914c
4 changes: 2 additions & 2 deletions numpy/random/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def generate_libraries(ext, build_dir):

for gen in ['mt19937']:
# gen.pyx, src/gen/gen.c, src/gen/gen-jump.c
config.add_extension('_{gen}',
config.add_extension(f'_{gen}',
sources=[f'_{gen}.c',
f'src/{gen}/{gen}.c',
f'src/{gen}/{gen}-jump.c'],
Expand All @@ -88,7 +88,7 @@ def generate_libraries(ext, build_dir):
for gen in ['philox', 'pcg64', 'sfc64']:
# gen.pyx, src/gen/gen.c
_defs = defs + PCG64_DEFS if gen == 'pcg64' else defs
config.add_extension('_{gen}',
config.add_extension(f'_{gen}',
sources=[f'_{gen}.c',
f'src/{gen}/{gen}.c'],
include_dirs=['.', 'src', join('src', gen)],
Expand Down
0