From d5e7533789e5900adf8fb8a1a1ff8ef1cb2eca7e Mon Sep 17 00:00:00 2001 From: xuejianqing Date: Wed, 10 Oct 2018 23:30:23 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B2=BE=E7=AE=80setup.py=E6=9F=A5=E6=89=BE?= =?UTF-8?q?=E5=AD=90=E6=A8=A1=E5=9D=97=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- setup.py | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/setup.py b/setup.py index 7805ec6a..029475cc 100644 --- a/setup.py +++ b/setup.py @@ -19,22 +19,11 @@ other financial markets. import os -from setuptools import setup +from setuptools import setup, find_packages import vnpy -def getSubpackages(name): - """获取该模块下所有的子模块名称""" - splist = [] - - for dirpath, _dirnames, _filenames in os.walk(name): - if os.path.isfile(os.path.join(dirpath, '__init__.py')): - splist.append(".".join(dirpath.split(os.sep))) - - return splist - - setup( name='vnpy', version=vnpy.__version__, @@ -55,7 +44,7 @@ setup( 'Topic :: Office/Business :: Financial :: Investment', 'Programming Language :: Python :: Implementation :: CPython', 'License :: OSI Approved :: MIT License'], - packages=getSubpackages('vnpy'), + packages=find_packages(), package_data={'': ['*.json', '*.md', '*.ico', '*.h', '*.cpp', '*.bash', '*.txt', '*.dll', '*.lib', '*.so', '*.pyd',