Setting up on Windows

In order to get started developing for Pyblish on the Windows platform, let's set-up your environment.

Much of this also applies to other platforms.

You will need:

  1. Git
  2. Python (2.7 x64)
  3. Pyblish

If you are interested in working with the UI, then you will also need PyQt5.

Setting up PyQt

Assuming you already have Git and Python installed on your local machine, let's start with PyQt.

# Open up a terminal and run this.
mkdir pyblishdev
cd pyblishdev
git clone
python -c "import util;util.createqtconf()"

The last command will attempt to physically create a file called qt.conf local to your installation of Python.

Now let's test the installation to make sure all is well.

# Open up Python and run this.
import sys
from PyQt5 import QtWidgets
app = QtWidgets.QApplication(sys.argv)
button = QtWidgets.QPushButton("Hello")
button.setFixedSize(400, 400)

Setting up Pyblish

To develop for Pyblish means to fork relevant repositories onto your GitHub account, make a change and finally submit a pull-request.

The exact repositories to fork depends on which areas you are interested in developing for. See the list below for hints and fork the ones of interest.

Replace the addresses to the ones below with your forked equivalent and clone.

:: Required
git clone

:: For UI development
git clone
git clone

:: For any form of integration or integration with a new host
git clone

:: For integration with an existing host
git clone
git clone
git clone
git clone
git clone

:: To be ready for anything

Repository Layout

Each of these repositories are set-up in the same way; at the root level there is a Python package. So what we need to do is somehow expose this package onto your PYTHONPATH.

How you choose to do that is not important, but here are some ideas.

  1. Append the absolute path to each repository to your PYTHONPATH
  2. Create a "junction" to each Python package within each repository in some directory on your PYTHONPATH.

Here is an example of how to append the most common modules.

cd pyblishdev
set PYTHONPATH=%CD%/pyblish;%CD%/pyblish-rpc;%CD%/pyblish-qml

If you are working with pyblish-qml also make sure to run this test.

python -m pyblish_qml.compat
# Qt detected..
# ==============================================================================
#  - Success!
# c:\python27\python.exe is well suited to run Pyblish QML
# ==============================================================================

Testing out the installation

In a new terminal with the PYTHONPATH set, let's run the test and ensure all is well.

cd pythondev\pyblish
Mon Jul 18 2016 19:42:18 GMT+0000 (UTC)

results matching ""

    No results matching ""