标签:
def print_lol(the_list): """The file name is nester.py. print each_item for list""" for each_item in the_list: if isinstance(each_item,list): print_lol(each_item) else: print each_item
from distutils.core import setup setup( name = "nester", version = "1.0.0", py_modules = [‘nester‘], author = ‘jonnylee‘, author_email = ‘lichaoning@trthi.com‘, url = ‘https://www.baidu.com‘, description = ‘A simple printer of nested lists‘, )
1 $ python setup.py sdist 2 running sdist 3 running check 4 warning: sdist: manifest template ‘MANIFEST.in‘ does not exist (using default file list) 5 6 warning: sdist: standard file not found: should have one of README, README.txt 7 8 writing manifest file ‘MANIFEST‘ 9 creating nester-1.0.0 10 making hard links in nester-1.0.0... 11 hard linking nester.py -> nester-1.0.0 12 hard linking setup.py -> nester-1.0.0 13 Creating tar archive 14 removing ‘nester-1.0.0‘ (and everything under it)
1 $ python setup.py install 2 running install 3 running build 4 running build_py 5 creating build 6 creating build/lib 7 copying nester.py -> build/lib 8 running install_lib 9 running install_egg_info 10 Removing /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nester-1.0.0-py2.7.egg-info 11 Writing /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nester-1.0.0-py2.7.egg-info
标签:
原文地址:http://www.cnblogs.com/afeiya/p/5496786.html