Skip to content
Snippets Groups Projects
Commit d41fb117 authored by Dominik Thoennes's avatar Dominik Thoennes Committed by Martin Bauer
Browse files

Fix pip installation

parent 02255260
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,6 @@ import distutils ...@@ -6,7 +6,6 @@ import distutils
from contextlib import redirect_stdout from contextlib import redirect_stdout
from importlib import import_module from importlib import import_module
sys.path.insert(0, os.path.abspath('doc')) sys.path.insert(0, os.path.abspath('doc'))
from version_from_git import version_number_from_git
quick_tests = [ quick_tests = [
...@@ -44,9 +43,18 @@ class SimpleTestRunner(distutils.cmd.Command): ...@@ -44,9 +43,18 @@ class SimpleTestRunner(distutils.cmd.Command):
for test in quick_tests: for test in quick_tests:
self._run_tests_in_module(test) self._run_tests_in_module(test)
try:
sys.path.insert(0, os.path.abspath('doc'))
from version_from_git import version_number_from_git
version = version_number_from_git()
with open("RELEASE-VERSION", "w") as f:
f.write(version)
except ImportError:
version = open('RELEASE-VERSION', 'r').read()
setup(name='lbmpy', setup(name='lbmpy',
version=version_number_from_git(), version=version,
description='Code Generation for Lattice Boltzmann Methods', description='Code Generation for Lattice Boltzmann Methods',
author='Martin Bauer', author='Martin Bauer',
license='AGPLv3', license='AGPLv3',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment