Fix GH Actions bug where unable to import pip
This commit is contained in:
7
setup.py
7
setup.py
@@ -2,11 +2,12 @@ import os
|
|||||||
from setuptools import setup, find_packages
|
from setuptools import setup, find_packages
|
||||||
from setuptools.command.develop import develop
|
from setuptools.command.develop import develop
|
||||||
from setuptools.command.install import install
|
from setuptools.command.install import install
|
||||||
from pip.req import parse_requirements
|
|
||||||
|
|
||||||
cwd = os.path.dirname(os.path.abspath(__file__))
|
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):
|
class PostInstallCommand(install):
|
||||||
"""Post-installation for installation mode."""
|
"""Post-installation for installation mode."""
|
||||||
def run(self):
|
def run(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user