1 Star 0 Fork 80

shawnwu/NovalIDE

forked from 蓝猫/NovalIDE 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
setup.py 4.95 KB
一键复制 编辑 原始数据 按行查看 历史
import sys
if sys.platform == "win32":
from distutils.core import setup
import py2exe
import glob
import modulefinder
import win32com.client
is_debug = False
#this block code used to add win32com.shell and win32com.shellcon module to library.zip
###******************************************###########
for p in win32com.__path__[1:]:
modulefinder.AddPackagePath('win32com', p)
for extra in ['win32com.taskscheduler']:
__import__(extra)
m = sys.modules[extra]
for p in m.__path__[1:]:
modulefinder.AddPackagePath(extra, p)
###******************************************###########
for i,argv in enumerate(sys.argv):
if argv == "debug" or argv == "-debug":
is_debug = True
del sys.argv[i]
if is_debug:
print 'executable run in console mode'
setup(console=[{"script":"NovalIDE.py","icon_resources":[(1, u"noval.ico")]}],
options = { "py2exe":{"dll_excludes":["MSVCP90.dll"],"packages": ['wx.lib.pubsub']}},
data_files=[("noval/tool/bmp_source", glob.glob("noval/tool/bmp_source/*.ico") + glob.glob("noval/tool/bmp_source/*.jpg") \
+ glob.glob("noval/tool/bmp_source/*.png") + glob.glob("noval/tool/bmp_source/*.gif")),
("noval/tool/data",["noval/tool/data/tips.txt"]),
("noval/parser",glob.glob("noval/parser/*.py")),
("noval/locale/en_US/LC_MESSAGES",['noval/locale/en_US/LC_MESSAGES/novalide.mo']),
("noval/locale/zh_CN/LC_MESSAGES",['noval/locale/zh_CN/LC_MESSAGES/novalide.mo']),],)
else:
print 'executable run in windows mode'
setup(windows=[{"script":"NovalIDE.py","icon_resources":[(1, u"noval.ico")]}],
options = { "py2exe":{"dll_excludes":["MSVCP90.dll"],"packages": ['wx.lib.pubsub','csv']}},
data_files=[("noval/tool/bmp_source", glob.glob("noval/tool/bmp_source/*.ico") + glob.glob("noval/tool/bmp_source/*.jpg") \
+ glob.glob("noval/tool/bmp_source/*.png") + glob.glob("noval/tool/bmp_source/*.gif")),
("noval/tool/bmp_source/toolbar",glob.glob("noval/tool/bmp_source/toolbar/*.png")),
("noval/tool/bmp_source/web",glob.glob("noval/tool/bmp_source/web/*.png")),
("noval/tool/bmp_source/template",glob.glob("noval/tool/bmp_source/template/*.*")),
("noval/tool",glob.glob("noval/tool/DebuggerHarness.py")),
("noval/tool/data",["noval/tool/data/tips.txt"]),
("noval/tool/data/template",glob.glob("noval/tool/data/template/*.tar.bz2")),
("noval/parser",glob.glob("noval/parser/*.py")),
("noval/locale/en_US/LC_MESSAGES",['noval/locale/en_US/LC_MESSAGES/novalide.mo']),
("noval/locale/zh_CN/LC_MESSAGES",['noval/locale/zh_CN/LC_MESSAGES/novalide.mo']),
('',['version.txt','template.xml'])],)
elif sys.platform.find('linux') != -1:
from distutils.core import setup
from setuptools import find_packages
with open("version.txt") as f:
version = f.read()
install_requires = ["watchdog","chardet","pyperclip","psutil","requests"]
setup(name='NovalIDE',
version = version,
description='''NovalIDE is a cross platform Python IDE''',
author='wukan',
author_email='wekay102200@sohu.com',
url='https://github.com/noval102200/NovalIDE.git',
license='Genetalks',
packages=find_packages(),
install_requires=install_requires,
zip_safe=False,
test_suite='noval.tests',
package_data={
'noval': [
'tool/data/intellisence/builtins/2/*',
'tool/data/intellisence/builtins/3/*',
'tool/data/template/*.tar.bz2',
'tool/data/*.txt',
'tool/bmp_source/template/*',
'tool/bmp_source/toolbar/*',
'tool/bmp_source/*.*',
'locale/en_US/LC_MESSAGES/*.mo',
'locale/zh_CN/LC_MESSAGES/*.mo'
],
},
data_files = [('',['version.txt','template.xml']),],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy'
],
entry_points="""
[console_scripts]
NovalIDE = noval.noval:main
"""
)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/webshare520/NovalIDE.git
git@gitee.com:webshare520/NovalIDE.git
webshare520
NovalIDE
NovalIDE
master

搜索帮助