forked from pool/python-setuptools
* Removed verification for existing ``depends.txt`` file
* Remove autofixing of broken ``.egg-info`` directories
containing the ``-`` character in their base name (without suffix).
* Remove deprecated APIs in ``easy_install``:
``get_script_args``,
``get_script_header`` and ``get_writer``.
* Removed ``egg_info.get_pkg_info_revision`` (deprecated
* Removed ``setuptools.dist._get_unpatched`` (deprecated
* Removed support for SVN in
``setuptools.package_index`` (deprecated since 2018).
* Removed support for invalid ``pyproject.toml`` files.
* Added symlink support to launcher for installed
executables -- by :user:`eugene-sevostianov-sc`
* Updated vendored ``packaging`` version from 23.0 to
23.1 -- by :user:`MetRonnie`
* Implemented workaround for old versions of
``vswhere``, which miss the
* ``-requiresAny`` parameter, such as the ones distributed
together with Visual Studio 2017 < 15.6.
* Changed ``DistutilsMetaFinder`` to skip
``spec_for_pip`` on Python >= 3.12.
* Removed ``_distutils_hack.remove_shim`` on Python >=
3.12 (since ``distutils`` was removed from the standard library,
``DistutilsMetaFinder`` cannot be disabled on Python >=
3.12).
* #3920: Add a link to deprecation warning in ``pkg_resources``
and improve ``stacklevel`` for better visibility.
- drop use-tarfile-extraction_filter.patch (upstream)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-setuptools?expand=0&rev=247
22 lines
1.0 KiB
Diff
22 lines
1.0 KiB
Diff
Index: setuptools-68.0.0/setuptools/_distutils/sysconfig.py
|
|
===================================================================
|
|
--- setuptools-68.0.0.orig/setuptools/_distutils/sysconfig.py
|
|
+++ setuptools-68.0.0/setuptools/_distutils/sysconfig.py
|
|
@@ -246,9 +246,13 @@ def get_python_lib(plat_specific=0, stan
|
|
|
|
if os.name == "posix":
|
|
if plat_specific or standard_lib:
|
|
- # Platform-specific modules (any module from a non-pure-Python
|
|
- # module distribution) or standard Python library modules.
|
|
- libdir = getattr(sys, "platlibdir", "lib")
|
|
+ # Python 3.8 doesn't have sys.platlibdir
|
|
+ if sys.version_info < (3, 9):
|
|
+ libdir = get_config_var("platsubdir") or "lib"
|
|
+ else:
|
|
+ # Platform-specific modules (any module from a non-pure-Python
|
|
+ # module distribution) or standard Python library modules.
|
|
+ libdir = getattr(sys, "platlibdir", "lib")
|
|
else:
|
|
# Pure Python
|
|
libdir = "lib"
|