forked from jonashaag/klaus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
37 lines (31 loc) · 1.13 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
#!/usr/bin/env python
from setuptools import setup, find_packages
import glob
import os
from functools import partial
here = partial(os.path.join, os.path.dirname(__file__) or './')
req_file = here('requirements.txt')
install_requires = [ l.strip() for l in open(req_file,'r').readlines()]
if __name__ == "__main__":
os.system('cd %s && git submodule update --init' % here(''))
with open( here('nano/nano.py') ,'r') as fdin:
try:
os.mkdir( here('klaus/nano/') )
except Exception,e:
print e
with open( here('klaus/nano/__init__.py'),'w') as fdout:
fdout.write(fdin.read())
setup(name='klaus',
version='0.1',
description='The first Git web viewer that Just Works',
author='',
author_email='',
url='https://github.com/jonashaag/klaus',
license='BSD',
include_package_data=True,
packages = find_packages('.'),
package_data={'': ['*.*']},
scripts=glob.glob('scripts/*'),
# Put your dependencies here...
install_requires=install_requires,
)