fix setup.py so pip install does not fail #3
9
setup.py
9
setup.py
|
@ -1,8 +1,11 @@
|
||||||
import setuptools
|
import setuptools
|
||||||
|
|
||||||
from pip.req import parse_requirements
|
try: # for pip >= 10
|
||||||
|
from pip._internal.req import parse_requirements
|
||||||
|
except ImportError: # for pip <= 9.0.3
|
||||||
|
from pip.req import parse_requirements
|
||||||
|
|
||||||
with open("README.old.md", "r", encoding="utf-8") as fh:
|
with open("README.md", "r", encoding="utf-8") as fh:
|
||||||
long_description = fh.read()
|
long_description = fh.read()
|
||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
|
@ -67,7 +70,7 @@ setuptools.setup(
|
||||||
"g-mlp-pytorch",
|
"g-mlp-pytorch",
|
||||||
"x-clip",
|
"x-clip",
|
||||||
"x_transformers==1.0.4",
|
"x_transformers==1.0.4",
|
||||||
|
|
||||||
"bitsandbytes==0.35.0",
|
"bitsandbytes==0.35.0",
|
||||||
],
|
],
|
||||||
classifiers=[
|
classifiers=[
|
||||||
|
|
Loading…
Reference in New Issue
Block a user