Skip to content

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

Merged
takluyver merged 5 commits into
pypa:masterfrom
pfmoore:backend_path
Apr 27, 2019
Merged

Support in tree hooks (pyproject.toml backend-path key)#46
takluyver merged 5 commits into
pypa:masterfrom
pfmoore:backend_path

Conversation

@pfmoore

@pfmoore pfmoore commented Mar 16, 2019

Copy link
Copy Markdown
Member

No description provided.

Comment thread pep517/_in_process.py Outdated
Comment thread pep517/_in_process.py
Comment thread pep517/_in_process.py Outdated
Comment thread pep517/wrappers.py
Comment thread pep517/_in_process.py
Comment thread pep517/wrappers.py Outdated
Comment thread tests/samples/pkg_intree/backend/intree_backend.py Outdated
@pfmoore

pfmoore commented Apr 19, 2019

Copy link
Copy Markdown
Member Author

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

Comment thread pep517/wrappers.py
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
Copy Markdown
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
Copy Markdown
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