-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
40 lines (33 loc) · 846 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
36
37
38
39
40
import os
from setuptools import setup
package_dir = "prop"
def split_path(path, result=None):
if result is None:
result = []
head, tail = os.path.split(path)
if head == '':
return [tail] + result
if head == path:
return result
return split_path(head, [tail] + result)
# Setup the packages names
packages = []
root_dir = os.path.dirname(__file__)
if root_dir != '':
os.chdir(root_dir)
for dirpath, dirnames, filenames in os.walk(package_dir):
if '__init__.py' in filenames:
packages.append('.'.join(split_path(dirpath)))
setup(
name='prop',
version='0.0',
description='My simple rop chain generator.',
author='jofra',
license='MIT',
packages=packages,
entry_points={
'console_scripts': [
'prop=prop.prop:main',
],
},
)