-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
42 lines (36 loc) · 1.41 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
import os
from setuptools import setup, find_packages
from setuptools.command.install import install
import subprocess
import sys
class MyInstall(install):
def run(self):
dependencies = ['numpy', 'scipy', 'pandas', 'statsmodels', 'dask[complete]', 'pystan<3']
if self.user:
subprocess.check_call([sys.executable, "-m", "pip", "install", "--user", "--no-cache-dir"] + dependencies)
else:
subprocess.check_call([sys.executable, "-m", "pip", "install", "--no-cache-dir"] + dependencies)
subprocess.check_output(['cmake', '--version'])
subprocess.check_call(['make'], cwd='./src')
subprocess.check_call(['make', 'clean'], cwd='./src')
subprocess.check_output(['python3', 'build_modules.py'])
install.run(self)
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='mntjulip',
version='1.5',
author="Wui Wang Lui & Guangyu Yang & Liliana Florea",
author_email="[email protected]",
description = ("MntJULiP is a program for comprehensive and accurate quantification of splicing differences from RNA-seq data"),
license="GNU GPL v3.0",
# keywords = "",
url="github.com/splicebox/MntJULiP",
long_description=read('README.md'),
include_package_data=True,
packages=find_packages(),
# install_requires=dependencies,
cmdclass={
'install': MyInstall,
}
)