yaffshiv
yaffshiv copied to clipboard
Cant install with python3
Package cant be installed using Python3. I get following error message:
┌──(venv)─(root㉿kali)-[/opt/yaffshiv]
└─# python3 setup.py install
/opt/jefferson/venv/lib/python3.11/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
/opt/jefferson/venv/lib/python3.11/site-packages/setuptools/command/easy_install.py:146: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
warning: install_lib: 'build/lib' does not exist -- no Python modules to install
zip_safe flag not set; analyzing archive contents...
For the reference, I replaced setup.py with this and it worked (tho I cut some cleanup code):
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup, find_packages
SCRIPT_NAME = "yaffshiv"
setup(name = SCRIPT_NAME,
version = "0.1",
description = "YAFFS extraction tool",
author = "Craig Heffner",
url = "https://github.com/devttys0/%s" % SCRIPT_NAME,
requires = [],
packages=find_packages()
)