#!/usr/bin/env python import sys from distutils.core import setup if "sdist" in sys.argv: import os import subprocess import shutil docFolder = os.path.join(os.getcwd(), "documentation") # remove existing doctrees = os.path.join(docFolder, "build", "doctrees") if os.path.exists(doctrees): shutil.rmtree(doctrees) # compile p = subprocess.Popen(["make", "html"], cwd=docFolder) p.wait() # remove doctrees shutil.rmtree(doctrees) setup(name="vanilla", version="0.1", description="A Pythonic wrapper around Cocoa.", author="Tal Leming", author_email="tal@typesupply.com", url="http://code.typesupply.com", license="MIT", packages=["vanilla"], package_dir={"":"Lib"} )