From af39760e235df2f79e9b011ecb26936369e36564 Mon Sep 17 00:00:00 2001 From: mrfakename Date: Thu, 29 Feb 2024 14:02:56 -0800 Subject: [PATCH] Fix GH Actions bug where unable to import pip --- setup.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index bffc6d94..7680ed91 100644 --- a/setup.py +++ b/setup.py @@ -2,11 +2,12 @@ from setuptools import setup, find_packages from setuptools.command.develop import develop from setuptools.command.install import install -from pip.req import parse_requirements + cwd = os.path.dirname(os.path.abspath(__file__)) -install_reqs = parse_requirements('requirements.txt') -reqs = [str(ir.req) for ir in install_reqs] + +with open('requirements.txt') as f: + reqs = f.read().splitlines() class PostInstallCommand(install): """Post-installation for installation mode.""" def run(self):