#38895: NEW: py-http-parser ------------------------+-------------------------------- Reporter: jkrage@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Keywords: | Port: py-http-parser ------------------------+-------------------------------- New port submission for py-http-parser from http://pypi.python.org/packages/source/h/http-parser HTTP request/response parser for Python compatible with Python 2.x (>=2.6), Python 3 and Pypy. If possible a C parser based on http-parser from Ryan Dahl will be used. Port is needed as a dependency for other submissions (e.g., py-restkit). -- Ticket URL: <https://trac.macports.org/ticket/38895> MacPorts <http://www.macports.org/> Ports system for OS X
#38895: NEW: py-http-parser -----------------------------+-------------------------------- Reporter: jkrage@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: py-http-parser | -----------------------------+-------------------------------- Comment (by blair@…): What does "If possible a C parser based on http-parser from Ryan Dahl will be used." mean? How is this picked up? Where is it found? Is it another port? If so, it should be made an explicit dependency. Is that dependency build-time only or also runtime? -- Ticket URL: <https://trac.macports.org/ticket/38895#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#38895: NEW: py-http-parser -----------------------------+-------------------------------- Reporter: jkrage@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: py-http-parser | -----------------------------+-------------------------------- Comment (by jkrage@…): The C code is embedded within this package, and embedded as the parser.so file under the python site-packages installation. The usage example that the author provides is below, showing the fallback from the C-driven python to the python-native code: # try to import C parser then fallback in pure python parser. try: from http_parser.parser import HttpParser except ImportError: from http_parser.pyparser import HttpParser -- Ticket URL: <https://trac.macports.org/ticket/38895#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#38895: NEW: py-http-parser -----------------------------+-------------------------------- Reporter: jkrage@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: py-http-parser | -----------------------------+-------------------------------- Comment (by jkrage@…): One other note. I haven't run into this (yet?); from the author's readme about installation: {{{ Or install from source: $ git clone git://github.com/benoitc/http-parser.git $ cd http-parser && python setup.py install Note: if you get an error on MacOSX try to install with the following arguments: $ env ARCHFLAGS="-arch i386 -arch x86_64" python setup.py install }}} -- Ticket URL: <https://trac.macports.org/ticket/38895#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#38895: NEW: py-http-parser -----------------------------+-------------------------------- Reporter: jkrage@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: py-http-parser | -----------------------------+-------------------------------- Comment (by Peter.Danecek@…): (+1) current version @ 0.8.3; working link: https://pypi.python.org/pypi/http-parser/0.8.3 Replying to [comment:3 jkrage@…]:
One other note. I haven't run into this (yet?); from the author's readme about installation:
{{{ Note: if you get an error on MacOSX try to install with the following arguments:
$ env ARCHFLAGS="-arch i386 -arch x86_64" python setup.py install }}}
Is not Macport's base already taking care of this? -- Ticket URL: <https://trac.macports.org/ticket/38895#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#38895: NEW: py-http-parser -----------------------------+-------------------------------- Reporter: jkrage@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: py-http-parser | -----------------------------+-------------------------------- Comment (by jkrage@…): Replying to [comment:4 Peter.Danecek@…]:
Is not Macport's base already taking care of this?
I believe that base is handling this fine. -- Ticket URL: <https://trac.macports.org/ticket/38895#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
#38895: NEW: py-http-parser -----------------------------+-------------------------------- Reporter: jkrage@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: py-http-parser | -----------------------------+-------------------------------- Comment (by jkrage@…): Updated Portfile for py-http-parser 0.8.3 provided. Testing on 10.8. -- Ticket URL: <https://trac.macports.org/ticket/38895#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
#38895: NEW: py-http-parser -----------------------------+-------------------------------- Reporter: jkrage@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: py-http-parser | -----------------------------+-------------------------------- Changes (by petr@…): * cc: Peter.Danecek@… (removed) -- Ticket URL: <https://trac.macports.org/ticket/38895#comment:9> MacPorts <http://www.macports.org/> Ports system for OS X
#38895: NEW: py-http-parser -----------------------------+-------------------- Reporter: jkrage@… | Owner: petr@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: py-http-parser | -----------------------------+-------------------- Changes (by petr@…): * owner: macports-tickets@… => petr@… -- Ticket URL: <https://trac.macports.org/ticket/38895#comment:10> MacPorts <http://www.macports.org/> Ports system for OS X
#38895: NEW: py-http-parser -----------------------------+-------------------- Reporter: jkrage@… | Owner: petr@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: py-http-parser | -----------------------------+-------------------- Comment (by petr@…): I slightly edited your Portfile (see r122378), so I you are okay with it I would commit that version. Please let me know if you want to become maintainer of this port. -- Ticket URL: <https://trac.macports.org/ticket/38895#comment:11> MacPorts <http://www.macports.org/> Ports system for OS X
#38895: NEW: py-http-parser -----------------------------+-------------------- Reporter: jkrage@… | Owner: petr@… Type: submission | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: fixed | Keywords: Port: py-http-parser | -----------------------------+-------------------- Changes (by petr@…): * status: new => closed * resolution: => fixed Comment: Committed in r123639. Closing! -- Ticket URL: <https://trac.macports.org/ticket/38895#comment:13> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts