2021-02-06 07:58:12 +00:00
|
|
|
export EMSCRIPTEN_VERSION = 2.0.12
|
|
|
|
export BINARYEN_VERSION = version_99
|
2019-01-10 12:40:01 +00:00
|
|
|
|
2021-01-03 11:25:14 +00:00
|
|
|
# BASH_ENV tells bash to run pyodide_env.sh on startup, whcih sets various
|
|
|
|
# environment variables. The next line instructs make to use bash to run each
|
|
|
|
# command.
|
|
|
|
export BASH_ENV := $(PYODIDE_ROOT)/pyodide_env.sh
|
|
|
|
SHELL := /bin/bash
|
2018-05-16 17:06:44 +00:00
|
|
|
|
2020-07-07 14:21:33 +00:00
|
|
|
export PYVERSION=3.8.2
|
2018-05-16 17:06:44 +00:00
|
|
|
export PYMINOR=$(basename $(PYVERSION))
|
2020-12-07 23:19:16 +00:00
|
|
|
export HOSTPYTHONROOT=$(shell python -c "import sys; print(sys.prefix)")
|
2018-06-20 21:05:24 +00:00
|
|
|
export HOSTPYTHON=$(HOSTPYTHONROOT)/bin/python3
|
2018-06-20 18:54:47 +00:00
|
|
|
export TARGETPYTHONROOT=$(PYODIDE_ROOT)/cpython/installs/python-$(PYVERSION)
|
2018-05-16 17:06:44 +00:00
|
|
|
export PYTHONINCLUDE=$(PYODIDE_ROOT)/cpython/installs/python-$(PYVERSION)/include/python$(PYMINOR)
|
|
|
|
|
2020-12-18 12:23:45 +00:00
|
|
|
# Use env variable if defined, otherwise fallback to './'
|
|
|
|
export PYODIDE_BASE_URL?=./
|
2021-01-01 07:48:28 +00:00
|
|
|
|
|
|
|
# This environment variable is used for packages to detect if they are built
|
|
|
|
# for pyodide during build time
|
|
|
|
export PYODIDE=1
|
|
|
|
# This is the legacy environment variable used for the aforementioned purpose
|
2018-12-25 09:44:09 +00:00
|
|
|
export PYODIDE_PACKAGE_ABI=1
|