-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathsetup.py
More file actions
34 lines (29 loc) · 836 Bytes
/
setup.py
File metadata and controls
34 lines (29 loc) · 836 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
# -*- coding: utf-8 -*-
import re
from setuptools import setup, find_packages
import subprocess
try:
subprocess.check_call(['pip', 'install', '.'], cwd='dirichlet_python')
except subprocess.CalledProcessError as e:
print(f"Error installing dirichlet_python: {e}")
exit(1)
def get_version():
try:
f = open("MuRaL/_version.py")
except EnvironmentError:
return None
for line in f.readlines():
mo = re.match("__version__ = '([^']+)'", line)
if mo:
ver = mo.group(1)
return ver
return None
setup(
name='MuRaL',
version=get_version(),
author_email='caililab@outlook.com',
packages=find_packages(),
description='Mutation Rate Learner with Neural Networks',
scripts=['bin/mural_indel', 'bin/mural_snv'],
include_package_data=True,
)