-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pin older cython and add patch to disable pthread in pypocketfft
- Loading branch information
Showing
2 changed files
with
19 additions
and
1 deletion.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
recipes/recipes_emscripten/scipy/patches/0016-disable-pthread-pypocketfft.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
diff --git a/scipy/fft/_pocketfft/setup.py b/scipy/fft/_pocketfft/setup.py | ||
index 7e4456501..f5c682986 100644 | ||
--- a/scipy/fft/_pocketfft/setup.py | ||
+++ b/scipy/fft/_pocketfft/setup.py | ||
@@ -11,9 +11,9 @@ def pre_build_hook(build_ext, ext): | ||
args.append('/EHsc') | ||
else: | ||
# Use pthreads if available | ||
- has_pthreads = try_compile(cc, code='#include <pthread.h>\n' | ||
- 'int main(int argc, char **argv) {}') | ||
- if has_pthreads: | ||
+ # has_pthreads = try_compile(cc, code='#include <pthread.h>\n' | ||
+ # 'int main(int argc, char **argv) {}') | ||
+ if False: | ||
ext.define_macros.append(('POCKETFFT_PTHREADS', None)) | ||
if has_flag(cc, '-pthread'): | ||
args.append('-pthread') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters