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

Difference among distutils.sysconfig.get_python_inc() #179

Closed
wqh17101 opened this issue Sep 23, 2022 · 3 comments
Closed

Difference among distutils.sysconfig.get_python_inc() #179

wqh17101 opened this issue Sep 23, 2022 · 3 comments

Comments

@wqh17101
Copy link

The issue is related to pypa/setuptools#3605

@wqh17101
Copy link
Author

wqh17101 commented Sep 23, 2022

I found that
in func get_python_inc

default_prefix:/opt/aaa/python/python-3.9.2
resolved_prefix:/opt/aa/python/python-3.9.2
 _get_python_inc_posix_python : None
_get_python_inc_from_config: /devcloud/ws/sirFh/workspace/j_VWBQ8FGA/aaa_python/third_build/python/include/python3.9
 _get_python_inc_posix_prefix: /opt/aaa/python/python-3.9.2/include/python3.9

@wqh17101
Copy link
Author

I found that the path in _get_python_inc_from_config is geneated by prefix which is a option of building python.
But the python can install to anywhere,maybe not the same as prefix.So this will cause this error.
Maybe we can adjust the order of

return (
_get_python_inc_posix_python(plat_specific)
or _get_python_inc_from_config(plat_specific, spec_prefix)
or _get_python_inc_posix_prefix(prefix)
)

like

 return (
        _get_python_inc_posix_python(plat_specific)
        or _get_python_inc_posix_prefix(prefix
        or _get_python_inc_from_config(plat_specific, spec_prefix)
        )
    )

@jaraco
Copy link
Member

jaraco commented Oct 29, 2022

I believe this issue is a duplicate of #178.

@jaraco jaraco closed this as completed Oct 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants