Skip to content
Snippets Groups Projects
Commit 03e53acc authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Fix installation on Py3

parent 4a14a196
No related branches found
No related tags found
No related merge requests found
......@@ -117,10 +117,17 @@ def main():
if extra_link_args == [""]:
extra_link_args = []
conf = {}
execfile("pyfmmlib/version.py", conf)
ver_dic = {}
version_file = open("pyfmmlib/version.py")
try:
version_file_contents = version_file.read()
finally:
version_file.close()
exec(compile(version_file_contents, "pyfmmlib/version.py", 'exec'), ver_dic)
setup(name="pyfmmlib",
version=conf["VERSION_TEXT"],
version=ver_dic["VERSION_TEXT"],
description="Python wrappers for particle FMMs",
long_description=open("README.rst", "rt").read(),
author="Leslie Greengard, Zydrunas Gimbutas, Andreas Kloeckner",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment