File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -115,12 +115,13 @@ $(MPY_CROSS): $(TOP)/py/*.[ch] $(TOP)/mpy-cross/*.[ch] $(TOP)/windows/fmode.c
115115
116116# Copy all the modules and single python files to freeze to a common area, omitting top-level dirs (the repo names).
117117# Remove any conf.py (sphinx config) and setup.py (module install info) files, which are not meant to be frozen.
118+ # Also remove the library examples directory, so it won't be included.
118119# Then compile .mpy files from all the .py files, placing them in the same directories as the .py files.
119120$(BUILD ) /frozen_mpy : $(FROZEN_MPY_DIRS )
120121 $(ECHO ) FREEZE $(FROZEN_MPY_DIRS )
121122 $(Q )$(MKDIR ) -p $@
122123 $(Q )$(RSYNC ) -rL --include=" */" --include=' *.py' --exclude=" *" $(addsuffix /* ,$(FROZEN_MPY_DIRS ) ) $@
123- $(Q )$(RM ) -f $@ /conf.py $@ /setup.py
124+ $(Q )$(RM ) -rf $@ /conf.py $@ /setup.py $@ /examples
124125 $(Q )$(CD ) $@ && \
125126$(FIND) -L . -type f -name '*.py' | sed 's=^\./==' | \
126127xargs -n1 $(abspath $(MPY_CROSS)) $(MPY_CROSS_FLAGS)
You can’t perform that action at this time.
0 commit comments