-
Notifications
You must be signed in to change notification settings - Fork 8
/
setup.py
80 lines (64 loc) · 1.82 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
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']
)
]
SCRIPTS = [
'scripts/bed2probeMap.py',
'scripts/bedMap.py',
'scripts/compileCancerData.py',
'scripts/compileCancerORM.py',
'scripts/compileScan.py',
'scripts/dataNetwork.py',
'scripts/editMetainfo.py',
'scripts/extractClinical.py',
'scripts/extractClinicalFeatures.py',
'scripts/extractGenomic.py',
'scripts/extractProbes.py',
'scripts/extractSamples.py',
'scripts/getMatrixList.py',
'scripts/getRefGene_hg18.sh',
'scripts/setupRepo.py',
'scripts/tcga2cgdata.py',
'scripts/tcgaAliquotFetch.py',
'scripts/tcgaAliquotSampleMap.sh',
]
__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='[email protected]',
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,
scripts=SCRIPTS
)