-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·37 lines (27 loc) · 928 Bytes
/
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
#!/usr/bin/env python
from distutils.core import setup
import subprocess as sp
import os
try:
git_proc = sp.Popen(["git","log","--pretty=format:%h","-n","1"],stdout=sp.PIPE,stderr=open(os.devnull,"w"))
git_version = git_proc.stdout.read().strip()
git_proc.wait()
if git_proc.returncode == 0:
print "Successfull git call"
open("SLRPlib/version.py","w").write("__version__=\"%s\""%(git_version))
except OSError:
raise
#pass
import SLRPlib
setup(name='SLRP',
version = SLRPlib.__version__,
description='Systematic Long Range Phasing',
author='Kimmo Palin',
author_email='[email protected]',
url='https://github.com/kpalin/SLRP',
packages=['SLRPlib',"SLRPlib/test"],
scripts=['scripts/SLRP'],
license="GPLv2 or greater",
)
# This will fail if you can't build c_scan_ext.so
import SLRPlib.scanTools