Enable building universal wheels

Remove the use of execfile() in setup.py so it can run under python 3.

Set the flag in setup.cfg to allow universal wheels.
This commit is contained in:
Doug Hellmann
2015-01-12 17:13:13 -05:00
parent 6205177b34
commit 0c7f3d3825
2 changed files with 3 additions and 1 deletions

View File

@@ -12,3 +12,5 @@ cover-html-dir = coverage/
source-dir = doc/
build-dir = doc/build/
[wheel]
universal = 1

View File

@@ -2,7 +2,7 @@ from os.path import join, dirname
from setuptools import find_packages, setup
__version__ = None
execfile('happybase/_version.py')
exec(open('happybase/_version.py', 'r').read())
def get_file_contents(filename):