Description: read requirements and version directly in setup.py The 0.4.4 upstream tarball removed lib/core/installation.py, but setup.py still imports get_dependencies() from that module. It also imports VERSION from lib.core.settings, which fails under PEP 517 isolated builds because the lib package is not on sys.path. Read requirements.txt directly and hardcode the version to avoid importing lib during build. Author: Clay Stan Forwarded: no Last-Update: 2026-06-26 Index: dirsearch/setup.py =================================================================== --- dirsearch.orig/setup.py +++ dirsearch/setup.py @@ -4,13 +4,19 @@ import setuptools import shutil import tempfile -from lib.core.installation import get_dependencies -from lib.core.settings import VERSION +VERSION = "0.4.4" current_dir = os.path.abspath(os.path.dirname(__file__)) + + +def get_dependencies(): + with io.open(os.path.join(current_dir, "requirements.txt"), encoding="utf-8") as fd: + return [line.strip() for line in fd if line.strip() and not line.lstrip().startswith("#") and "setuptools" not in line] + + with io.open(os.path.join(current_dir, "README.md"), encoding="utf-8") as fd: desc = fd.read() env_dir = tempfile.mkdtemp(prefix="dirsearch-install-") shutil.copytree(os.path.abspath(os.getcwd()), os.path.join(env_dir, "dirsearch"))