forked from aterrel/ignition
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
51 lines (40 loc) · 1.12 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/usr/bin/env python
"""Distutils based setup script for ignition."""
from distutils.core import Command, setup
import sys
import subprocess
try:
import sympy
except:
print "Exception occurred whem importing sympy. You must install sympy "\
"to use ignition"
import ignition
class test_ignition (Command):
"""Runs all tests under iginition/ folder"""
description = "run all tests"
user_options = []
def __init__ (self, *args):
self.args = args[0]
Command.__init__(self, *args)
def initialize_options(self): # distutils wants this
pass
def finalize_options(self): # this too
pass
def run(self):
subprocess.Popen("nosetests", shell=True).communicate()
setup(
name='ignition',
version=ignition.__version__,
description='a numerical code generator',
author='Andy R Terrel',
author_email='',
license='FreeBSD',
url='',
packages=['ignition'],
scripts=[],
ext_modules=[],
package_data={ },
data_files=[],
cmdclass={'test': test_ignition,
},
)