forked from ndawe/yellowhiggs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·54 lines (46 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
47
48
49
50
51
52
53
54
#!/usr/bin/env python
import os
import sys
from glob import glob
if os.getenv('YELLOWHIGGS_NO_DISTRIBUTE') in ('1', 'true'):
from distutils.core import setup
else:
from distribute_setup import use_setuptools
use_setuptools()
from setuptools import setup
execfile('yellowhiggs/info.py')
open('version.txt', 'w').write(VERSION)
if os.getenv('YELLOWHIGGS_AFS_INSTALL') in ('1', 'true'):
prefix = '/afs/cern.ch/atlas/software/tools/yellowhiggs'
else:
prefix = 'etc/yellowhiggs'
if 'install' in sys.argv:
print __doc__
setup(name='yellowhiggs',
version=VERSION,
description='Interface for the CERN Yellow Report',
long_description=open('README.rst').read(),
author='Noel Dawe',
author_email='noel.dawe@cern.ch',
url=URL,
download_url=DOWNLOAD_URL,
packages=['yellowhiggs'],
data_files=[(prefix, ['version.txt'])],
package_data={
'yellowhiggs': ['dat/xs/7/*.txt',
'dat/xs/8/*.txt',
'dat/xs/14/*.txt',
'dat/br/*.txt'],
},
license='GPLv3',
classifiers=[
"Programming Language :: Python",
"Topic :: Utilities",
"Operating System :: POSIX :: Linux",
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License (GPL)"
]
)
os.unlink('version.txt')