Skip to content

Add a generic pure-Python build option - #2335

Open
anutosh491 wants to merge 1 commit into
pymc-devs:mainfrom
anutosh491:add-pure-python-build-switch
Open

Add a generic pure-Python build option#2335
anutosh491 wants to merge 1 commit into
pymc-devs:mainfrom
anutosh491:add-pure-python-build-switch

Conversation

@anutosh491

Copy link
Copy Markdown
Contributor

Description

Related Issue

  • Closes #
  • Related to #

Checklist

Type of change

  • New feature / enhancement
  • Bug fix
  • Documentation
  • Maintenance
  • Other (please specify):

@anutosh491

Copy link
Copy Markdown
Contributor Author

PYODIDE names a specific Python distribution, even though the build option simply disables PyTensor’s optional Cython extension and is useful to other environments, including JupyterLite with xeus-python. Add the platform-neutral PYTENSOR_PURE_PYTHON option while retaining PYODIDE as a backward-compatible alias.

@anutosh491

Copy link
Copy Markdown
Contributor Author

Closing and reopening to see if the CI enables.

@anutosh491 anutosh491 closed this Aug 10, 2026
@anutosh491 anutosh491 reopened this Aug 10, 2026
Comment thread setup.py
# so we must omit the cython-version of scan.
# Build without optional compiled extensions. Keep PYODIDE as a compatibility
# alias for existing downstream builds.
is_pure_python = (

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is just cosmetic I assume? You could have used the PYODIDE flag?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants