mirror of
https://github.com/irssi/irssi.git
synced 2025-04-25 04:21:22 -05:00
patch old setuptools for python 3.12 for github workflow
This commit is contained in:
parent
a7bb40f530
commit
e8e5bf5d81
24
.github/workflows/check.yml
vendored
24
.github/workflows/check.yml
vendored
@ -20,6 +20,30 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
sudo apt update && sudo apt install $apt_build_deps
|
sudo apt update && sudo apt install $apt_build_deps
|
||||||
eval "$get_pip_build_deps_meson"
|
eval "$get_pip_build_deps_meson"
|
||||||
|
patch ~/.local/lib/python3.12/site-packages/pkg_resources/__init__.py <<- PATCH
|
||||||
|
--- __init__.py 2024-12-16 20:37:46.733230351 +0100
|
||||||
|
+++ __init__.py 2024-12-16 20:38:42.479554540 +0100
|
||||||
|
@@ -2188,7 +2188,8 @@ def resolve_egg_link(path):
|
||||||
|
return next(dist_groups, ())
|
||||||
|
|
||||||
|
|
||||||
|
-register_finder(pkgutil.ImpImporter, find_on_path)
|
||||||
|
+if hasattr(pkgutil, 'ImpImporter'):
|
||||||
|
+ register_finder(pkgutil.ImpImporter, find_on_path)
|
||||||
|
|
||||||
|
if hasattr(importlib_machinery, 'FileFinder'):
|
||||||
|
register_finder(importlib_machinery.FileFinder, find_on_path)
|
||||||
|
@@ -2345,7 +2346,8 @@ def file_ns_handler(importer, path_item,
|
||||||
|
return subpath
|
||||||
|
|
||||||
|
|
||||||
|
-register_namespace_handler(pkgutil.ImpImporter, file_ns_handler)
|
||||||
|
+if hasattr(pkgutil, 'ImpImporter'):
|
||||||
|
+ register_namespace_handler(pkgutil.ImpImporter, file_ns_handler)
|
||||||
|
register_namespace_handler(zipimport.zipimporter, file_ns_handler)
|
||||||
|
|
||||||
|
if hasattr(importlib_machinery, 'FileFinder'):
|
||||||
|
PATCH
|
||||||
- uses: actions/checkout@main
|
- uses: actions/checkout@main
|
||||||
- name: make dist
|
- name: make dist
|
||||||
run: |
|
run: |
|
||||||
|
@ -80,10 +80,11 @@ echo "Creating sdist..."
|
|||||||
python3 -W ignore -c 'from setuptools import *;setup()' --quiet sdist --formats=tar
|
python3 -W ignore -c 'from setuptools import *;setup()' --quiet sdist --formats=tar
|
||||||
|
|
||||||
tar --delete --file "dist/$name-$version.tar" \
|
tar --delete --file "dist/$name-$version.tar" \
|
||||||
"$name-$version/setup.cfg" \
|
$(tar tf "dist/$name-$version.tar" | grep -F \
|
||||||
"$name-$version/pyproject.toml" \
|
"$name-$version/setup.cfg
|
||||||
"$name-$version/$name.egg-info" \
|
$name-$version/pyproject.toml
|
||||||
"$name-$version/PKG-INFO"
|
$name-$version/$name.egg-info
|
||||||
|
$name-$version/PKG-INFO")
|
||||||
|
|
||||||
echo "Zipping..."
|
echo "Zipping..."
|
||||||
xz -k "dist/$name-$version.tar"
|
xz -k "dist/$name-$version.tar"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user