From 33d098e6568cc7edce96d28c2011b043e535a5e8 Mon Sep 17 00:00:00 2001 From: Michael Mintz Date: Wed, 6 Dec 2017 02:00:43 -0500 Subject: [PATCH] Use "python setup.py develop" instead of "python setup.py install" --- .travis.yml | 2 +- Dockerfile | 2 +- README.md | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index ff4d8236..e60f245e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,7 +8,7 @@ addons: install: - "pip install --upgrade pip" - "pip install -r requirements.txt" - - "python setup.py install" + - "python setup.py develop" - "sudo rm -f /etc/boto.cfg" before_script: - "flake8 seleniumbase/*.py" diff --git a/Dockerfile b/Dockerfile index 44244bd2..0f9d174d 100755 --- a/Dockerfile +++ b/Dockerfile @@ -101,7 +101,7 @@ COPY setup.py /SeleniumBase/setup.py RUN pip install --upgrade pip RUN pip install --upgrade setuptools RUN cd /SeleniumBase && ls && pip install -r requirements.txt --upgrade -RUN cd /SeleniumBase && python setup.py install +RUN cd /SeleniumBase && python setup.py develop #========================================== # Create entrypoint and grab example tests diff --git a/README.md b/README.md index a63c0035..143e535a 100755 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ To install a clone of SeleniumBase, use: ```bash pip install -r requirements.txt --upgrade -python setup.py install +python setup.py develop ``` (Repeat this step if you make changes to [settings.py](https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/config/settings.py) or to SeleniumBase libraries. If you're installing SeleniumBase on a machine that uses an older version of Firefox, such as version 46 or earlier, use `server_requirements.txt` and `server_setup.py`.) @@ -112,7 +112,7 @@ pytest my_first_test.py --with-selenium --browser=chrome --demo_mode You can override the default wait time by either updating [settings.py](https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/config/settings.py) or by using ``--demo_sleep={NUM}`` when using Demo Mode. (NOTE: If you use ``--demo_sleep={NUM}`` without using ``--demo_mode``, nothing will happen.) -If you ever make any changes to your local copy of ``settings.py``, you may need to run ``python setup.py install`` for those changes to take effect. +If you ever make any changes to your local copy of ``settings.py``, you may need to run ``python setup.py develop`` for those changes to take effect. ```bash nosetests my_first_test.py --with-selenium --browser=chrome --demo_mode --demo_sleep=1.2