-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
61 lines (49 loc) · 1.86 KB
/
setup.py
File metadata and controls
61 lines (49 loc) · 1.86 KB
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
#!/usr/bin/env python
import sys
import os
import glob
from distutils.core import setup
from distutils.command.install_data import install_data
from setuptools.command.install import install
import urllib.request
import re
import tarfile
import tempfile
import splotch
import subprocess
# our custom install script
# captures the install_option --stan
class InstallCommand(install):
user_options = install.user_options
def initialize_options(self):
install.initialize_options(self)
def finalize_options(self):
install.finalize_options(self)
def run(self):
install.run(self)
# read the long description
with open(os.path.join(os.path.abspath(os.path.dirname(__file__)),'README.md'),encoding='utf-8') as f:
long_description = f.read()
# read the package requirements
with open(os.path.join(os.path.abspath(os.path.dirname(__file__)),'requirements.txt'),encoding='utf-8') as f:
install_requires = f.read().splitlines()
setup(name='abcSplotch',
version=splotch.__version__,
description='Approximate Bayesian model for cell-resolution Spatial Transcriptomics data',
long_description=long_description,
long_description_content_type='text/markdown',
author=splotch.__author__,
author_email=splotch.__email__,
url='https://github.com/nygctech/abcSplotch',
license=splotch.__license__,
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD 3-Clause "New" or "Revised" License (BSD-3-Clause)',
'Programming Language :: Python :: 3'],
packages=['splotch'],
scripts=['bin/splotch_prepare_count_files','bin/splotch_generate_input_files'],
# could not pass binaries through the scripts argument
install_requires=install_requires,
cmdclass={'install': InstallCommand}
)