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

Support build on Windows #295

Merged
merged 1 commit into from
Sep 14, 2022
Merged

Support build on Windows #295

merged 1 commit into from
Sep 14, 2022

Conversation

mariosasko
Copy link
Contributor

Use POSIX paths (where needed) to avoid the build errors on Windows due to \ being the path separator. \ can cause the invalid escape sequence error in the downstream regex patterns (another option would be to use re.escape to fix this) and make the path comparison fail in the toc integrity check.

@mariosasko mariosasko requested a review from sgugger September 14, 2022 13:19
Copy link
Contributor

@sgugger sgugger left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this! I'd be surprised if it's the only fix necessary for Windows support though ;-)

@mariosasko
Copy link
Contributor Author

mariosasko commented Sep 14, 2022

Yes, I should be more precise - this PR contains the fixes needed to build the datasets docs on Windows successfully. A better test would be building the docs for transformers, but this still fails (halfway) due to Jax/Flax not being supported, which makes it impossible to resolve the references to the Flax models.

@mariosasko mariosasko merged commit 342dbb7 into main Sep 14, 2022
@mariosasko mariosasko deleted the fix-windows-build branch September 14, 2022 14:34
@mishig25
Copy link
Contributor

cc: @dylanebert

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.

3 participants