-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
94 lines (81 loc) · 3 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
from __future__ import print_function # PY3
# requires Python V2.7 or higher
#!/usr/bin/env python
import os,sys
try:
from setuptools import setup
except:
from distutils.core import setup # noqa
pver=sys.version[0]
prel=sys.version[2]
print('Active runtime:',sys.version, pver, prel)
# check that ctypes is there (there are some platforms where this is missing)
#try:
# import ctypes
#except:
# print ('Installation of adabas requires package ctypes installed')
# sys.exit(1)
#dfiles=[]
#ppacks=[]
# must tell in detail what to install: package (.py) or data_files (non .py file)
# we do this by walking the installation directory
#for root, dirs, files in os.walk(''):
# root=os.path.normpath(root) # changes './adabas' or '.\adabas' to adabas
# if root.startswith('adabas'):
# dfile=[]
# for file in files:
# if file.endswith('.py'): # skip .py files
# if file == '__init__.py':
# ppacks.append(root)
# continue
# dfile.append(os.path.join(root,file))
# if len(dfile)>0:
# dfiles.append([os.path.join('Lib/site-packages',root),dfile])
# print( dfiles)
extra = {}
#extra['install_requires'] = ['xxx']
README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()
setup( name='adapya-base',
version='1.3.0',
author='mmueller',
author_email='mm@softwareag.com',
description='adapya-base - base package for adapya',
license='Apache License 2.0',
url='https://github.com/SoftwareAG/adapya-base',
classifiers = [
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: Apache Software License',
'Intended Audience :: Developers',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Topic :: Database',
],
keywords='adabas database softwareag',
long_description=README,
# data_files=dfiles,
scripts = ['adapya/base/scripts/ftpz.py',
'adapya/base/scripts/getfilez.py',
'adapya/base/scripts/jesjob.py',
'adapya/base/scripts/smfreaderz.py'],
packages=['adapya','adapya.base','adapya.base.scripts'],
#package_dir={ '':'../..'
# # 'adapya-base': '../../adapya/base',
# # 'adapya-base/scripts': '../../adapya/base/scripts',
# }, # new location : source location
namespace_packages=['adapya'],
zip_safe=False,
#extras_require={
# 'dev': [ 'coverage', 'nose', 'pytest', 'pytest-pep8', 'pytest-cov']
# },
platforms='any',
**extra
)