-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
28 lines (27 loc) · 973 Bytes
/
setup.py
File metadata and controls
28 lines (27 loc) · 973 Bytes
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
# -*- coding: utf-8 -*
import os
from setuptools import setup
dirs = ['makeblock']
modules = ['makeblock']
for path,dir_list,file_list in os.walk("./makeblock"):
for dir_name in dir_list:
if dir_name.find("__")==-1 and dir_name.find("egg")==-1:
dirs.append((path+"/"+dir_name).replace("/",".").replace("..",""))
for file_name in file_list:
if file_name.find(".py")!=-1 and file_name.find("__")==-1 and file_name.find(".pyc")==-1:
modules.append((path+"."+file_name.replace(".py","")).replace("/",".").replace("..",""))
# print(dirs,modules)
setup(
name='makeblock',
version='0.3.0',
author='makeblock',
author_email='flashindream@gmail.com, rexydogwoof01@gmail.com',
url='https://makeblock.com',
description=u'Fork of libraries for makeblock electronic platform',
packages=dirs,
py_modules=modules,
install_requires=['pyserial'],
)
# setup.py
# global-include *.pyc
# global-exclude *.py