summaryrefslogtreecommitdiff
path: root/dev-python/setuptools/files
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-06-12 11:50:53 -0500
committerroot <root@alpha.trunkmasters.com>2026-06-12 11:50:53 -0500
commit290aebdea65a02557706eaeda477fef0437b6a48 (patch)
treef87a939169a508a2e943570501b64cc16b411cda /dev-python/setuptools/files
parent6783ddcd4b73d9ce586a71770caed352bec93b16 (diff)
downloadbaldeagleos-repo-290aebdea65a02557706eaeda477fef0437b6a48.tar.gz
baldeagleos-repo-290aebdea65a02557706eaeda477fef0437b6a48.tar.xz
baldeagleos-repo-290aebdea65a02557706eaeda477fef0437b6a48.zip
Adding metadata
Diffstat (limited to 'dev-python/setuptools/files')
-rw-r--r--dev-python/setuptools/files/setuptools-62.4.0-py-compile.patch86
-rw-r--r--dev-python/setuptools/files/setuptools-75.6.0-disable-trove-classifiers.patch32
2 files changed, 0 insertions, 118 deletions
diff --git a/dev-python/setuptools/files/setuptools-62.4.0-py-compile.patch b/dev-python/setuptools/files/setuptools-62.4.0-py-compile.patch
deleted file mode 100644
index 09d630b363a2..000000000000
--- a/dev-python/setuptools/files/setuptools-62.4.0-py-compile.patch
+++ /dev/null
@@ -1,86 +0,0 @@
-From 8911d627245f4389488c5d65cce6d1258f4cce7b Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
-Date: Tue, 14 Jun 2022 05:58:20 +0200
-Subject: [PATCH] make -OO enable both opt-1 and opt-2
-
----
- setuptools/_distutils/command/build_py.py | 10 ++++------
- setuptools/_distutils/command/install_lib.py | 14 ++++++--------
- 2 files changed, 10 insertions(+), 14 deletions(-)
-
-diff --git a/setuptools/_distutils/command/build_py.py b/setuptools/_distutils/command/build_py.py
-index 1b22004e..88565bce 100644
---- a/setuptools/_distutils/command/build_py.py
-+++ b/setuptools/_distutils/command/build_py.py
-@@ -325,11 +325,9 @@ class build_py(Command):
- outputs.append(
- importlib.util.cache_from_source(filename, optimization='')
- )
-- if self.optimize > 0:
-+ for opt in range(1, self.optimize + 1):
- outputs.append(
-- importlib.util.cache_from_source(
-- filename, optimization=self.optimize
-- )
-+ importlib.util.cache_from_source(filename, optimization=opt)
- )
-
- outputs += [
-@@ -403,10 +401,10 @@ class build_py(Command):
- byte_compile(
- files, optimize=0, force=self.force, prefix=prefix, dry_run=self.dry_run
- )
-- if self.optimize > 0:
-+ for opt in range(1, self.optimize + 1):
- byte_compile(
- files,
-- optimize=self.optimize,
-+ optimize=opt,
- force=self.force,
- prefix=prefix,
- dry_run=self.dry_run,
-diff --git a/setuptools/_distutils/command/install_lib.py b/setuptools/_distutils/command/install_lib.py
-index ad3089c8..7f906a29 100644
---- a/setuptools/_distutils/command/install_lib.py
-+++ b/setuptools/_distutils/command/install_lib.py
-@@ -25,8 +25,8 @@ class install_lib(Command):
- # 2) compile .pyc only (--compile --no-optimize; default)
- # 3) compile .pyc and "opt-1" .pyc (--compile --optimize)
- # 4) compile "opt-1" .pyc only (--no-compile --optimize)
-- # 5) compile .pyc and "opt-2" .pyc (--compile --optimize-more)
-- # 6) compile "opt-2" .pyc only (--no-compile --optimize-more)
-+ # 5) compile .pyc, "opt-1" and "opt-2" .pyc (--compile --optimize-more)
-+ # 6) compile "opt-1" and "opt-2" .pyc (--no-compile --optimize-more)
- #
- # The UI for this is two options, 'compile' and 'optimize'.
- # 'compile' is strictly boolean, and only decides whether to
-@@ -142,10 +142,10 @@ class install_lib(Command):
- prefix=install_root,
- dry_run=self.dry_run,
- )
-- if self.optimize > 0:
-+ for opt in range(1, self.optimize + 1):
- byte_compile(
- files,
-- optimize=self.optimize,
-+ optimize=opt,
- force=self.force,
- prefix=install_root,
- verbose=self.verbose,
-@@ -182,11 +182,9 @@ class install_lib(Command):
- bytecode_files.append(
- importlib.util.cache_from_source(py_file, optimization='')
- )
-- if self.optimize > 0:
-+ for opt in range(1, self.optimize + 1):
- bytecode_files.append(
-- importlib.util.cache_from_source(
-- py_file, optimization=self.optimize
-- )
-+ importlib.util.cache_from_source(py_file, optimization=opt)
- )
-
- return bytecode_files
---
-2.35.1
-
diff --git a/dev-python/setuptools/files/setuptools-75.6.0-disable-trove-classifiers.patch b/dev-python/setuptools/files/setuptools-75.6.0-disable-trove-classifiers.patch
deleted file mode 100644
index c5111e985f61..000000000000
--- a/dev-python/setuptools/files/setuptools-75.6.0-disable-trove-classifiers.patch
+++ /dev/null
@@ -1,32 +0,0 @@
-From 0d9e8bc7d6df86381ac56770dc95fc75276f49ef Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
-Date: Thu, 21 Nov 2024 20:40:14 +0100
-Subject: [PATCH] Add an option to disable using trove-classifiers package
-
-As requested in https://github.com/pypa/setuptools/issues/4459, add
-a VALIDATE_PYPROJECT_NO_TROVE_CLASSIFIERS environment variable that can
-be used to disable using trove_classifiers package even if it is
-available. This can be used when the system features an outdated
-trove_classifiers, and therefore incorrectly triggers validation error.
-The change is designed to be absolutely minimal and non-intrusive.
----
- setuptools/config/_validate_pyproject/formats.py | 3 +++
- 1 file changed, 3 insertions(+)
-
-diff --git a/setuptools/config/_validate_pyproject/formats.py b/setuptools/config/_validate_pyproject/formats.py
-index aacf4092b..0b05ab17b 100644
---- a/setuptools/config/_validate_pyproject/formats.py
-+++ b/setuptools/config/_validate_pyproject/formats.py
-@@ -210,6 +210,9 @@ try:
- """See https://pypi.org/classifiers/"""
- return value in _trove_classifiers or value.lower().startswith("private ::")
-
-+ if os.getenv("VALIDATE_PYPROJECT_NO_TROVE_CLASSIFIERS"): # pragma: no cover
-+ raise ImportError()
-+
- except ImportError: # pragma: no cover
- trove_classifier = _TroveClassifier()
-
---
-2.47.0
-