Skip to content

Support in tree hooks (pyproject.toml backend-path key) #46

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
merged 5 commits into from
Apr 27, 2019

Conversation

pfmoore
Copy link
Member

@pfmoore pfmoore commented Mar 16, 2019

No description provided.

@pfmoore
Copy link
Member Author

pfmoore commented Apr 19, 2019

@takluyver I believe that's all the review comments addressed. Sorry it took so long. Are there any other issues you think need addressing?

if self.backend_path:
backend_path = os.pathsep.join(self.backend_path)
if sys.version_info[0] == 2:
backend_path = backend_path.encode(sys.getfilesystemencoding())
Copy link
Member

Choose a reason for hiding this comment

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

This may fail if a Unix filesystem erroneously reports that it's ASCII and someone tries to use a non-ASCII path. But I don't know what the correct thing to do on Python 2 in that case is (Python 3 has os.fsencode()). So we may as well cross our fingers and hope people use either Python 3 or plain ASCII paths.

@takluyver
Copy link
Member

Thanks, I think it looks good.

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