This repository was archived by the owner on Jun 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
56 lines (49 loc) · 1.36 KB
/
setup.py
File metadata and controls
56 lines (49 loc) · 1.36 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
56
#!/user/bin/env python2
# coding=utf-8
from setuptools import setup, find_packages
import os
import sys
path = os.path.dirname(os.path.realpath(__file__))
print path
sys.path.insert(0, path)
#When setuptools run it pulls these tools from Pypi
def require_venv():
try:
venv_dir = (os.path.isdir('venv'))
if venv_dir == False:
print 'Creating venv directory...\n'
os.system('virtualenv venv')
venv_active = hasattr(sys,'real_prefix')
if venv_active == False:
print 'Activating venv...\n'
activate_file = "venv/bin/activate_this.py"
execfile(activate_file, dict(__file__=activate_file))
except Exception as e:
print 'This setup requires virtualenv.'
INSTALL_REQUIRES = [
"Flask>=0.11.1",
"Jinja2>=2.8,<2.9",
"peewee>=2.8.1",
"Flask-Admin>=1.4.0",
"wtf-peewee>=0.2.6",
"XlsxWriter",
"PyYAML",
"email_validator",
"pyDNS",
"Flask-Script",
"flask-mysqldb",
"flask-login"
]
def parameters():
name="queue_template"
description="A template for queue processing"
long_description = open("README.md").read()
install_requires = INSTALL_REQUIRES
packages = find_packages(where="app")
package_dir = {
"": "app",
}
include_package_data=True
return locals()
require_venv()
setup(**parameters())