Permalink
Find file
0b02308 Jun 24, 2012
15 lines (10 sloc) 377 Bytes
#!/usr/bin/env python
import codecs
import json
from setuptools import setup, find_packages
setup_data = json.load(open("setup.json", "r"))
# real classy distutils, name / version have to be ascii encoded :(
for ascii_key in ("name", "version"):
setup_data[ascii_key] = setup_data[ascii_key].encode("ascii")
setup_data["packages"] = find_packages()
setup(**setup_data)