Skip to content

Commit cd36b7e

Browse files
committed
Fix servo#922: Bindings generator generates .pyc files
1 parent 006237f commit cd36b7e

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

Makefile.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ bindinggen_dependencies := $(addprefix $(BINDINGS_SRC)/, BindingGen.py Bindings.
298298
$(AUTOGEN_SRC_script): $(BINDINGS_SRC)/%Binding.rs: $(bindinggen_dependencies) \
299299
$(addprefix $(WEBIDLS_SRC)/, %.webidl)
300300
@$(call E, "Maybe generating $(shell basename $@)...")
301-
$(Q)PYTHONDONTWRITEBYTECODE=1 $(CFG_PYTHON2) $(BINDINGS_SRC)/pythonpath.py \
301+
$(Q) $(CFG_PYTHON2) $(BINDINGS_SRC)/pythonpath.py \
302302
-I$(BINDINGS_SRC)/parser -I$(BINDINGS_SRC)/ply \
303303
-D$(BINDINGS_SRC) \
304304
$(BINDINGS_SRC)/BindingGen.py rs \
@@ -317,7 +317,7 @@ $(CACHE_DIR)/.done:
317317

318318
$(BINDINGS_SRC)/ParserResults.pkl: $(globalgen_dependencies) \
319319
$(WEBIDLS_script)
320-
$(Q)PYTHONDONTWRITEBYTECODE=1 $(CFG_PYTHON2) $(BINDINGS_SRC)/pythonpath.py \
320+
$(Q) $(CFG_PYTHON2) $(BINDINGS_SRC)/pythonpath.py \
321321
-I$(BINDINGS_SRC)/parser -I$(BINDINGS_SRC)/ply \
322322
-D$(BINDINGS_SRC) \
323323
$(BINDINGS_SRC)/GlobalGen.py $(BINDINGS_SRC)/Bindings.conf . \

mk/clean.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ clean-gfx:
4343

4444
clean-script:
4545
@$(call E, "cleaning script")
46-
$(Q)cd $(B)/src/components/script/ && rm -rf libscript*.dylib libscript*.dSYM libscript*.so $(DONE_script)
46+
$(Q)cd $(B)/src/components/script/ && rm -rf libscript*.dylib libscript*.dSYM libscript*.so $(DONE_script) && find $(S)/src/components/script/ -name \*.pyc -delete
4747

4848
clean-style:
4949
@$(call E, "cleaning style")

src/components/script/dom/bindings/codegen/Makefile.in

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ CSS2Properties.webidl: $(topsrcdir)/layout/style/nsCSSPropList.h \
9595
$(srcdir)/GenerateCSS2PropertiesWebIDL.py \
9696
$(GLOBAL_DEPS)
9797
$(CPP) $(DEFINES) $(ACDEFINES) -I$(topsrcdir)/layout/style $(webidl_base)/CSS2PropertiesProps.h | \
98-
PYTHONDONTWRITEBYTECODE=1 $(PYTHON) \
98+
$(PYTHON) \
9999
$(srcdir)/GenerateCSS2PropertiesWebIDL.py $(webidl_base)/CSS2Properties.webidl.in > CSS2Properties.webidl
100100

101101
$(webidl_files): %: $(webidl_base)/%
@@ -107,7 +107,7 @@ $(test_webidl_files): %: $(srcdir)/test/%
107107
$(binding_header_files): %Binding.h: $(bindinggen_dependencies) \
108108
%.webidl \
109109
$(NULL)
110-
PYTHONDONTWRITEBYTECODE=1 $(PYTHON) $(topsrcdir)/config/pythonpath.py \
110+
$(PYTHON) $(topsrcdir)/config/pythonpath.py \
111111
$(PLY_INCLUDE) -I$(srcdir)/parser \
112112
$(srcdir)/BindingGen.py header \
113113
$(srcdir)/Bindings.conf $*Binding \
@@ -116,7 +116,7 @@ $(binding_header_files): %Binding.h: $(bindinggen_dependencies) \
116116
$(binding_cpp_files): %Binding.cpp: $(bindinggen_dependencies) \
117117
%.webidl \
118118
$(NULL)
119-
PYTHONDONTWRITEBYTECODE=1 $(PYTHON) $(topsrcdir)/config/pythonpath.py \
119+
$(PYTHON) $(topsrcdir)/config/pythonpath.py \
120120
$(PLY_INCLUDE) -I$(srcdir)/parser \
121121
$(srcdir)/BindingGen.py cpp \
122122
$(srcdir)/Bindings.conf $*Binding \
@@ -142,7 +142,7 @@ $(CACHE_DIR)/.done:
142142

143143
ParserResults.pkl: $(globalgen_dependencies) \
144144
$(all_webidl_files)
145-
PYTHONDONTWRITEBYTECODE=1 $(PYTHON) $(topsrcdir)/config/pythonpath.py \
145+
$(PYTHON) $(topsrcdir)/config/pythonpath.py \
146146
$(PLY_INCLUDE) -I$(srcdir)/parser \
147147
$(srcdir)/GlobalGen.py $(srcdir)/Bindings.conf . \
148148
--cachedir=$(CACHE_DIR) \

src/components/script/dom/bindings/codegen/test/Makefile.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ $(CPPSRCS): ../%Binding.cpp: $(bindinggen_dependencies) \
7979
$(MAKE) -C .. $*Binding.cpp
8080

8181
check::
82-
PYTHONDONTWRITEBYTECODE=1 $(PYTHON) $(topsrcdir)/config/pythonpath.py \
82+
$(PYTHON) $(topsrcdir)/config/pythonpath.py \
8383
$(PLY_INCLUDE) $(srcdir)/../parser/runtests.py
8484

8585
check-interactive:
86-
PYTHONDONTWRITEBYTECODE=1 $(PYTHON) $(topsrcdir)/config/pythonpath.py \
86+
$(PYTHON) $(topsrcdir)/config/pythonpath.py \
8787
$(PLY_INCLUDE) $(srcdir)/../parser/runtests.py -q

0 commit comments

Comments
 (0)