Skip to content

Honor strip_extension option when building entire directory structures from distutils #260

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

lunkwill42
Copy link
Contributor

Well rested from my vacation, I was planning to look at a fix for #55, as discussed in #215. Then I was pleasantly surprised to find that #258 fixed it while I was away, and that #215 now could be closed :-)

However, I did not find #258 to work at all. The build_sass build command invokes Manifest.build(), which in turn invokes the build_directory() function to compile an entire directory structures of SASS files. #258 only patches and tests the Manifest.build_one() method, which is apparently never invoked by build_sass.

This PR attempts to remedy that.

The distutils build_sass command runs the Manifest.build() method, not the
Manifest.build_one() method. The former does not honor the strip_extension
option.
Copy link
Member

@asottile asottile left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sweet! I knew my original PR was too simple 😆

@asottile asottile merged commit 8eedaa6 into sass:master Aug 23, 2018
@lunkwill42 lunkwill42 deleted the strip-extensions-from-build-directory branch August 27, 2018 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants