Skip to content

Commit

Permalink
build: update pythran setup for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
martibosch committed Aug 24, 2023
1 parent bb2470f commit f87ef15
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""pylandstats setup script."""

import platform
from pathlib import Path

from setuptools import setup
Expand All @@ -11,18 +10,12 @@

here = Path(__file__).parent.absolute()

if platform.system() == "Windows":
backend = "numba"
else:
backend = "pythran"
backend = "pythran"

paths = ["pylandstats/landscape.py"]
make_backend_files([here / path for path in paths], backend=backend)

if platform.system() == "Linux":
compile_args = ("-O3", "-DUSE_XSIMD")
else:
compile_args = ("-O3",)
compile_args = ("-O3", "-DUSE_XSIMD")

extensions = init_transonic_extensions(
"pylandstats", compile_args=compile_args, backend=backend
Expand Down

0 comments on commit f87ef15

Please sign in to comment.