setup: don't rebuild existing images (#8040)
This commit is contained in:
parent
200cad04bd
commit
b0506aa524
2
setup.py
2
setup.py
|
@ -112,6 +112,8 @@ class build_icons(Command):
|
|||
#print '\n'.join(sorted(css_rules))
|
||||
|
||||
def generate(self, src, dest, colour, width, **kwargs):
|
||||
if os.path.exists(dest) and os.stat(dest).st_mtime >= os.stat(src).st_mtime:
|
||||
return
|
||||
# default values
|
||||
from PIL import Image
|
||||
from PIL import PngImagePlugin
|
||||
|
|
Loading…
Reference in New Issue