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

Fixed an issue where building inside of a clone directory with spaces would result in not being able to build at all. #121384

Merged
merged 4 commits into from
Jul 5, 2024

Conversation

AraHaan
Copy link
Contributor

@AraHaan AraHaan commented Jul 4, 2024

I felt this is a trivial change and did not need an issue.

This is an issue as some people have github repositories with spaces in name and has cpython as a submodule so they can test with the latest and greatest main branch and the feature branches (3.13, 3.12, etc)

Having regen.targets use the " msbuild escape sequence for all input and output file paths ensures that this issue never happens again as long as the paths are wrapped in quotes. Also it's not acceptable to have to move the submodule out of the folder with a space nor is it acceptable to rename the folder that has a space sometimes. Using Quotes is a more acceptable solution to this.

@AraHaan AraHaan requested a review from a team as a code owner July 4, 2024 22:04
@zooba zooba added skip issue skip news needs backport to 3.12 bug and security fixes needs backport to 3.13 bugs and security fixes labels Jul 5, 2024
Copy link
Member

@zooba zooba left a comment

Choose a reason for hiding this comment

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

Agreed no issue required, but let's keep the change only to the places that need it.

AraHaan added 3 commits July 5, 2024 11:33
would result in not being able to build at all.

This is an issue as some people have github repositories with spaces in
name and has cpython as a submodule so they can test with the latest and
greatest main branch and the feature branches (3.13, 3.12, etc)

Having regen.targets use the " msbuild escape sequence for all
input and output file paths ensures that this issue never happens again
as long as the paths are wrapped in quotes. Also it's not acceptable to
have to move the submodule out of the folder with a space nor is it
acceptable to rename the folder that has a space sometimes. Using Quotes
is a more acceptable solution to this.
@AraHaan AraHaan force-pushed the fix-regen-targets-file branch from 4d7b9f8 to 27e0f3e Compare July 5, 2024 15:33
@zooba zooba merged commit 0e77540 into python:main Jul 5, 2024
31 checks passed
@zooba
Copy link
Member

zooba commented Jul 5, 2024

Thanks for the fix, @AraHaan

@zooba zooba added needs backport to 3.12 bug and security fixes needs backport to 3.13 bugs and security fixes and removed needs backport to 3.12 bug and security fixes needs backport to 3.13 bugs and security fixes labels Jul 5, 2024
@AraHaan AraHaan deleted the fix-regen-targets-file branch July 5, 2024 16:35
@zooba
Copy link
Member

zooba commented Jul 5, 2024

Not sure why the bots aren't doing backports right now... maybe they're taking a (US) holiday.

Edit: Pinged some people who probably know what's going on and/or what to do about it.

@ambv ambv added needs backport to 3.12 bug and security fixes needs backport to 3.13 bugs and security fixes and removed needs backport to 3.12 bug and security fixes needs backport to 3.13 bugs and security fixes labels Jul 5, 2024
@miss-islington-app
Copy link

Thanks @AraHaan for the PR, and @zooba for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jul 5, 2024
)

(cherry picked from commit 0e77540)

Co-authored-by: AraHaan <seandhunt_7@yahoo.com>
@miss-islington-app
Copy link

Thanks @AraHaan for the PR, and @zooba for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12.
🐍🍒⛏🤖

@miss-islington-app
Copy link

Thanks @AraHaan for the PR, and @zooba for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

@miss-islington-app
Copy link

Sorry, @AraHaan and @zooba, I could not cleanly backport this to 3.12 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 0e77540d86833f0a0ef964ab51f35be9bfb533f9 3.12

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jul 5, 2024
)

(cherry picked from commit 0e77540)

Co-authored-by: AraHaan <seandhunt_7@yahoo.com>
@miss-islington-app
Copy link

Thanks @AraHaan for the PR, and @zooba for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12.
🐍🍒⛏🤖

@miss-islington-app
Copy link

Sorry, @AraHaan and @zooba, I could not cleanly backport this to 3.12 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 0e77540d86833f0a0ef964ab51f35be9bfb533f9 3.12

@miss-islington-app
Copy link

Thanks @AraHaan for the PR, and @zooba for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jul 5, 2024
)

(cherry picked from commit 0e77540)

Co-authored-by: AraHaan <seandhunt_7@yahoo.com>
@miss-islington-app
Copy link

Thanks @AraHaan for the PR, and @zooba for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jul 5, 2024
)

(cherry picked from commit 0e77540)

Co-authored-by: AraHaan <seandhunt_7@yahoo.com>
@bedevere-app
Copy link

bedevere-app bot commented Jul 5, 2024

GH-121411 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Jul 5, 2024
zooba pushed a commit that referenced this pull request Jul 8, 2024
(cherry picked from commit 0e77540)

Co-authored-by: AraHaan <seandhunt_7@yahoo.com>
@zooba
Copy link
Member

zooba commented Jul 8, 2024

Doesn't actually impact 3.12

noahbkim pushed a commit to hudson-trading/cpython that referenced this pull request Jul 11, 2024
estyxx pushed a commit to estyxx/cpython that referenced this pull request Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants