Commit c36a044a authored by Roman Yurchak's avatar Roman Yurchak

Store version information in src/pyodide.py

parent 02ce5a4a
......@@ -160,6 +160,10 @@ root/.built: \
cp src/_testcapi.py root/lib/python$(PYMINOR)
cp src/pystone.py root/lib/python$(PYMINOR)
cp src/pyodide.py root/lib/python$(PYMINOR)/site-packages
if command -v git > /dev/null 2>&1 \
&& git describe --tags > /dev/null 2>&1; then \
sed -i "s/__version__ =.*/__version__ = '$(shell git describe --tags)'/g" root/lib/python$(PYMINOR)/site-packages/pyodide.py; \
fi
( \
cd root/lib/python$(PYMINOR); \
rm -fr `cat ../../../remove_modules.txt`; \
......
......@@ -7,6 +7,8 @@ from js import XMLHttpRequest
import ast
import io
__version__ = '0.1.0'
def open_url(url):
"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment