forked from ucscCancer/cgData
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
58 lines (43 loc) · 1.21 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
52
53
54
55
56
57
import sys
import os
from distutils.core import setup
from distutils.core import Command
from distutils.command.install import install
from distutils.command.build_py import build_py
from distutils.command.build_ext import build_ext
from distutils.extension import Extension
PACKAGES = [
'CGData'
]
EXTENSIONS = [
Extension('CGData.CsegToMatrix',
['CGData/CsegToMatrix.cc']
)
]
__version__="undefined"
class test_cgData(Command):
tests = None
user_options = [('tests=', 't', 'comma separated list of tests to run')]
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
os.chdir("tests")
sys.path.insert(0, '')
import runTests
runTests.main([] if self.tests == None else self.tests.split(','))
setup(
name='CGData',
version=__version__,
author='Kyle Ellrott',
author_email='kellrott@soe.ucsc.edu',
url='http://genome-cancer.ucsc.edu/',
description='Tools for preparing Cancer Genome Browser Data.',
download_url='http://genome-cancer.ucsc.edu/',
cmdclass={
"test" : test_cgData
},
packages=PACKAGES,
ext_modules=EXTENSIONS
)