File tree 1 file changed +2
-1
lines changed
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
115
115
116
116
# Copy all the modules and single python files to freeze to a common area, omitting top-level dirs (the repo names).
117
117
# 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.
118
119
# Then compile .mpy files from all the .py files, placing them in the same directories as the .py files.
119
120
$(BUILD ) /frozen_mpy : $(FROZEN_MPY_DIRS )
120
121
$(ECHO ) FREEZE $(FROZEN_MPY_DIRS )
121
122
$(Q )$(MKDIR ) -p $@
122
123
$(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
124
125
$(Q )$(CD ) $@ && \
125
126
$(FIND) -L . -type f -name '*.py' | sed 's=^\./==' | \
126
127
xargs -n1 $(abspath $(MPY_CROSS)) $(MPY_CROSS_FLAGS)
You can’t perform that action at this time.
0 commit comments