Skip to content
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

sdist puts Happy-generated .hs files in the wrong place #159

Closed
bos opened this issue May 24, 2012 · 1 comment
Closed

sdist puts Happy-generated .hs files in the wrong place #159

bos opened this issue May 24, 2012 · 1 comment

Comments

@bos
Copy link
Contributor

bos commented May 24, 2012

(Imported from Trac #166, reported by guest on 2007-10-23)

I want to use sdist to generate source distributions of Happy that don't depend on Happy, and hence come with the Happy-generated .hs files for the parsers. When I try this, the source files are included, but in the root of the tree, whereas Cabal seems to look for them in dist/build. I can move them by hand and re-generate the tarball, and that works.

I'm fairly sure this worked with older versions of Cabal.

@bos
Copy link
Contributor Author

bos commented May 24, 2012

(Imported comment by @dcoutts on 2007-10-23)

Sun Mar 23 14:54:52 GMT 2008  Andrea Vezzosi <sanzhiyan@gmail.com>
- FIX #166 by setting the right buildDir when preprocessing in sdist
  
This fixes the immediate problem. The rest of the problem is that tarballs that have pre-generated files in dist/ will get cleaned. They should really go in another dir that is checked but not cleaned. I'll open a separate bug on that issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant