Win10 setup-dev.py fixes. (#9169)

This commit is contained in:
Sven Mika
2020-06-27 21:28:11 +02:00
committed by GitHub
parent 5c6d5d4ab1
commit d6f84bb072
2 changed files with 23 additions and 10 deletions
+4 -3
View File
@@ -34,7 +34,10 @@ RLlib, Tune, Autoscaler, and most Python files do not require you to build and c
git remote add upstream https://github.com/ray-project/ray.git
# Make sure you are up-to-date on master.
4. Replace Python files in the installed package with your local editable copy. We provide a simple script to help you do this: ``ray/python/ray/setup-dev.py``. Running the script will remove the ``ray/tune``, ``ray/rllib``, ``ray/autoscaler`` dir (among other directories) bundled with the ``ray`` pip package, and replace them with links to your local code.
3. Replace Python files in the installed package with your local editable copy. We provide a simple script to help you do this: ``python python/ray/setup-dev.py``.
Running the script will remove the ``ray/tune``, ``ray/rllib``, ``ray/autoscaler`` dir (among other directories) bundled with the ``ray`` pip package, and replace them with links to your local code. This way, changing files in your git clone will directly affect the behavior of your installed ray.
.. warning:: Do not run ``pip uninstall ray`` or ``pip install -U`` (for Ray or Ray wheels) if setting up your environment this way. To uninstall or upgrade, you must first ``rm -rf`` the pip-installation site (usually a ``site-packages/ray`` location), then do a pip reinstall (see 1. above), and finally run the above `setup-dev.py` script again.
.. code-block:: shell
@@ -43,8 +46,6 @@ RLlib, Tune, Autoscaler, and most Python files do not require you to build and c
# This replaces miniconda3/lib/python3.7/site-packages/ray/tune
# with your local `ray/python/ray/tune`.
.. warning:: Do not run ``pip uninstall ray`` or ``pip install -U`` (for Ray or Ray wheels) if setting up your environment this way. To uninstall or upgrade, you must ``rm -rf`` the installation site (usually a ``site-packages/ray`` location).
Building Ray (full)
-------------------