Skip to content
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

Don't vendor xsimd, use packaged version #15

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@ source:
sha256: eab7c91f904f31b786a58b73dd0da31a0ddd4a207c447ca60a87b76101bffd0d

build:
number: 0
script: "{{ PYTHON }} -m pip install . --no-deps -vv"
number: 1
script:
- "{{ PYTHON }} -c 'import os, shutil; shutil.rmtree(os.path.join(\"pythran\", \"xsimd\"))'"
- "{{ PYTHON }} -c 'with open(\"setup.cfg\", \"w\") as s: s.write(\"[build_py]\\nno_xsimd=True\")'"
- "{{ PYTHON }} -m pip install . --no-deps -vv"
skip: true # [win and py27]
entry_points:
- pythran = pythran.run:run
Expand All @@ -33,16 +36,19 @@ requirements:
- ply >=3.4
- six
- beniget
- xsimd =7.1.2

test:
files:
- dprod.py
- simple_numexpr.py
requires:
- {{ compiler('cxx') }}
commands:
- pythran dprod.py
- python -c 'import dprod'
test:
- pythran dprod.py # [not win]
- python -c 'import dprod' # [not win]
- pythran simple_numexpr.py -DUSE_XSIMD -march=native # [not win]
- python -c 'import simple_numexpr' # [not win]
imports:
- omp
- pythran
Expand Down
4 changes: 4 additions & 0 deletions recipe/simple_numexpr.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#pythran export numexpr(int)
def numexpr(n):
import numpy as np
return np.sum(3 * np.arange(n, dtype=float))