-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
27 lines (21 loc) · 895 Bytes
/
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
from setuptools import setup
import os
PROJECT_ROOT = "."
import locale
#os.environ["LANG"] = "en_US.UTF-8"
print("locale:", locale.getpreferredencoding())
print("setup.py:", __name__)
requirements = [l.strip()
for l in open('%s/requirements.txt' % os.environ.get('OPENSHIFT_REPO_DIR', PROJECT_ROOT)).readlines()
if l.strip() and not l.startswith("#")]
print([r[3:] for r in requirements if r.startswith("-e ")])
print([r.split("#egg=")[1] if r.startswith("-e ") else r for r in requirements])
setup(name='aksite',
version='1.0',
description='aksite',
author='Sam Persson',
author_email='[email protected]',
url='http://www.altekamerere.org',
dependency_links=[r[2:] for r in requirements if r.startswith("-e ")],
install_requires=[r.split("#egg=")[1] if r.startswith("-e ") else r for r in requirements],
)