Skip to main content

A package that builds blender

Project description


Python build script for Blender as a python module

It needs to be its own repository to satisfy the setup_requires of blenderpy

Option 1 - Get prebuilt bdist_wheel from pypi


  1. A supported python installation with pip installed


py -m pip install bpy

Option 2 - Build from sources using pypi


  1. Windows users must have Visual Studio 2013 or later and C++ build tools installed to build from sources
  2. Windows users must have an SVN command-line provider to build from sources (see
  3. All users must py -m pip install cmake in their python environment to build from sources (currently adding it as a setup_requires does not install it properly); after build it may be uninstalled with py -m pip uninstall cmake
  4. Users of Python versions below 3.6 must have future-fstrings installed pip install -U future-fstrings
  5. Users of Python versions 3.4 and below will probably need to update setuptools pip install -U setuptools
  6. Up-to-date wheel


py -m pip install bpy --no-binary

How it works

  1. Create overriding classes CMakeExtension & BuildCMake, which inheirit from the setuptools classes; bpy is a python extension (.pyd) and an instance of CMakeExtension, BuildCMake is the command that is run when installing the extension from pip (or running
  2. Using GitPython, clone Blender sources from
  3. If on Windows, detect the installed version of Visual Studio and 64bit vs 32bit, and download the appropriate svn library based on that
  4. Using cmake, configure blender as a python module per the Ideasman42 wiki page (now defunct); configure this build solution in the build_temp directory of the bpy package
  5. Using cmake, build the configured solution
  6. Place the built binaries in the built extension parent directory (important!)
  7. Relocate the /<Version> directory (i.e: /2.79) into the directory containing the executable from which this installation was spawned (where 'python.exe' is)
  8. Clean up using the remaining functionality from the superclasses build_ext and Extension
  9. bpy.pyd/ .so should now be installed into the site-packages

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for bpy-build, version 1.0.2a0
Filename, size & hash File type Python version Upload date
bpy-build-1.0.2a0.tar.gz (6.0 kB) View hashes Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page