-
-
Notifications
You must be signed in to change notification settings - Fork 178
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
Workaround for windows file path size limit issue #419
Conversation
Adding --no-build-id would shorten the file path and therefore enable boost builds and others that have really long file paths
How about, also using |
Thanks. I'll make the change |
This further reduces the path and should make the work directory to be "C:\work\project-version\"
Sorry I think I'm missing some context. What is the big picture here? |
See this issue, conda-forge/boost-feedstock#27
With the changes in conda-build 2.x, unpacking the boost tarball fails as the path size becomes greater than 260 chars which is the limit for a file path size on windows. This PR reduces |
I see. Thanks for the clarification. |
Could you please take a look at this, @msarahan ? |
So one thing I worry about is this makes a change to the prefix for all Windows builds. I don't know offhand if this would affect anything negatively, but it is a concern. Would it be possible for us to have some sort of setting in |
I guess I can remove |
FYI, conda-build 2.x did change the prefix for all builds including Linux and OS X, so any problem we may get with this, we will have to deal with anyways. |
|
For anybody wondering what the differences are,
|
Yep, we are aware. That is why it took so long to upgrade |
Alright, if Mike recommends |
Is there |
That's a good point. To make sure I'm understanding you correctly, we could just explicitly override this in In that case, I'd think we might be better off to do this in |
Sure, just set the environment variable mentioned there. I personally wouldn't do just C:, but I really think it won't matter. You wouldn't ordinarily put stuff at /, would you? I don't think it'll break anything, so go ahead if you want, just kind of smells. |
We can tack on |
What do you think about this suggestion, @isuruf? Will this work for you? Maybe we can give it a try in your PR first. |
I'd prefer changing |
So one can do that by adding this to the conda-build:
root-dir: <dir> However, AFAICT we can't add that by calling |
Replaced with a similar adjustment in |
Adding
--no-build-id
would shorten the file path and therefore enableboost builds and others that have really long file paths