-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
40 lines (36 loc) · 942 Bytes
/
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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup
import subprocess, os, sys
def install():
R_install_dir = '%s/R' % (os.environ['HOME'],)
try:
os.mkdir(R_install_dir)
except OSError:
pass
ccmd = 'R CMD INSTALL -l %s .' % (R_install_dir,)
subprocess.call(ccmd.split(' '))
if sys.argv[1] not in ('egg_info',):
install()
setup(
name='xcms',
version='1.93.2-ext',
description='Extensions and fixes to XCMS',
author='Benjie Chen',
author_email='benjie@ginkgobioworks.com',
long_description=open('README', 'r').read(),
packages=[],
zip_safe=False,
requires=[],
install_requires=[],
classifiers=[
'Operating System :: OS Independent',
'Programming Language :: R',
'Topic :: Utilities'
],
)