You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Make 'sys.platform' return "freebsd" only on FreeBSD without major version #129393
When using using sys.platform and especially requirements.txt /pyproject.toml one cannot constrain dependencies to FreeBSD as whole, but need to deal with the suffixed major version. A change should follow suit all other cases to contain the platform name only without the major version.
Locally patched:
osipovmi@deblndw011x:~/var/Projekte/cpython (main *+>)
$ /tmp/python-3.13/bin/python3
Python 3.14.0a4+ (heads/main-dirty:8e57877e3f4, Jan 28 2025, 10:01:48) [Clang 19.1.5 (https://github.com/llvm/llvm-project.git llvmorg-19.1.5-0-gab4b5a on freebsd
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.platform
'freebsd'
>>>
Activity
pythongh-129393: Make 'sys.platform' return "freebsd" only on FreeBSD…
pythongh-129393: Make 'sys.platform' return "freebsd" only on FreeBSD…
pythongh-129393: Make 'sys.platform' return "freebsd" only on FreeBSD…
gh-129393: Make 'sys.platform' return "freebsd" only on FreeBSD (#129394
vstinner commentedon Jan 31, 2025
Implemented by the change e3eba8c.
pythongh-129393: Make 'sys.platform' return "freebsd" only on FreeBSD (…