Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-107658: Use same logic to look for exec_prefix as for prefix#107661

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
jpe wants to merge2 commits intopython:main
base:main
Choose a base branch
Loading
fromjpe:fix-issue-107658

Conversation

jpe
Copy link

@jpejpe commentedAug 5, 2023
edited by bedevere-bot
Loading

and look for landmark for exec_prefix in library_dir
@bedevere-bot
Copy link

Most changes to Pythonrequire a NEWS entry.

Please add it using theblurb_it web app or theblurb command-line tool.

@ghost
Copy link

ghost commentedAug 5, 2023
edited by ghost
Loading

All commit authors signed the Contributor License Agreement.
CLA signed

@AA-Turner
Copy link
Member

@jpe please may you add a NEWS entry?

@AA-TurnerAA-Turner added the needs backport to 3.12only security fixes labelAug 5, 2023
@AA-TurnerAA-Turner requested a review fromzoobaAugust 5, 2023 14:13
@@ -0,0 +1 @@
Use same logic to look for exec_prefix as for prefix
Copy link
Member

Choose a reason for hiding this comment

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

Please explain the new logic here.

zooba reacted with thumbs up emoji
if library and not exec_prefix:
library_dir = dirname(library)
if PLATSTDLIB_LANDMARK:
if isdir(joinpath(library_dir, PLATSTDLIB_LANDMARK)):
Copy link
Member

Choose a reason for hiding this comment

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

This check could also go at line 605 (pre-change; 611 post-change), where it would be with the rest of the search forexec_prefix.

Copy link
Author

Choose a reason for hiding this comment

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

My intent was to mimic the blocks that detect prefix -- the block above corresponds to the block for prefix at 553 (the leading comment is nearly identical) and the block for exec_prefix following it corresponds to the block for prefix at 583. I can see how it might be better to rearrange some of the logic and possibly to create a function that's called for each, but the current patch minimizes the number of changes.

Copy link
Member

Choose a reason for hiding this comment

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

I can see what the intent was, but now it's harder to follow because there are two apparently independent blocks for calculatingexec_prefix with no obvious reason. So better to merge it into a single block.

@serhiy-storchakaserhiy-storchaka added the needs backport to 3.13bugs and security fixes labelMay 9, 2024
@serhiy-storchakaserhiy-storchaka added the needs backport to 3.14bugs and security fixes labelMay 8, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@zoobazoobazooba left review comments

@sunmy2019sunmy2019sunmy2019 left review comments

Assignees
No one assigned
Labels
awaiting reviewneeds backport to 3.12only security fixesneeds backport to 3.13bugs and security fixesneeds backport to 3.14bugs and security fixes
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

6 participants
@jpe@bedevere-bot@AA-Turner@zooba@sunmy2019@serhiy-storchaka

[8]ページ先頭

©2009-2025 Movatter.jp