mirror of https://github.com/pyodide/pyodide.git
25 lines
989 B
Makefile
25 lines
989 B
Makefile
export EMSCRIPTEN_VERSION = 1.38.44
|
|
export BINARYEN_VERSION = version_89
|
|
|
|
# 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
|
|
|
|
export PYVERSION=3.8.2
|
|
export PYMINOR=$(basename $(PYVERSION))
|
|
export HOSTPYTHONROOT=$(shell python -c "import sys; print(sys.prefix)")
|
|
export HOSTPYTHON=$(HOSTPYTHONROOT)/bin/python3
|
|
export TARGETPYTHONROOT=$(PYODIDE_ROOT)/cpython/installs/python-$(PYVERSION)
|
|
export PYTHONINCLUDE=$(PYODIDE_ROOT)/cpython/installs/python-$(PYVERSION)/include/python$(PYMINOR)
|
|
|
|
# Use env variable if defined, otherwise fallback to './'
|
|
export PYODIDE_BASE_URL?=./
|
|
|
|
# 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
|
|
export PYODIDE_PACKAGE_ABI=1
|