为什么python打包的应用那么大_像spyder那样打包python应用程序

我有一个开源的python软件(GridCal),它有一个用PyQt5制作的GUI。该程序是pip可安装的pip3 install GridCal。在

我想知道我应该怎么做,这样当有人安装我的程序时,它会出现在系统菜单上,就像安装Spyder(PythonIDE)一样

到目前为止,我只能提供程序的setup.py,但我不知道它是否相关。在from distutils.core import setup

import sys

import os

name = "GridCal"

# Python 2.4 or later needed

if sys.version_info < (3, 5, 0, 'final', 0):

raise (SystemExit, 'Python 3.5 or later is required!')

# Build a list of all project modules

packages = []

for dirname, dirnames, filenames in os.walk(name):

if '__init__.py' in filenames:

packages.append(dirname.replace('/', '.'))

package_dir = {name: name}

# Data_files (e.g. doc) needs (directory, files-in-this-directory) tuples

data_files = []

for dirname, dirnames, filenames in os.walk('doc'):

fileslist = []

for filename in filenames:

fullname = os.path.join(dirname, filename)

fileslist.append(fullname)

data_files.append(('share/' + name + '/' + dirname, fileslist))

setup(

# Application name:

name=name,

# Version number (initial):

version="1.025",

# Application author details:

author="Santiago Peñate Vera",

author_email="santiago.penate.vera@gmail.com",

# Packages

packages=packages,

data_files=data_files,

# Include additional files into the package

include_package_data=True,

# Details

url="http://pypi.python.org/pypi/GridCal/",

# License file

license="LICENSE.txt",

# description

description="Research Oriented electrical simulation software.",

# long_description=open("README.txt").read(),

# Dependent packages (distributions)

install_requires=["numpy",

"scipy",

"networkx",

"pandas",

"xlwt",

"xlrd",

"PyQt5",

"matplotlib",

"qtconsole"

],

)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值