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

Add permission check before configuration #12089

Merged
merged 21 commits into from
Jun 30, 2023
Merged

Add permission check before configuration #12089

merged 21 commits into from
Jun 30, 2023

Conversation

JasonMo1
Copy link
Contributor

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.

@JasonMo1 JasonMo1 closed this Jun 14, 2023
@JasonMo1 JasonMo1 marked this pull request as draft June 17, 2023 04:03
@JasonMo1 JasonMo1 marked this pull request as ready for review June 17, 2023 04:23
@uranusjr
Copy link
Member

Need to fix the CI failures.

Copy link
Member

@pfmoore pfmoore left a 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?

src/pip/_internal/configuration.py Show resolved Hide resolved
@JasonMo1
Copy link
Contributor Author

以前的审查仍需解决。另外,这应该有一个测试吗?

Yes, I need it.

@JasonMo1 JasonMo1 requested a review from pfmoore June 22, 2023 03:29
@JasonMo1
Copy link
Contributor Author

I think these code in tests\functional\test_wheel.py::test_pip_wheel_ext_module_with_tmpdir_inside() makes the CI test failed:
test_wheel.py

@JasonMo1
Copy link
Contributor Author

CI Tests passed.
image
Thank you! @uranusjr

@JasonMo1
Copy link
Contributor Author

@uranusjr CI Test "Windows 3.11" didn't pass

@pfmoore
Copy link
Member

pfmoore commented Jun 29, 2023

CI Test "Windows 3.11" didn't pass

It's a known intermittent issue. I've restarted the failed jobs.

@uranusjr uranusjr merged commit 2144008 into pypa:main Jun 30, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants