summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2021-01-12 07:09:39 (GMT)
committerTony Theodore <tonyt@logyst.com>2021-01-12 07:09:39 (GMT)
commitff135f26ec724d6db33a841343c8096b09ec12b0 (patch)
tree4073ef7b4ab5077f9a845739d677e26dc9ecd79d /src
parent3cfc8da52bdc227efd0c2eb777aed030603af04d (diff)
downloadmxe-ff135f26ec724d6db33a841343c8096b09ec12b0.zip
mxe-ff135f26ec724d6db33a841343c8096b09ec12b0.tar.gz
mxe-ff135f26ec724d6db33a841343c8096b09ec12b0.tar.bz2
python-conf: avoid generating *.pyc files
Diffstat (limited to 'src')
-rw-r--r--src/python-conf.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/python-conf.mk b/src/python-conf.mk
index fbe3cfa..d25b52f 100644
--- a/src/python-conf.mk
+++ b/src/python-conf.mk
@@ -14,6 +14,7 @@ define $(PKG)_BUILD_$(BUILD)
#create python wrapper in a directory which is in PATH
(echo '#!/bin/sh'; \
echo 'PYTHONPATH="$(PREFIX)/$(TARGET)/lib/python$(PY_XY_VER)/site-packages" \
+ PYTHONDONTWRITEBYTECODE=True \
exec $(PYTHON) "$$@"';) \
> '$(PREFIX)/bin/$(TARGET)-python$(PY_XY_VER)'
chmod 0755 '$(PREFIX)/bin/$(TARGET)-python$(PY_XY_VER)'