From 5d3efed3ff31b81157bb7f41193567393bf7f834 Mon Sep 17 00:00:00 2001 From: Michael Joyce Date: Tue, 28 Feb 2017 08:42:53 -0800 Subject: [PATCH] Issue #29 - Add support for bliss-core install from PyPi - Update README documentation with info on how to specify additional PyPi servers so bliss-core can be installed as part of the GUI installation. The developer install instructions had to be reworked due to issues with pip passing install-option's to dependencies as well as the package to be installed. The current supported work around is a horrible hack. See https://github.com/pypa/pip/issues/1883 for info. - Updated the bliss-core version to the latest release. --- README.md | 11 +++++++---- setup.py | 3 ++- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index bb5f762a..6857fd20 100644 --- a/README.md +++ b/README.md @@ -3,16 +3,19 @@ BLISS GUI Installation ------------ +If you would like to install the UI for an end user you can skip all of the frontend dependency installation and install only the pre-bundled application. After cloning the repository, run the following from the project root: -`bliss-gui` depends upon `bliss-core` for key functionality. Ensure that you have followed the `bliss-core` installation procedure before progressing to the `bliss-gui` installation. You need to install `bliss-gui` into the same `virtualenv` environment into which you installed `bliss-core`. Be sure to have it activated while following these instructions. +``` +pip install . --extra-index-url https://bliss.jpl.nasa.gov/pypi/simple/ +``` -If you would like to install the UI for an end user you can skip all of the frontend dependency installation and install only the pre-bundled application. After cloning the repository, run the following from the project root: +If you plan to do development work on the GUI you should install the repository in `develop` mode and install all of the dependencies necessary for a frontend build. ``` -pip install . +pip install -e . --extra-index-url https://bliss.jpl.nasa.gov/pypi/simple && pip install -e . --no-deps --force-reinstall --upgrade --install-option="--with-ui-deps=True" ``` -If you plan to do development work on the GUI you should install the repository in `develop` mode and install all of the dependencies necessary for a frontend build. +The above will install `bliss-core` for you. If you wish you can install `bliss-core` manually first and then install just the GUI with the below command. This allows you to have an editable checkout of `bliss-core` available for development. ``` pip install -e . --install-option="--with-ui-deps=True" diff --git a/setup.py b/setup.py index 54244283..ff4d1137 100644 --- a/setup.py +++ b/setup.py @@ -37,6 +37,7 @@ def run(self): develop.run(self) + class CustomInstallCmd(install): user_options = install.user_options + [ ('with-ui-deps=', None, "Toggle UI dependency installation") @@ -69,7 +70,7 @@ def run(self): include_package_data = True, scripts = ['./bin/bliss_gui.py'], - install_requires = ['bliss-core>=0.8.0'], + install_requires = ['bliss-core>=0.10.0'], cmdclass = { "install": CustomInstallCmd,