mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-08-21 09:43:11 +00:00
chore: modify colorama==0.4.10
This commit is contained in:
parent
3d5e0f4028
commit
6183fa08d2
6
setup.py
6
setup.py
@ -8,7 +8,6 @@ from enum import Enum
|
|||||||
import urllib.request
|
import urllib.request
|
||||||
from urllib.parse import urlparse, quote
|
from urllib.parse import urlparse, quote
|
||||||
import re
|
import re
|
||||||
from pip._internal.utils.appdirs import user_cache_dir
|
|
||||||
import shutil
|
import shutil
|
||||||
from setuptools import find_packages
|
from setuptools import find_packages
|
||||||
|
|
||||||
@ -67,6 +66,9 @@ def cache_package(package_url: str, package_name: str, is_windows: bool = False)
|
|||||||
safe_url, parsed_url = encode_url(package_url)
|
safe_url, parsed_url = encode_url(package_url)
|
||||||
if BUILD_NO_CACHE:
|
if BUILD_NO_CACHE:
|
||||||
return safe_url
|
return safe_url
|
||||||
|
|
||||||
|
from pip._internal.utils.appdirs import user_cache_dir
|
||||||
|
|
||||||
filename = os.path.basename(parsed_url)
|
filename = os.path.basename(parsed_url)
|
||||||
cache_dir = os.path.join(user_cache_dir("pip"), "http", "wheels", package_name)
|
cache_dir = os.path.join(user_cache_dir("pip"), "http", "wheels", package_name)
|
||||||
os.makedirs(cache_dir, exist_ok=True)
|
os.makedirs(cache_dir, exist_ok=True)
|
||||||
@ -279,7 +281,7 @@ def core_requires():
|
|||||||
"importlib-resources==5.12.0",
|
"importlib-resources==5.12.0",
|
||||||
"psutil==5.9.4",
|
"psutil==5.9.4",
|
||||||
"python-dotenv==1.0.0",
|
"python-dotenv==1.0.0",
|
||||||
"colorama",
|
"colorama==0.4.10",
|
||||||
"prettytable",
|
"prettytable",
|
||||||
"cachetools",
|
"cachetools",
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user