forked from doozan/mwlib.cdb
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
42 lines (32 loc) · 1.03 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
#! /usr/bin/env python
# Copyright (c) PediaPress GmbH
# See README.txt for additional licensing information.
import os
from setuptools import setup
install_requires = ["mwlib>=0.12.13"]
def get_version():
d = {}
execfile("mwlib/cdb/__init__.py", d, d)
return str(d["version"])
def main():
if os.path.exists('Makefile'):
# this is a git checkout
print 'Running make'
os.system('make')
setup(
name="mwlib.cdb",
version=get_version(),
entry_points={'console_scripts': ['mw-buildcdb = mwlib.cdb.apps:buildcdb']},
install_requires=install_requires,
packages=["mwlib", "mwlib.cdb"],
namespace_packages=['mwlib'],
zip_safe=False,
include_package_data=True,
url="http://github.com/doozan/",
description="cdb tools for mwlib",
long_description=open("README.rst").read(),
license="BSD License",
maintainer="Jeff Doozan",
maintainer_email="[email protected]")
if __name__ == '__main__':
main()