mirror of
https://github.com/wassname/ray.git
synced 2026-06-30 06:46:40 +08:00
Remove debug extras from setup.py (#12751)
This commit is contained in:
@@ -120,7 +120,7 @@ setup_commands:
|
||||
# has your Ray repo pre-cloned. Then, you can replace the pip installs
|
||||
# below with a git checkout <your_sha> (and possibly a recompile).
|
||||
- source activate pytorch_p36 && pip install -U ray
|
||||
- source activate pytorch_p36 && pip install -U ray[rllib] ray[tune] ray[debug]
|
||||
- source activate pytorch_p36 && pip install -U ray[rllib] ray[tune] ray
|
||||
# Consider uncommenting these if you also want to run apt-get commands during setup
|
||||
# - sudo pkill -9 apt-get || true
|
||||
# - sudo pkill -9 dpkg || true
|
||||
|
||||
@@ -91,7 +91,7 @@ class MemoryMonitor:
|
||||
if not psutil:
|
||||
logger.warn("WARNING: Not monitoring node memory since `psutil` "
|
||||
"is not installed. Install this with "
|
||||
"`pip install psutil` (or ray[debug]) to enable "
|
||||
"`pip install psutil` to enable "
|
||||
"debugging of memory-related crashes.")
|
||||
|
||||
def get_memory_usage(self):
|
||||
|
||||
@@ -1290,7 +1290,7 @@ def stack():
|
||||
COMMAND = """
|
||||
pyspy=`which py-spy`
|
||||
if [ ! -e "$pyspy" ]; then
|
||||
echo "ERROR: Please 'pip install py-spy' (or ray[debug]) first"
|
||||
echo "ERROR: Please 'pip install py-spy' first"
|
||||
exit 1
|
||||
fi
|
||||
# Set IFS to iterate over lines instead of over words.
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
ray[debug]
|
||||
ray
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
ray[debug]
|
||||
ray
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
ray[debug]
|
||||
ray
|
||||
|
||||
@@ -460,7 +460,7 @@ def memory_debug_str():
|
||||
round(used_gb, 1), round(total_gb, 1), warn)
|
||||
except ImportError:
|
||||
return ("Unknown memory usage. Please run `pip install psutil` "
|
||||
"(or ray[debug]) to resolve)")
|
||||
"to resolve)")
|
||||
|
||||
|
||||
def _get_trials_by_state(trials: List[Trial]):
|
||||
|
||||
@@ -95,7 +95,6 @@ ray_files += [
|
||||
# also update the matching section of requirements.txt
|
||||
# in this directory
|
||||
extras = {
|
||||
"debug": [],
|
||||
"serve": [
|
||||
"uvicorn", "flask", "requests", "pydantic<1.7",
|
||||
"dataclasses; python_version < '3.7'"
|
||||
|
||||
Reference in New Issue
Block a user