mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 05:13:16 -07:00
Add Python 3.12 and fix Radarr handling (#1989)
* Added Python3.12 and future 3.13 * Fix Radarr result handling * remove py2.7 and py3.7 support
This commit is contained in:
parent
b802aca7e1
commit
f98d6fff65
173 changed files with 17498 additions and 21001 deletions
|
@ -4,7 +4,7 @@ import os
|
|||
from setuptools import Command
|
||||
from setuptools import namespaces
|
||||
from setuptools.archive_util import unpack_archive
|
||||
import pkg_resources
|
||||
from .._path import ensure_directory
|
||||
|
||||
|
||||
class install_egg_info(namespaces.Installer, Command):
|
||||
|
@ -20,12 +20,9 @@ class install_egg_info(namespaces.Installer, Command):
|
|||
self.install_dir = None
|
||||
|
||||
def finalize_options(self):
|
||||
self.set_undefined_options('install_lib',
|
||||
('install_dir', 'install_dir'))
|
||||
self.set_undefined_options('install_lib', ('install_dir', 'install_dir'))
|
||||
ei_cmd = self.get_finalized_command("egg_info")
|
||||
basename = pkg_resources.Distribution(
|
||||
None, None, ei_cmd.egg_name, ei_cmd.egg_version
|
||||
).egg_name() + '.egg-info'
|
||||
basename = f"{ei_cmd._get_egg_basename()}.egg-info"
|
||||
self.source = ei_cmd.egg_info
|
||||
self.target = os.path.join(self.install_dir, basename)
|
||||
self.outputs = []
|
||||
|
@ -37,10 +34,8 @@ class install_egg_info(namespaces.Installer, Command):
|
|||
elif os.path.exists(self.target):
|
||||
self.execute(os.unlink, (self.target,), "Removing " + self.target)
|
||||
if not self.dry_run:
|
||||
pkg_resources.ensure_directory(self.target)
|
||||
self.execute(
|
||||
self.copytree, (), "Copying %s to %s" % (self.source, self.target)
|
||||
)
|
||||
ensure_directory(self.target)
|
||||
self.execute(self.copytree, (), "Copying %s to %s" % (self.source, self.target))
|
||||
self.install_namespaces()
|
||||
|
||||
def get_outputs(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue