forked from SpamExperts/OrangeAssassin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
54 lines (48 loc) · 1.64 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
from __future__ import absolute_import
import sys
import platform
import oa
import distutils.core
with open("requirements/base.txt") as base:
requirements = base.readlines()
if "pypy" in platform.python_implementation().lower():
if sys.version_info.major == 3:
with open("requirements/pypy3-build-requirements.txt") as py3build:
requirements.extend(py3build.readlines())
with open("requirements/pypy3.txt") as py3:
requirements.extend(py3.readlines())
elif sys.version_info.major == 2:
with open("requirements/pypy2.txt") as py2:
requirements.extend(py2.readlines())
else:
if sys.version_info.major == 3:
with open("requirements/python3.txt") as py3:
requirements.extend(py3.readlines())
if sys.version_info.minor == 2:
with open("requirements/pypy3-build-requirements.txt") as py3build:
requirements.extend(py3build.readlines())
with open("requirements/pypy3.txt") as py3:
requirements.extend(py3.readlines())
elif sys.version_info.major == 2:
with open("requirements/python2.txt") as py2:
requirements.extend(py2.readlines())
with open("requirements/tests.txt") as test:
test_requirements = test.readlines()
distutils.core.setup(
name='OrangeAssassin',
version=oa.__version__,
scripts=[
'scripts/match.py',
'scripts/oad.py',
'scripts/compile.py'
],
packages=[
'oa',
'oa.rules',
'oa.plugins',
'oa.protocol',
],
install_requires=requirements,
tests_require=test_requirements,
)