execfile isn't a py3 thing
This commit is contained in:
parent
619fbaacf9
commit
ed7a5c0397
7
setup.py
7
setup.py
|
@ -43,10 +43,11 @@ CPY = platform.python_implementation() == 'CPython'
|
|||
PY3 = sys.version_info >= (3,)
|
||||
PY33 = (3, 3) <= sys.version_info < (3, 4)
|
||||
|
||||
# get version string: this defines __version__
|
||||
execfile('autobahn/__init__.py')
|
||||
# read version string
|
||||
with open('autobahn/__init__.py') as f:
|
||||
exec(f.read()) # defines __version__
|
||||
|
||||
# read package long description from README.rst
|
||||
# read package long description
|
||||
with open('README.rst') as f:
|
||||
docstr = f.read()
|
||||
|
||||
|
|
Loading…
Reference in New Issue