forked from PanDAWMS/panda-common
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
55 lines (48 loc) · 1.43 KB
/
Copy pathsetup.py
File metadata and controls
55 lines (48 loc) · 1.43 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
#
#
# Setup prog for Panda Common
#
#
# set PYTHONPATH to use the current directory first
import sys
sys.path.insert(0,'.') # noqa: E402
import os
import PandaPkgInfo
from setuptools import setup, find_packages
from setuptools.command.install import install as install_org
# get release version
release_version = PandaPkgInfo.release_version
if 'BUILD_NUMBER' in os.environ:
release_version = '{0}.{1}'.format(release_version,os.environ['BUILD_NUMBER'])
# custom install to disable egg
class install_panda (install_org):
def finalize_options (self):
install_org.finalize_options(self)
self.single_version_externally_managed = True
setup(
name="panda-common",
version=release_version,
description=' PanDA Common Package',
long_description='''This package contains PanDA Common Components''',
license='GPL',
author='Panda Team',
author_email='atlas-adc-panda@cern.ch',
url='https://twiki.cern.ch/twiki/bin/view/Atlas/PanDA',
packages=find_packages(),
install_requires=['configparser',
'pytz',
'stomp.py >=4.1.23, <=7.0.0',
'requests',
],
data_files=[
('etc/panda',
['templates/panda_common.cfg.rpmnew']
),
],
scripts=[
'tools/panda_common-install_igtf_ca'
],
cmdclass={
'install': install_panda,
}
)