Installing scripts and documentation

J

Jorgen Grahn

Someone recently brought this up in the thread "Linux application
deployment", but from a slightly different angle.

I have a problem.

When I write small utilities for Unix in C, C++, Perl or /bin/sh, I always
write one or more manpages, and make all of it installable with a trivial
Makefile with an 'install' target. The things end up in /usr/local/bin,
/usr/local/man etc by default. Crude, but works well enough for my
purposes.

Nowadays, when I write some things in Python, there's a problem. The list of
installable things suddenly tends to include modules as well (which I
usually try to wrap in a package).

Distutils is the only tool which knows what to do with these (compiling
them, placing them in the correct site-packages etc), but at the same time
distutils knows nothing about copying executables to somewhere in the $PATH,
copying manual pages to somewhere in $MANPATH, and so on.

Any tools, tricks or conventions that I'm unaware of?

BR,
Jorgen
 
C

christopher

I e-mailed Greg Stein, the implementor of httplib, directly on this topic
since there is so much traffic on this mailing list now, but alas he has
an auto-responder as well...

So...

I was wondering if the chunked encoding parser in libhttp supports chunk
trailers as described here:

http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.6.1

I'm using libhttp for some of the testing of a proxy server I am working
on which is described here:

http://www.baus.net/archives/000137.html

I doesn't seem that this information is available in the libhttp response
object. I'm currently considering not supporting trailers (ie assuming
they are always empty), as I don't know of any real world example where
they are used.

TIA,

Christopher
www.baus.net
 
O

Oleg Paraschenko

Hello Christopher,

...
I was wondering if the chunked encoding parser in libhttp supports chunk
trailers as described here:
...

It is not surprise if not.
...
I doesn't seem that this information is available in the libhttp response
object. I'm currently considering not supporting trailers (ie assuming
they are always empty), as I don't know of any real world example where
they are used.

Try to do POST requests to CGIs under IIS. I think you will get a
real worl example soon.
 
C

christopher

Try to do POST requests to CGIs under IIS. I think you will get a
real worl example soon.

In the request or response? I assume you mean the response, but what
information is in the trailer, and how is it used?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,206
Messages
2,571,069
Members
47,675
Latest member
RollandKna

Latest Threads

Top