{"id":745,"date":"2012-06-09T17:47:14","date_gmt":"2012-06-09T16:47:14","guid":{"rendered":"http:\/\/www.phillips321.co.uk\/?p=745"},"modified":"2012-06-09T17:47:14","modified_gmt":"2012-06-09T16:47:14","slug":"building-deb-packages-from-setup-py-passlib-1-6","status":"publish","type":"post","link":"https:\/\/www.phillips321.co.uk\/2012\/06\/09\/building-deb-packages-from-setup-py-passlib-1-6\/","title":{"rendered":"building deb packages from setup.py &#8211; passlib 1.6"},"content":{"rendered":"<p>Today I&#8217;ve been writing my first python script. I&#8217;m using <a href=\"http:\/\/packages.python.org\/passlib\/index.html\" target=\"_blank\">passlib.hash<\/a>, unfortunately <a href=\"http:\/\/packages.ubuntu.com\/precise\/python\/python-passlib\" target=\"_blank\">ubuntu 12.04 comes with version 1.5.3<\/a> instead of <a href=\"http:\/\/code.google.com\/p\/passlib\/downloads\/detail?name=passlib-1.6.tar.gz&#038;can=2&#038;q=\" target=\"_blank\">version 1.6<\/a> so there is no support for MsSQL,  LM, NTLM, Domain Cached etc&#8230;<\/p>\n<p>I don&#8217;t like installing packages from source as it&#8217;s a bugger to roll back if something goes wrong, so I decided to look into creating a deb package of passlib 1.6.<\/p>\n<p>It&#8217;s as simple as:<\/p>\n<div class=\"codecolorer-container text vibrant\" style=\"overflow:auto;white-space:nowrap;width:100%;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/>3<br \/><\/div><\/td><td><div class=\"text codecolorer\">apt-get -y install python-stdeb<br \/>\npython setup.py --command-packages=stdeb.command bdist_deb<br \/>\ndpkg -i deb_dist\/*.deb<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n<p>For those that need passlib 1.6 in deb format you can download it from<a href=\"http:\/\/www.phillips321.co.uk\/downloads\/python-passlib_1.6-1_all.deb\" target=\"_blank\"> here (python-passlib_1.6-1_all.deb_<\/a><\/p>\n<p>Oh, and if you&#8217;re just interested in installing 1.6 of passlib in the super quick way:<\/p>\n<div class=\"codecolorer-container text vibrant\" style=\"overflow:auto;white-space:nowrap;width:100%;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/>3<br \/>4<br \/>5<br \/><\/div><\/td><td><div class=\"text codecolorer\">apt-get -y install python-setuptools<br \/>\neasy_install passlib<br \/>\n-----OR-----<br \/>\napt-get -y install python-pip<br \/>\npip install passlib<\/div><\/td><\/tr><\/tbody><\/table><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Today I&#8217;ve been writing my first python script. I&#8217;m using passlib.hash, unfortunately ubuntu 12.04 comes with version 1.5.3 instead of version 1.6 so there is no support for MsSQL, LM, NTLM, Domain Cached etc&#8230; I don&#8217;t like installing packages from source as it&#8217;s a bugger to roll back if something goes wrong, so I decided [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[289,288,111,287],"_links":{"self":[{"href":"https:\/\/www.phillips321.co.uk\/wp-json\/wp\/v2\/posts\/745"}],"collection":[{"href":"https:\/\/www.phillips321.co.uk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.phillips321.co.uk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.phillips321.co.uk\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.phillips321.co.uk\/wp-json\/wp\/v2\/comments?post=745"}],"version-history":[{"count":5,"href":"https:\/\/www.phillips321.co.uk\/wp-json\/wp\/v2\/posts\/745\/revisions"}],"predecessor-version":[{"id":750,"href":"https:\/\/www.phillips321.co.uk\/wp-json\/wp\/v2\/posts\/745\/revisions\/750"}],"wp:attachment":[{"href":"https:\/\/www.phillips321.co.uk\/wp-json\/wp\/v2\/media?parent=745"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.phillips321.co.uk\/wp-json\/wp\/v2\/categories?post=745"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.phillips321.co.uk\/wp-json\/wp\/v2\/tags?post=745"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}