Skip to content

Commit

Permalink
Remove debug extras from setup.py (#12751)
Browse files Browse the repository at this point in the history
  • Loading branch information
esquires authored Dec 10, 2020
1 parent 3fd3cb9 commit 9f70293
Show file tree
Hide file tree
Showing 20 changed files with 19 additions and 20 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ RLlib Quick Start
.. code-block:: bash
pip install tensorflow # or tensorflow-gpu
pip install "ray[rllib]" # also recommended: ray[debug]
pip install "ray[rllib]"
.. code-block:: python
Expand Down
2 changes: 1 addition & 1 deletion doc/examples/cython/ray-project/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
ray[debug]
ray
scipy
2 changes: 1 addition & 1 deletion doc/examples/lbfgs/ray-project/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ray[debug,rllib]
ray[rllib]
2 changes: 1 addition & 1 deletion doc/examples/newsreader/ray-project/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
ray[debug]
ray
atoma
flask
2 changes: 1 addition & 1 deletion doc/examples/streaming/ray-project/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
ray[debug]
ray
wikipedia
2 changes: 1 addition & 1 deletion doc/source/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ You can install the latest official version of Ray as follows. Official releases

.. code-block:: bash
pip install -U ray # also recommended: ray[debug]
pip install -U ray
**Note for Windows Users:** To use Ray on Windows, Visual C++ runtime must be installed (see :ref:`Windows Dependencies <windows-dependencies>` section). If you run into any issues, please see the :ref:`Windows Support <windows-support>` section.

Expand Down
2 changes: 1 addition & 1 deletion doc/source/ray-overview/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ RLlib Quick Start
.. code-block:: bash
pip install tensorflow # or tensorflow-gpu
pip install ray[rllib] # also recommended: ray[debug]
pip install ray[rllib]
.. code-block:: python
Expand Down
2 changes: 1 addition & 1 deletion doc/source/rllib.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ RLlib has extra dependencies on top of ``ray``. First, you'll need to install ei

.. code-block:: bash
pip install 'ray[rllib]' # also recommended: ray[debug]
pip install 'ray[rllib]'
Then, you can try out training in the following equivalent ways:

Expand Down
2 changes: 1 addition & 1 deletion python/ray/autoscaler/aws/example-ml.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion python/ray/memory_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def __init__(self, error_threshold=0.95, check_interval=1):
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):
Expand Down
2 changes: 1 addition & 1 deletion python/ray/scripts/scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ray[debug]
ray
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ray[debug]
ray
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ray[debug]
ray
2 changes: 1 addition & 1 deletion python/ray/tune/progress_reporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]):
Expand Down
1 change: 0 additions & 1 deletion python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@
# 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'"
Expand Down
2 changes: 1 addition & 1 deletion release/rllib_tests/regression_tests/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ wheel="https://s3-us-west-2.amazonaws.com/ray-wheels/$ray_branch/$commit/ray-$ra
conda uninstall -y terminado
pip install -U pip
pip install -U "$wheel"
pip install "ray[rllib]" "ray[debug]"
pip install "ray[rllib]" "ray"
pip install terminado
pip install torch==1.6 torchvision
pip install boto3==1.4.8 cython==0.29.0
Expand Down
2 changes: 1 addition & 1 deletion release/rllib_tests/stress_tests/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ wheel="https://s3-us-west-2.amazonaws.com/ray-wheels/$ray_branch/$commit/ray-$ra
conda uninstall -y terminado
pip install -U pip
pip install -U "$wheel"
pip install "ray[rllib]" "ray[debug]"
pip install "ray[rllib]" "ray"
pip install terminado
pip install boto3==1.4.8 cython==0.29.0

Expand Down
2 changes: 1 addition & 1 deletion release/rllib_tests/unit_gpu_tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ray[rllib]
ray[debug]
ray
torch==1.6+cu101
torchvision==0.7.0+cu101
boto3==1.4.8
Expand Down
2 changes: 1 addition & 1 deletion release/stress_tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ray[debug]
ray

0 comments on commit 9f70293

Please sign in to comment.