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-129019: Move pyconfig.h to Include/#134019

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

Draft
erlend-aasland wants to merge7 commits intopython:main
base:main
Choose a base branch
Loading
fromerlend-aasland:move-pyconfig-to-include
Draft
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
get_config_h_filename() returns correct path for build
  • Loading branch information
@erlend-aasland
erlend-aasland committedMay 14, 2025
commitabbf17efa6a3fa021408c7c6abcd207e126ea14a
10 changes: 6 additions & 4 deletionsLib/sysconfig/__init__.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -455,14 +455,16 @@ def parse_config_h(fp, vars=None):

def get_config_h_filename():
"""Return the path of pyconfig.h."""
parts = []
if _PYTHON_BUILD:
if os.name == "nt":
inc_dir =os.path.dirname(sys._base_executable)
parts.append(os.path.dirname(sys._base_executable))
else:
inc_dir =_PROJECT_BASE
parts.extend([_PROJECT_BASE, 'Include'])
else:
inc_dir = get_path('platinclude')
return os.path.join(inc_dir, 'pyconfig.h')
parts.append(get_path('platinclude'))
parts.append('pyconfig.h')
return os.path.join(parts)


def get_scheme_names():
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp