![]() The WSGI interface has two sides: the server/gateway and the application side beside this strict distinction there are so called “middleware” components which implement server and application sides at the same time: It has since been adopted as a standard for Python web application development. It was originally specified in PEP333 and published on 7 December 2003. The Web Server Gateway Interface (WSGI) is a specification for simple and universal interface between web servers and web applications or frameworks for the Python programming language. Load_entry_point('helloworld=1.0', 'console_scripts', 'xgf')() # EASY-INSTALL-ENTRY-SCRIPT:'helloworld=1.0','console_scripts','xgf'įrom pkg_resources import load_entry_point Type "help", "copyright","credits" or "license" for more information. Install the sudo python setup.py treeġ0 directories, 21 unzip -l/usr/local/lib/python2.7/dist-packages/helloworld-1.0-py2.7.eggĪrchive: /usr/local/lib/python2.7/dist-packages/helloworld-1.0-py2.7.egg Copy helloworld-1.0.tar.gz from ‘Host A’ to ‘Host B’, and unzip tree Helloworld-1.0/src/helloworld/data/abc.dat Helloworld-1.0/src/helloworld/data/abcd.dat Helloworld-1.0/src/helloworld.egg-info/dependency_links.txt Helloworld-1.0/src/helloworld.egg-info/top_level.txt Helloworld-1.0/src/helloworld.egg-info/SOURCES.txt Helloworld-1.0/src/helloworld.egg-info/entry_points.txt Helloworld-1.0/src/helloworld.egg-info/PKG-INFO License = gedit src/helloworld/_init_.pyĥ directories, 13 file dist/helloworld-1.0.tar.gzĭist/helloworld-1.0.tar.gz: gzip compressed data, was"dist/helloworld-1.0.tar", last modified: Sun Nov 5 14:42:44 2017, max tar -tf dist/helloworld-1.0.tar.gz Install sudo apt-get install python-setuptoolsįrom setuptools import setup, find_packages ![]() jar in Java, is a logical structure embodying the release of a specific version of a Python project,comprising its code, resources, and metadata. The _init_.py files are required to make Python treat the directories as containing packages in the simplest case, _init_.py can just be an empty file, but it can also execute initialization code for the package or set the _all_ variable. ![]() Setup.py is a python file, which usually tells you that the module/package you are about to install has been packaged and distributed with Distutils,which is the standard for distributing Python Modules. It includes: Python package and module definitions distribution package metadata test hooks project installation platform-specific details and Python 3 support (similar to Mavenin Java). Setuptools is a package development process library designedto facilitate packaging Python projects by enhancing the Python standard library Distutils (distribution utilities). As the leading open-source software platform for cloud computing and in order to prevent from reinventing the wheel,the OpenStack community has adopted many open-source frameworks, middlewares, libraries and tools for its implementation, such as Setuptools, WSGI, Eventlet,Paste Deploy, Routes and Webob etc without a deep understanding of them, going to Openstack code directly would be a terrible and frustrating experience.Today we will have a quick review of these softwares and tools, and make uswell prepared for the next step – learning and debugging OpenStack code. 薛国锋 OpenStack manually can tell you the flow and configuration details, while learning and debugging OpenStack code can greatly help you understand how OpenStack really works. Cloud in Action: Prepare for OpenStack Code
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |