-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
41 lines (32 loc) · 1.02 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
import os
from setuptools import setup, find_packages
import shutil
wheel_objs = ['cicada_d.egg-info', 'build', '__pycache__', 'dist']
mypath = os.path.dirname(os.path.abspath(__file__))
print(mypath)
def cleanup():
for i in os.listdir(mypath):
if i in wheel_objs:
curobj = os.path.join(mypath, i)
try:
shutil.rmtree(curobj)
except PermissionError as PE:
raise PE
except FileNotFoundError as NF:
raise NF
else:
pass
class buildCicada(dict):
def __init__(self):
super().__init__()
self['name'] = 'cicada'
self['version'] = '0.5.10'
self['description'] = 'sockets lib for cicada'
self['url'] = 'cicada.network'
self['author'] = 'knurd.migmo'
self['author_email'] = '[email protected]'
self['license'] = 'DUNODUNCARE'
self['packages'] = find_packages()
self['zip_safe'] = False
build = buildCicada()
setup(**build)