Skip to content

Instantly share code, notes, and snippets.

@williballenthin
Created October 12, 2015 19:23
Show Gist options
  • Select an option

  • Save williballenthin/ddb516208f5481c4e02a to your computer and use it in GitHub Desktop.

Select an option

Save williballenthin/ddb516208f5481c4e02a to your computer and use it in GitHub Desktop.
#!/bin/bash
# arch dependencies
sudo pacman -S python3 python-pyqt5 git
sudo pip3 install virtualenv
# prepare a clean Python environment
mkdir env; virtualenv -p python3 env
# need to manually load PyQt binary files
ln -s /usr/lib/python3.5/site-packages/PyQt5 "$(pwd)"/env/lib/python3.5/site-packages/PyQt5
ln -s /usr/lib/python3.5/site-packages/sip.so "$(pwd)"/env/lib/python3.5/site-packages/sip.so
# install library and dependencies
env/bin/pip install python-cim
# fetch repo that contains sample scripts
git clone https://github.com/fireeye/flare-wmi.git
# go!
# env/bin/python flare-wmi/python-cim/samples/ui.py win7 ~/Desktop/the/repo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment