python dependencies

Download Python dependencies

Post on 27-Jul-2015

106 views

Category:

Software

3 download

Embed Size (px)

TRANSCRIPT

1. IT Talk #32 IT Talk #32 1 2. IT Talk #32 IT Talk # 17 2014 2 Python: 3. IT Talk #32 . . ;) 3 4. IT Talk #32 ? : 4 5. IT Talk #32 ? : : : SQLAlchemy=0.9.7 5 6. IT Talk #32 ? : : , 6 7. IT Talk #32 ? : : , : 7 8. IT Talk #32 : Pip vs RPM/DEB vs Virtualenv - , Docker - VM - overhead! ! 8 9. IT Talk #32 9 10. IT Talk #32 Virtualenv Docker VMs 10 11. IT Talk #32 Virtualenv Docker VMs Dev/Test/Stage Production 11 12. IT Talk #32 Virtualenv python- 12 13. IT Talk #32 Virtualenv python- Docker C- 13 14. IT Talk #32 Virtualenv python- Docker C- Virtual Machine ? 14 15. IT Talk #32 Virtualenv: dev- ( mac:( ) 15 16. IT Talk #32 Virtualenv: dev- ( mac:( ) production 16 17. IT Talk #32 Virtualenv: dev- ( mac:( ) production 1) 2) 3) - 1 :) 17 18. IT Talk #32 Docker - ? 18 19. IT Talk #32 VM , 80% 19 20. IT Talk #32 VM , 80% Docker++ 20 21. IT Talk #32 21 22. IT Talk #32 Python vs OS package 22 23. IT Talk #32 Python vs OS package 1. 23 24. IT Talk #32 Python vs OS package 1. 2. pip yum/aptitude/ .. 24 25. IT Talk #32 Python packages: ? setup.py setup.cfg PEP-314, PEP-426 . 25 26. IT Talk #32 python setup.py install Distutils Setuptools Distribute Distutils2 Distlib Bento pbr pip 26 27. IT Talk #32 python /usr/lib/python2.x/{site,dist}-packages /usr/. /etc/ /usr/share/man 27 28. IT Talk #32 python /usr/lib/python2.x/{site,dist}-packages/package-name /usr/. /etc/ /usr/share/man 28 29. IT Talk #32 python /usr/lib/python2.x/{site,dist}-packages/package-name-ver /usr/. /etc/ /usr/share/man 29 30. IT Talk #32 pip Its a tool for installing and managing Python packages. yum, aptitude, .. 30 31. IT Talk #32 Pip: : pypi python 31 32. IT Talk #32 Pip: 32 33. IT Talk #32 requirements.txt ! Git/Mercurial/SVN 33 34. IT Talk #32 pip: 34 35. IT Talk #32 35 36. IT Talk #32 2 , 36 37. IT Talk #32 2 , 37 38. IT Talk #32 2 , , 38 39. IT Talk #32 RPM/DEB: - Puppet/Chef pip 39 40. IT Talk #32 RPM/DEB: - Puppet/Chef pip 40 41. IT Talk #32 RPM/DEB: 41 42. IT Talk #32 RPM/DEB: == 42 43. IT Talk #32 RPM python python setup.py bdist_rpm pre-/post-build events , SPEC 43 44. IT Talk #32 DEB python PyPI, 44 45. IT Talk #32 PIP - , 45 46. IT Talk #32 PIP - , RPM/DEB- - 46 47. IT Talk #32 PIP - , RPM/DEB- - virtualenv - 47 48. IT Talk #32 http://stackoverflow.com/questions/6344076/ differences-between-distribute-distutils- setuptools-and-distutils2 https://pip.readthedocs.org/en/latest/ http://legacy.python.org/dev/peps/pep-0314/ http://legacy.python.org/dev/peps/pep-0426/ http://google.com 48 49. IT Talk #32 . ? Skype: e0ne-user Blog: http://blog.e0ne.info/ E-mail: e0ne@e0ne.info Twitter: @e0ne