qtsass icon indicating copy to clipboard operation
qtsass copied to clipboard

setuptools/distutils integration

Open danbradham opened this issue 6 years ago • 3 comments

The python libsass library has really sweet integration with setuptools/distutils.

setup(
...
    sass_manifests={
       'package': ('/scss', '/css')
    },
)

We should be able to subclass the distutils command and hook up our own compile method.

danbradham avatar May 08 '18 16:05 danbradham

@danbradham could you elaborate a bit :-) ?

goanpeca avatar Apr 24 '19 02:04 goanpeca

Libsass extends setuptools with a build_sass command that recognizes the sass_manifests setup argument and compiles your sass to css. When used in conjunction with sdist/bdist the compiled css will be included with the distribution.

Explainer Source code

It could be cool to include a build_qtsass command that acts on the same sass_manifests argument.

danbradham avatar Apr 24 '19 19:04 danbradham

Awesome, thanks for the explanation!

goanpeca avatar Apr 24 '19 19:04 goanpeca