httpie / cli

🥧 HTTPie CLI — modern, user-friendly command-line HTTP client for the API era. JSON support, colors, sessions, downloads, plugins & more.
https://httpie.io
BSD 3-Clause "New" or "Revised" License
33.22k stars 3.67k forks source link

Installer #66

Closed jkbrzt closed 10 years ago

jkbrzt commented 12 years ago

It's quite complicated to install httpie, especially for non-Python folks. Some Linux distros already include it as a package but most often one still has to use pip or easy_install manually.

It would be great to have an installer that checks whether Python and pip are available and installs them if necessary before installing httpie itself. Something like curl https://raw.github.com/jkbr/httpie/master/install.sh | sh could be made quite universal.

Also, a homebrew recipe would be handy for Mac OSX user.

Related: #58

davertron commented 12 years ago

+1 to the homebrew recipe.

dwradcliffe commented 12 years ago

+1 homebrew

zhuangya commented 12 years ago

+1.

toxinu commented 12 years ago

What's difficult with easy_install or pip ?

Python have it's own package manager I think it's not a good idea to repackage every package.

This first cause it's that maintener will probably every time publish it's package on pypi first. Second, it's a waste of time to support two way of install while it's pip job.

It's the same problem with most of Linux distro, module packaged by distribution are all the time outaded and not every time nicely installed like pip do.

Just run:

easy_install pip
pip install httpie
pooriaazimi commented 12 years ago

@Socketubs I don't use pip or easy_install, as I'm not a Python guy. All my unix tools are installed with brew, and I update it regularly. If I install HTTPie with pip, I'm sure I'll forget about updating it in a few weeks.

laurentb commented 12 years ago

It won't happen, the homebrew guys don't want to. "Homebrew doesn’t install gems, eggs, etc. If you want them, read: Gems, Eggs and Perl Modules" https://github.com/mxcl/homebrew/wiki/Gems%2C-Eggs-and-Perl-Modules

(Don't get me wrong, I think they are misguided, and that howebrew is the worst package manager available on Mac OS, while thinking all the others are horribly bad.)

jkbrzt commented 12 years ago

@Socketubs I haven't looked into this very thoroughly but the preliminary idea is that the Homebrew formula would be just a wrapper around pip (it would also install it first if necessary).

@laurentb You are right, most likely it wouldn't get accepted, but my understanding is that you can host homebrew formulae outside the official repo and add them using the tap command. Something like this:

brew tap jkbr/httpie
brew install httpie
mikeotoole commented 11 years ago

+1 homebrew

JaviSoto commented 11 years ago

+1 homebrew

toxinu commented 11 years ago

Still not have a clean way to distribute python egg or ruby gems with homebrew ?

jkbrzt commented 10 years ago

As of today it's possible to install HTTPie via Homebrew:

$ brew update && brew install httpie

https://twitter.com/jakubroztocil/status/481453834024550400

acorncom commented 10 years ago

:+1: Thanks a bunch!