Skip to content

Commit be67929

Browse files
authored
Minor improvement to ext_modules conditional definition
1 parent 2ba9448 commit be67929

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

setup.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@
1616
# Check if building for Pyodide
1717
is_pyodide = os.getenv("PYODIDE", "0") == "1"
1818

19-
# Define the ext_modules conditionally
20-
ext_modules = []
21-
if not is_pyodide:
19+
if is_pyodide:
20+
# For pyodide we build a universal wheel that must be pure-python
21+
# so we must omit the cython-version of scan.
22+
ext_modules = []
23+
else:
2224
ext_modules = [
2325
Extension(
2426
name="pytensor.scan.scan_perform",

0 commit comments

Comments
 (0)