开发者

Check all dependencies of python software before installing in window

i make the single exe file for installing my software in window using "python setup.py bdist_wininst" but when install this software using exe it check only for python install in system or not , it does not check other dependencies like pyqt ,pycurl library . how i modify this setup file so the generated exe file first check all dependency present in window system before installing if not then install all dependent library.

setup.py file

setup(name='XYZ',
      version='1.0',
      description='application',
      author='Arjun Jain',
      author_email='xxxxx',
      url='xxxx',
      download_url='xxxx',
      packages=packages,
      data_files = data_files,
      scripts = ['xyz'],
      classifiers = ['Development Status :: 5 - Production/Stable',
                   'Intended Audience :: Developers',
                   'License :: 开发者_运维百科GNU',
                   'Operating System :: OS Independent',
                   'Programming Language :: Python',
                   'Programming Language :: Python :: 2.6',
                   'Programming Language :: Python :: 2.7',
                   'Programming Language :: PyQt :: 4.6',
                   ],
)


Use the install_requires keyword argument to setuptools.setup() to specify other packages your package requires.

Note: according to the SO question Is it possible to require PyQt from setuptools setup.py? you cannot get setuptools to install it for users who have a Python distribution that's missing it. Anything available from pypi should be installable this way.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜