Skip to content

Instantly share code, notes, and snippets.

View bpabel's full-sized avatar

Brendan Abel bpabel

  • Walt Disney Imagineering
View GitHub Profile
@bpabel
bpabel / rezbuild.py
Last active February 21, 2024 20:31
rezbuild.py example for python setup.py
import os
import shutil
import subprocess
def build(source_path, build_path, install_path, targets, build_args=None):
"""
Generic Rez Build script for python packages that use the standard
python distribution tools (i.e. setuptools, setup.py).
@bpabel
bpabel / example.py
Created April 29, 2017 01:37
Example
def range_filter(n, others):
for i in range(n):
if i not in others:
yield i
def m_sets(n, m, others):
m -= 1
for i in range_filter(n, others):