Measuring open road fifty-eight: packaging and installation

 

Bale:

The fox package, then install

In the package you want to create a new folder outside setup.py

setuptools Import Setup from 

Setup (
name = after the # package name 'Fox',
Version = '1.1.00', # version
multipoint when packages = [ 'fox'], # file folder to be packaged, write a [ 'Fox', 'src']
url = '', # URL tool storage after packaged
License = '',
author = '40556', # of
author_email = '', # author Email
the Description = '' # description
# need to install dependencies (third-party libraries), as 'XXX> = version number'
# install_requires = [ '', '']
)

 

To perform the directory: python setup.py sdist

 

 

installation:

unzip

And execute python setup.py install

 

 

Go python installation package catalog, already installed

You can call directly into

 

 

Guess you like

Origin www.cnblogs.com/zhongyehai/p/11087380.html