storborg / pyramid_frontend

Theme handling, image filtering, and asset optimization for Pyramid
Other
0 stars 2 forks source link

Be more graceful when executables are missing #27

Closed storborg closed 9 years ago

storborg commented 9 years ago

Some executables are a hard-requirement (e.g. lessc for LessAsset) but other image filtering tools like pngcrush and jpegoptim may be a soft requirement only. Maybe make it possible to proceed without them at all?

storborg commented 9 years ago

These executables should be optional:

These should be required:

storborg commented 9 years ago

Actually, when executables are missing, the subprocess.* call will just raise a FileNotFoundError, which is pretty clear and consistent.

storborg commented 9 years ago

And they are required-enough that they probably shouldn't be skipped.