-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
46 lines (43 loc) · 1.48 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
from __future__ import print_function
import os
from distutils.core import setup
from distutils.extension import Extension
from setuptools import find_packages
try:
from Cython.Build import cythonize
import Cython.Distutils
CYTHON=True
except ImportError:
CYTHON=False
print('CYTHON UNAVAILABLE')
try:
import numpy
NUMPY = True
except ImportError:
NUMPY = False
print('NUMPY NOT INSTALLED')
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='pyquant-ms',
version='0.2.1',
packages=find_packages(),
scripts=['scripts/pyQuant'],
entry_points={'console_scripts': ['pyQuant = pyquant.command_line:run_pyquant',]},
install_requires=['cython', 'numpy', 'scipy >= 0.18.*', 'patsy', 'pythomics >= 0.3.41', 'pandas', 'lxml', 'scikit-learn', 'simplejson'],
include_package_data=True,
description='A framework for the analysis of quantitative mass spectrometry data',
url='http://www.github.com/pandeylab/pyquant',
author='Chris Mitchell <[email protected]>',
classifiers=[
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
],
setup_requires=[
'cython',
],
cmdclass={'build_ext': Cython.Distutils.build_ext} if CYTHON else {},
ext_modules=cythonize("pyquant/*.pyx") if CYTHON else [],
include_dirs=[numpy.get_include()] if NUMPY else [],
)