forked from yjzhang/split-seq-pipeline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
47 lines (39 loc) · 1.17 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
from setuptools import setup, find_packages
from distutils.command.install import install
import os
HOME = os.path.expanduser('~')
# this is where the non-python dependencies will be installed.
DEFAULT_INSTALL_DIR = os.path.join(HOME, 'split_seq_reqs')
class CustomInstall(install):
"""Customized setuptools install command - prints a friendly greeting."""
def run(self):
print(DEFAULT_INSTALL_DIR)
try:
os.makedirs(DEFAULT_INSTALL_DIR)
except:
pass
import subprocess
subprocess.call('sh install_dependencies.sh', shell=True)
super().run()
setup(
name='split_seq',
version='0.0.1',
description='split seq tools',
# basic stuff here
scripts = [
'split-seq'
],
packages = ['split_seq'],
install_requires=[
'numpy',
'pysam',
'pandas',
'scipy',
'matplotlib',
],
zip_safe=False,
package_data={'split_seq': ['barcodes/*.csv', 'barcodes/*.pkl', 'rRNA.fa']},
include_package_data=True,
# TODO: commenting this out; the user can run install_dependencies on their own.
#cmdclass={'install': CustomInstall},
)