-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
39 lines (28 loc) · 769 Bytes
/
setup.py
File metadata and controls
39 lines (28 loc) · 769 Bytes
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
__author__ = 'Matti Lyra'
import sys
import os
import shutil
from distutils.core import setup, Extension, Command
import numpy
# remove old build directory
if 'test' in sys.argv and os.path.exists('build'):
shutil.rmtree('build')
class PyTest(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
import sys
import subprocess
errno = subprocess.call([sys.executable, 'runtests.py'])
raise SystemExit(errno)
setup(
name='naklar',
author='Matti Lyra',
description='A package for handling large collections of result sets from experimentation.',
version='0.2',
cmdclass={'test': PyTest},
packages=['naklar',],
)