Unset PYTHONOPTIMIZE. Fixes install if set.
+2005-11-14 Jan Nieuwenhuizen <janneke@gnu.org>
+
+ * stepmake/stepmake/python-module-rules.make ($(outdir)/%.pyc):
+ Unset PYTHONOPTIMIZE. Fixes install if set.
+
2005-11-13 Han-Wen Nienhuys <hanwen@xs4all.nl>
* python/convertrules.py (conv): add warning about drums.
$(LD) -o $@ $< $(SHARED_FLAGS) $(ALL_LDFLAGS)
$(outdir)/%.pyc: $(outdir)/%.py
- $(PYTHON) -c 'import py_compile; py_compile.compile ("$<")'
+ PYTHONOPTIMIZE= $(PYTHON) -c 'import py_compile; py_compile.compile ("$<")'
+
+$(outdir)/%.pyo: $(outdir)/%.py
+ $(PYTHON) -O -c 'import py_compile; py_compile.compile ("$<")'
$(outdir)/%.py: %.py $(config_make)
cat $< | sed $(sed-atvariables) > $@
PY_MODULES_IN = $(call src-wildcard,*.py)
OUT_PY_MODULES = $(PY_MODULES_IN:%=$(outdir)/%)
OUT_PYC_MODULES = $(OUT_PY_MODULES:%.py=%.pyc)
+OUT_PYO_MODULES = $(OUT_PY_MODULES:%.py=%.pyo)
ifeq ($(MINGW_BUILD)$(CYGWIN_BUILD),)
SHARED_MODULE_SUFFIX = .so
else