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 30e900e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ classifiers = [
requires-python = ">=3.8"
dependencies = [
"matplotlib >= 2.2",
"numba ; platform_system == 'Windows'",
"numpy >= 1.15",
"pandas >= 0.23",
"rasterio >= 1.0.0",
Expand Down
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 30e900e

Please sign in to comment.