-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Add permission check before configuration #12089
Conversation
Need to fix the CI failures. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Previous review still needs to be addressed. Also, should this have a test?
Yes, I need it. |
I think these code in tests\functional\test_wheel.py::test_pip_wheel_ext_module_with_tmpdir_inside() makes the CI test failed: |
CI Tests passed. |
@uranusjr CI Test "Windows 3.11" didn't pass |
It's a known intermittent issue. I've restarted the failed jobs. |
As I said in this issues and this issues, there will be an error because we have no permission to write into "C:\Program Files\WindowsApps\Pythoninmicrosoftstorepath\pip.ini'" , such as:
'''
[Errno 13] Permission denied:"C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.1 1.752.0_x64__qbz5n2kfra8p0\pip.ini"
'''
I fix this by checking your permission before write into the configuration.