[BUG] Difference among distutils.sysconfig.get_python_inc()
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 2.9k
- Forks
- 1.4k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 1
Description
setuptools version
65.3.0
Python version
3.9.2
OS
Linux
Additional environment information
My env is in a docker.
Description
Hi there, i find that setuptools 65.3.0 hack the distutils. I want to get the include dir of python
And i found that
before install setuptools
python -c 'import distutils.sysconfig; print(distutils.sysconfig.get_python_inc())'
and get /opt/aaa/python/python-3.9.2/include/python3.9
after install that
python -c 'import distutils.sysconfig; print(distutils.sysconfig.get_python_inc())'
and get /devcloud/ws/sirFh/workspace/j_VWBQ8FGA/aaa_python/third_build/python/include/python3.9
/opt/aaa/python/python-3.9.2/include/python3.9 is the right anwser.
And /devcloud/ws/sirFh/workspace/j_VWBQ8FGA/aaa_python/third_build/python/include/python3.9 does not exist in my docker or even my machine
Expected behavior
Get the right include dir
How to Reproduce
import distutils.sysconfig; print(distutils.sysconfig.get_python_inc())
Output
python -c 'import distutils.sysconfig; print(distutils.sysconfig.get_python_inc())'
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported distutils.sysconfig.get_python_inc() command before and after installing setuptools 65.3.0 in the described Python 3.9.2 Linux Docker environment. Trace why the returned include directory changes, and consider the issue complete when the command returns the valid Python include directory rather than a nonexistent path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100