Skip to content

Commit

Permalink
Move some pythran config from CI to setup
Browse files Browse the repository at this point in the history
It's more reproducible and less configuration hassle that way.
Somehow related to scipy#13464.
  • Loading branch information
serge-sans-paille committed Feb 1, 2021
1 parent 54f8d14 commit 2f2b0ea
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -315,9 +315,9 @@ jobs:
$env:CFLAGS = "-m32"
$env:LDFLAGS = "-m32"
refreshenv
python -c "import os; fd = open(os.path.expanduser(os.path.join('~', '.pythranrc')), 'w'); fd.write('[compiler]\nCXX=clang-cl.exe\nCC=clang-cl.exe\ncflags=/std:c++14 -m32\nblas=none\n'); fd.close()"
python -c "import os; fd = open(os.path.expanduser(os.path.join('~', '.pythranrc')), 'w'); fd.write('[compiler]\nCXX=clang-cl.exe\nCC=clang-cl.exe\ncflags=/std:c++14 -m32\n'); fd.close()"
}else{
python -c "import os; fd = open(os.path.expanduser(os.path.join('~', '.pythranrc')), 'w'); fd.write('[compiler]\nCXX=clang-cl.exe\nCC=clang-cl.exe\nblas=none\n'); fd.close()"
python -c "import os; fd = open(os.path.expanduser(os.path.join('~', '.pythranrc')), 'w'); fd.write('[compiler]\nCXX=clang-cl.exe\nCC=clang-cl.exe\n'); fd.close()"
}
$env:PATH = "C:\\ProgramData\\chocolatey\\lib\\mingw\\tools\\install\\mingw$(BITS)\\bin;" + $env:PATH
Expand Down
3 changes: 2 additions & 1 deletion scipy/optimize/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ def configuration(parent_package='', top_path=None):
import pythran
ext = pythran.dist.PythranExtension(
'scipy.optimize._group_columns',
sources=["scipy/optimize/_group_columns.py"])
sources=["scipy/optimize/_group_columns.py"],
config=['compiler.blas=none'])
config.ext_modules.append(ext)
else:
config.add_extension('_group_columns', sources=['_group_columns.c'],)
Expand Down
6 changes: 4 additions & 2 deletions scipy/signal/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,14 @@ def configuration(parent_package='', top_path=None):
import pythran
ext = pythran.dist.PythranExtension(
'scipy.signal._max_len_seq_inner',
sources=["scipy/signal/_max_len_seq_inner.py"])
sources=["scipy/signal/_max_len_seq_inner.py"],
config=['compiler.blas=none'])
config.ext_modules.append(ext)

ext = pythran.dist.PythranExtension(
'scipy.signal._spectral',
sources=["scipy/signal/_spectral.py"])
sources=["scipy/signal/_spectral.py"],
config=['compiler.blas=none'])
config.ext_modules.append(ext)
else:
config.add_extension(
Expand Down

0 comments on commit 2f2b0ea

Please sign in to comment.