Skip to content
Snippets Groups Projects

Fix pip installation

Merged Dominik Thoennes requested to merge fix-pip-installation into master
Viewing commit 38ecb5f6
Next
Show latest version
1 file
+ 10
1
Preferences
Compare changes
+ 10
1
@@ -44,9 +44,18 @@ class SimpleTestRunner(distutils.cmd.Command):
@@ -44,9 +44,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',