-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
36 lines (29 loc) · 866 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
28
29
30
31
32
33
34
35
#!/usr/bin/env python
import os, sys
from distutils.core import setup
try:
import setuptools
# enable "setup.py develop", optional
except ImportError:
pass
version_file = 'VERSION'
if not os.path.isfile(version_file):
print 'No %s file in topdir, abort' % (version_file)
sys.exit(1)
try:
# first line should be the version number
version = open(version_file).readline().strip()
if not version:
print '%s file is invalid, abort' % (version_file)
sys.exit(1)
except IOError:
print 'WARNING: Cannot write version number file'
setup(name='mer-kickstarter',
version = version,
description='Kickstarter for Mer',
author='Marko Saukko',
author_email='[email protected]',
url='http://www.merproject.org/',
scripts=['tools/mer-kickstarter'],
packages=['kickstart']
)