Skip to content

Instantly share code, notes, and snippets.

@surhudm
Last active April 20, 2017 05:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save surhudm/3cb8d7c11e0e354f418cd2e0e4d78260 to your computer and use it in GitHub Desktop.
Save surhudm/3cb8d7c11e0e354f418cd2e0e4d78260 to your computer and use it in GitHub Desktop.
For linux:
Install python-pyside using your system package manager
bash $ sudo apt install python-pyside
Or
bash $ sudo dnf install python-pyside
If you do not have root permissions, even the following may work
bash $ pip install --user pyside
Then install the getdist version I have modified:
bash $ pip install --user git+https://github.com/surhudm/getdist.git
This should install GetDistGUI.py to $HOME/.local/bin
bash $ export PATH=$PATH:$HOME/.local/bin
The following should work:
bash $ GetDistGUI.py
For MacOSX, it is a bit more involved
Install QT using brew
brew install qt@5.5 openssl cmake pyqt
Then install pyside:
git clone --recursive https://codereview.qt-project.org/pyside/pyside-setup
CXXFLAGS=-std=c++11 python setup.py bdist_wheel --ignore-git --qmake=/usr/local/Cellar/qt/5.8.0_2/bin/qmake --cmake=/usr/local/bin/cmake --openssl=/usr/local/Cellar/openssl/1.0.2k/bin/
You may have to change the directory names above.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment