Strange sysconfig behaviour for source-compiled Python
See original GitHub issueDescription
A special case of #10151
The Python-3.8.2 seems to have a Windows structure despite my working on Linux. I was requested to open a new issue for this.
See: https://github.com/pypa/pip/issues/10151#issuecomment-890846520
>>> python -m pip install --upgrade opcua-client
WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
distutils: /usr/local/include/python3.8/UNKNOWN
sysconfig: /opt/Python-3.8.2/Include/UNKNOWN
WARNING: Additional context:
user = False
home = None
root = None
prefix = None
Expected behavior
No response
pip version
21.2.2
Python version
3.8.2
OS
Pop!_OS
How to Reproduce
python -m pip install --upgrade opcua-client
Output
/opt/Python-3.8.2
βββ Doc
βΒ Β βββ c-api
βΒ Β βββ data
βΒ Β βββ distributing
βΒ Β βββ distutils
βΒ Β βββ extending
βΒ Β βββ faq
βΒ Β βββ howto
βΒ Β βββ includes
βΒ Β βΒ Β βββ sqlite3
βΒ Β βββ install
βΒ Β βββ installing
βΒ Β βββ library
βΒ Β βββ reference
βΒ Β βββ tools
βΒ Β βΒ Β βββ extensions
βΒ Β βΒ Β βββ static
βΒ Β βΒ Β βββ templates
βΒ Β βββ tutorial
βΒ Β βββ using
βΒ Β βββ whatsnew
βββ Grammar
βββ Include
βΒ Β βββ cpython
βΒ Β βββ internal
βββ Lib
βΒ Β βββ __pycache__
βΒ Β βββ asyncio
βΒ Β βΒ Β βββ __pycache__
βΒ Β βββ collections
βΒ Β βΒ Β βββ __pycache__
βΒ Β βββ concurrent
βΒ Β βΒ Β βββ __pycache__
βΒ Β βΒ Β βββ futures
βΒ Β βΒ Β βββ __pycache__
βΒ Β βββ ctypes
βΒ Β βΒ Β βββ __pycache__
βΒ Β βΒ Β βββ macholib
βΒ Β βΒ Β βββ test
βΒ Β βββ curses
βΒ Β βΒ Β βββ __pycache__
βΒ Β βββ dbm
βΒ Β βββ distutils
βΒ Β βΒ Β βββ __pycache__
βΒ Β βΒ Β βββ command
βΒ Β βΒ Β βΒ Β βββ __pycache__
βΒ Β βΒ Β βββ tests
βΒ Β βββ email
βΒ Β βΒ Β βββ __pycache__
βΒ Β βΒ Β βββ mime
βΒ Β βββ encodings
βΒ Β βΒ Β βββ __pycache__
βΒ Β βββ ensurepip
βΒ Β βΒ Β βββ __pycache__
βΒ Β βΒ Β βββ _bundled
βΒ Β βββ html
βΒ Β βΒ Β βββ __pycache__
βΒ Β βββ http
βΒ Β βΒ Β βββ __pycache__
βΒ Β βββ idlelib
βΒ Β βΒ Β βββ Icons
βΒ Β βΒ Β βββ idle_test
βΒ Β βββ importlib
βΒ Β βΒ Β βββ __pycache__
βΒ Β βββ json
βΒ Β βΒ Β βββ __pycache__
βΒ Β βββ lib2to3
βΒ Β βΒ Β βββ __pycache__
βΒ Β βΒ Β βββ fixes
βΒ Β βΒ Β βββ pgen2
βΒ Β βΒ Β βΒ Β βββ __pycache__
βΒ Β βΒ Β βββ tests
βΒ Β βΒ Β βββ data
βΒ Β βΒ Β βββ fixers
βΒ Β βΒ Β βββ myfixes
βΒ Β βββ logging
βΒ Β βΒ Β βββ __pycache__
βΒ Β βββ msilib
βΒ Β βββ multiprocessing
βΒ Β βΒ Β βββ __pycache__
βΒ Β βΒ Β βββ dummy
βΒ Β βββ pydoc_data
βΒ Β βΒ Β βββ __pycache__
βΒ Β βββ site-packages
βΒ Β βββ sqlite3
βΒ Β βΒ Β βββ __pycache__
βΒ Β βΒ Β βββ test
βΒ Β βββ test
βΒ Β βΒ Β βββ audiodata
βΒ Β βΒ Β βββ capath
βΒ Β βΒ Β βββ cjkencodings
βΒ Β βΒ Β βββ crashers
βΒ Β βΒ Β βββ data
βΒ Β βΒ Β βββ decimaltestdata
βΒ Β βΒ Β βββ dtracedata
βΒ Β βΒ Β βββ eintrdata
βΒ Β βΒ Β βββ encoded_modules
βΒ Β βΒ Β βββ imghdrdata
βΒ Β βΒ Β βββ leakers
βΒ Β βΒ Β βββ libregrtest
βΒ Β βΒ Β βββ sndhdrdata
βΒ Β βΒ Β βββ subprocessdata
βΒ Β βΒ Β βββ support
βΒ Β βΒ Β βββ test_asyncio
βΒ Β βΒ Β βββ test_email
βΒ Β βΒ Β βΒ Β βββ data
βΒ Β βΒ Β βββ test_import
βΒ Β βΒ Β βΒ Β βββ data
βΒ Β βΒ Β βΒ Β βββ circular_imports
βΒ Β βΒ Β βΒ Β βΒ Β βββ subpkg
βΒ Β βΒ Β βΒ Β βββ package
βΒ Β βΒ Β βΒ Β βββ package2
βΒ Β βΒ Β βββ test_importlib
βΒ Β βΒ Β βΒ Β βββ builtin
βΒ Β βΒ Β βΒ Β βββ data
βΒ Β βΒ Β βΒ Β βββ data01
βΒ Β βΒ Β βΒ Β βΒ Β βββ subdirectory
βΒ Β βΒ Β βΒ Β βββ data02
βΒ Β βΒ Β βΒ Β βΒ Β βββ one
βΒ Β βΒ Β βΒ Β βΒ Β βββ two
βΒ Β βΒ Β βΒ Β βββ data03
βΒ Β βΒ Β βΒ Β βΒ Β βββ namespace
βΒ Β βΒ Β βΒ Β βΒ Β βββ portion1
βΒ Β βΒ Β βΒ Β βΒ Β βββ portion2
βΒ Β βΒ Β βΒ Β βββ extension
βΒ Β βΒ Β βΒ Β βββ frozen
βΒ Β βΒ Β βΒ Β βββ import_
βΒ Β βΒ Β βΒ Β βββ namespace_pkgs
βΒ Β βΒ Β βΒ Β βΒ Β βββ both_portions
βΒ Β βΒ Β βΒ Β βΒ Β βΒ Β βββ foo
βΒ Β βΒ Β βΒ Β βΒ Β βββ module_and_namespace_package
βΒ Β βΒ Β βΒ Β βΒ Β βΒ Β βββ a_test
βΒ Β βΒ Β βΒ Β βΒ Β βββ not_a_namespace_pkg
βΒ Β βΒ Β βΒ Β βΒ Β βΒ Β βββ foo
βΒ Β βΒ Β βΒ Β βΒ Β βββ portion1
βΒ Β βΒ Β βΒ Β βΒ Β βΒ Β βββ foo
βΒ Β βΒ Β βΒ Β βΒ Β βββ portion2
βΒ Β βΒ Β βΒ Β βΒ Β βΒ Β βββ foo
βΒ Β βΒ Β βΒ Β βΒ Β βββ project1
βΒ Β βΒ Β βΒ Β βΒ Β βΒ Β βββ parent
βΒ Β βΒ Β βΒ Β βΒ Β βΒ Β βββ child
βΒ Β βΒ Β βΒ Β βΒ Β βββ project2
βΒ Β βΒ Β βΒ Β βΒ Β βΒ Β βββ parent
βΒ Β βΒ Β βΒ Β βΒ Β βΒ Β βββ child
βΒ Β βΒ Β βΒ Β βΒ Β βββ project3
βΒ Β βΒ Β βΒ Β βΒ Β βββ parent
βΒ Β βΒ Β βΒ Β βΒ Β βββ child
βΒ Β βΒ Β βΒ Β βββ source
βΒ Β βΒ Β βΒ Β βββ zipdata01
βΒ Β βΒ Β βΒ Β βββ zipdata02
βΒ Β βΒ Β βββ test_json
βΒ Β βΒ Β βββ test_tools
βΒ Β βΒ Β βββ test_warnings
βΒ Β βΒ Β βΒ Β βββ data
βΒ Β βΒ Β βββ tracedmodules
βΒ Β βΒ Β βββ xmltestdata
βΒ Β βΒ Β βΒ Β βββ c14n-20
βΒ Β βΒ Β βββ ziptestdata
βΒ Β βββ tkinter
βΒ Β βΒ Β βββ __pycache__
βΒ Β βΒ Β βββ test
βΒ Β βΒ Β βββ test_tkinter
βΒ Β βΒ Β βββ test_ttk
βΒ Β βββ turtledemo
βΒ Β βββ unittest
βΒ Β βΒ Β βββ __pycache__
βΒ Β βΒ Β βββ test
βΒ Β βΒ Β βββ testmock
βΒ Β βββ urllib
βΒ Β βΒ Β βββ __pycache__
βΒ Β βββ venv
βΒ Β βΒ Β βββ scripts
βΒ Β βΒ Β βββ common
βΒ Β βΒ Β βββ nt
βΒ Β βΒ Β βββ posix
βΒ Β βββ wsgiref
βΒ Β βββ xml
βΒ Β βΒ Β βββ __pycache__
βΒ Β βΒ Β βββ dom
βΒ Β βΒ Β βΒ Β βββ __pycache__
βΒ Β βΒ Β βββ etree
βΒ Β βΒ Β βΒ Β βββ __pycache__
βΒ Β βΒ Β βββ parsers
βΒ Β βΒ Β βΒ Β βββ __pycache__
βΒ Β βΒ Β βββ sax
βΒ Β βΒ Β βββ __pycache__
βΒ Β βββ xmlrpc
βΒ Β βββ __pycache__
βββ Mac
βΒ Β βββ BuildScript
βΒ Β βΒ Β βββ resources
βΒ Β βΒ Β βββ scripts
βΒ Β βββ IDLE
βΒ Β βΒ Β βββ IDLE.app
βΒ Β βΒ Β βββ Contents
βΒ Β βΒ Β βββ MacOS
βΒ Β βΒ Β βββ Resources
βΒ Β βββ Icons
βΒ Β βββ PythonLauncher
βΒ Β βΒ Β βββ English.lproj
βΒ Β βΒ Β βββ MainMenu.nib
βΒ Β βΒ Β βββ MyDocument.nib
βΒ Β βΒ Β βββ PreferenceWindow.nib
βΒ Β βββ Resources
βΒ Β βΒ Β βββ app
βΒ Β βΒ Β βΒ Β βββ Resources
βΒ Β βΒ Β βββ framework
βΒ Β βΒ Β βββ iconsrc
βΒ Β βββ Tools
βββ Misc
βββ Modules
βΒ Β βββ _blake2
βΒ Β βΒ Β βββ clinic
βΒ Β βΒ Β βββ impl
βΒ Β βββ _ctypes
βΒ Β βΒ Β βββ darwin
βΒ Β βΒ Β βββ libffi_osx
βΒ Β βΒ Β βββ include
βΒ Β βΒ Β βββ powerpc
βΒ Β βΒ Β βββ x86
βΒ Β βββ _decimal
βΒ Β βΒ Β βββ libmpdec
βΒ Β βΒ Β βΒ Β βββ literature
βΒ Β βΒ Β βββ tests
βΒ Β βββ _io
βΒ Β βΒ Β βββ clinic
βΒ Β βββ _multiprocessing
βΒ Β βΒ Β βββ clinic
βΒ Β βββ _sha3
βΒ Β βΒ Β βββ clinic
βΒ Β βΒ Β βββ kcp
βΒ Β βββ _sqlite
βΒ Β βββ _ssl
βΒ Β βββ _xxtestfuzz
βΒ Β βΒ Β βββ dictionaries
βΒ Β βΒ Β βββ fuzz_csv_reader_corpus
βΒ Β βΒ Β βββ fuzz_json_loads_corpus
βΒ Β βΒ Β βββ fuzz_sre_compile_corpus
βΒ Β βββ cjkcodecs
βΒ Β βΒ Β βββ clinic
βΒ Β βββ clinic
βΒ Β βββ expat
βββ Objects
βΒ Β βββ clinic
βΒ Β βββ stringlib
βΒ Β βββ clinic
βββ PC
βΒ Β βββ bdist_wininst
βΒ Β βββ clinic
βΒ Β βββ icons
βΒ Β βββ layout
βΒ Β βββ support
βββ PCbuild
βββ Parser
βΒ Β βββ pgen
βββ Programs
βββ Python
βΒ Β βββ clinic
βββ Tools
βΒ Β βββ buildbot
βΒ Β βββ c-globals
βΒ Β βββ ccbench
βΒ Β βββ clinic
βΒ Β βββ demo
βΒ Β βββ freeze
βΒ Β βΒ Β βββ test
βΒ Β βββ gdb
βΒ Β βββ i18n
βΒ Β βββ importbench
βΒ Β βββ iobench
βΒ Β βββ msi
βΒ Β βΒ Β βββ bundle
βΒ Β βΒ Β βΒ Β βββ bootstrap
βΒ Β βΒ Β βΒ Β βββ packagegroups
βΒ Β βΒ Β βββ core
βΒ Β βΒ Β βββ dev
βΒ Β βΒ Β βββ doc
βΒ Β βΒ Β βββ exe
βΒ Β βΒ Β βββ launcher
βΒ Β βΒ Β βββ lib
βΒ Β βΒ Β βββ path
βΒ Β βΒ Β βββ pip
βΒ Β βΒ Β βββ tcltk
βΒ Β βΒ Β βββ test
βΒ Β βΒ Β βββ tools
βΒ Β βΒ Β βββ ucrt
βΒ Β βββ nuget
βΒ Β βββ parser
βΒ Β βββ pynche
βΒ Β βΒ Β βββ X
βΒ Β βββ scripts
βΒ Β βββ ssl
βΒ Β βββ stringbench
βΒ Β βββ test2to3
βΒ Β βΒ Β βββ test
βΒ Β βΒ Β βββ test2to3
βΒ Β βββ tz
βΒ Β βββ unicode
βΒ Β βΒ Β βββ python-mappings
βΒ Β βββ unittestgui
βββ build
βΒ Β βββ lib.linux-x86_64-3.8
βΒ Β βΒ Β βββ __pycache__
βΒ Β βββ scripts-3.8
βΒ Β βββ temp.linux-x86_64-3.8
βΒ Β βββ opt
βΒ Β βββ Python-3.8.2
βΒ Β βββ Modules
βΒ Β βββ _blake2
βΒ Β βββ _ctypes
βΒ Β βββ _decimal
βΒ Β βΒ Β βββ libmpdec
βΒ Β βββ _multiprocessing
βΒ Β βββ _sha3
βΒ Β βββ _sqlite
βΒ Β βββ _xxtestfuzz
βΒ Β βββ cjkcodecs
βΒ Β βββ expat
βββ m4
319 directories
Code of Conduct
- I agree to follow the PSF Code of Conduct.
Issue Analytics
- State:
- Created 2 years ago
- Comments:17 (9 by maintainers)
Top Results From Across the Web
Issue 37384: Compiling Python 3.7.3 from source and getting ...
So I am trying to compile python 3.7.3 on debian 9.9, got all the libraries installed and previously I was getting an uuid...
Read more >"WARNING: Value for scheme.data does not match" when I try ...
Python 2), pip has used distutils.sysconfig to get information about where to install your Python packages. That module can be functionallyΒ ...
Read more >29.2. sysconfig β Provide access to Python's configuration ...
The sysconfig module provides access to Python's configuration information like the list of installation paths and the configuration variables relevant for theΒ ...
Read more >Your Guide to the CPython Source Code - Real Python
Next, we'll compile CPython from the source code. ... there are some interesting techniques to simulate the behavior of pointers.
Read more >How To Install Python 3.10 on CentOS 7 | CentOS 8
Python is a popular high-level object-oriented programming language that is open-source and has a big community. Its popularity grows as aΒ ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
So to summarise, this warning only occurs when you install Python (when Python automatically populates pip), right? After installation, pip whould work fine without emitting any warnings, at least thatβs what I see from my expriements.
If you want to make a completely independent framework installation, create a new user, say piptest01. Then: β Switch to that user account β obtain the python source distribution and expand the archive β cd to the top level directory of the expanded archive β run the following commands:
Note: Some parts of the Standard Library wonβt get built unless libraries they need are preinstalled. But that probably doesnβt matter for the testing of pip that you are concerned with.
More details (such as locations where things are stored, and more about frameworks) can be found by referring to: https://github.com/python/cpython/blob/3.9/Mac/README.rst which can also be found in the Mac subdirectory of the source distribution.