Re: Boost.Python: providing libs for both Python 2.4 and 2.5.

2008-03-21 Thread Aaron M. Ucko
"Steve M. Robbins" <[EMAIL PROTECTED]> writes:

> This allows extension builders to select either the default Python
> version, or a specific version, without knowing the Boost
> and GCC versions [2].

Yep; so far so good.

> I'd like to ask about intended behaviour if a bad action is supplied.
> Or if an unsupported python version is given.  I chose to exit with an
> error message and status 1.  Now I'm a little worried that will break
> some Python installs and generate the hate mail.  What's the
> recommended behaviour here?

Good question.  I'd favor exiting with non-zero status, per the
proposed implementation; if you're really concerned about potential
disruption, you can always add "|| true" to the prerm's invocation so
that users can at least readily pull libboost-python-dev from their
systems until you resolve the breakage.

I do, however, see a couple of concrete issues with your script:

> if [ "$1" = "-d" ]; then
> debug=-d
> shift
> fi

Shouldn't you fix that at build time à la $version?

> rtupdate)  rtupdate $1 ;;

More critically, AFAICT you want to pass $2, not $1.

-- 
Aaron M. Ucko, KB1CJC (amu at alum.mit.edu, ucko at debian.org)
http://www.mit.edu/~amu/ | http://stuff.mit.edu/cgi/finger/[EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: RFS: python-docutils 0.4-6

2008-03-21 Thread martin f krafft
also sprach Simon McVittie <[EMAIL PROTECTED]> [2008.03.20.2216 +0100]:
> Could someone (madduck?) please upload python-docutils (r4865) from
> python-modules-team svn? It fixes build failure with the current
> python-central version.

Does it address #472046?

-- 
 .''`.   martin f. krafft <[EMAIL PROTECTED]>
: :'  :  proud Debian developer, author, administrator, and user
`. `'`   http://people.debian.org/~madduck - http://debiansystem.info
  `-  Debian - when you have better things to do than fixing systems
 
"der glaube an den kausalnexus ist der aberglaube"
   -- wittgenstein


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)


Boost.Python: providing libs for both Python 2.4 and 2.5.

2008-03-21 Thread Steve M. Robbins
Hello,

I wrote about three weeks ago [1] that I'm trying to get Boost's
Python extension helper library building with multiple Python
versions.  Several very helpful suggestions were made, for which I am
grateful.

I have been plugging away, very slowly, ever since.  I'm hoping to
upload it later today and I'd appreciate have some second opinions on
what I've done.

I settled on creating libraries with suffix "-py24" and "-py25" using
the available Boost mechanism of "--buildid" since that ensures the
SONAME also has "-py24" or "-py25".  The shared library files thus
coexist peacefully.

For the link libraries, I chose to retain both the fully-decorated
forms including the "-pyXY" suffix, as well as create symlinks (with
no suffix) for those who just want the default python version.  These
symlinks are maintained by an "rtupdate" script as suggested by a
couple of people.

Focusing only on the simpler, Debian-specific, library names,
the intent is that the following link libraries are availble:

libboost_python-py24.a -> libboost_python-gcc42-1_34_1-py24.a
libboost_python-py24.so -> libboost_python-gcc42-1_34_1-py24.so
libboost_python-py25.a -> libboost_python-gcc42-1_34_1-py25.a
libboost_python-py25.so -> libboost_python-gcc42-1_34_1-py25.so
libboost_python.a -> libboost_python-py24.a
libboost_python.so -> libboost_python-py24.so

The rtupdate script (attached) will replace the last two libraries
with

libboost_python.a -> libboost_python-py25.a
libboost_python.so -> libboost_python-py25.so

This allows extension builders to select either the default Python
version, or a specific version, without knowing the Boost
and GCC versions [2].

I'd appreciate any feedback on the above, and especially on what
follows.

I'd love some folks to look over the attached rtupdate script.  My
understanding is that this gets run when the Python default version
changes.  If so, I guess that a bug in the script will cause the
Python package install to fail.  I'd like to avoid the hate mail
generated if that happened; so if you've got a moment, have a look at
the script.

I'd like to ask about intended behaviour if a bad action is supplied.
Or if an unsupported python version is given.  I chose to exit with an
error message and status 1.  Now I'm a little worried that will break
some Python installs and generate the hate mail.  What's the
recommended behaviour here?

Note that my libboost-python-dev postinst script calls it
to populate the symlinks initially:

/usr/share/python/runtime.d/libboost-python-dev.rtupdate \
rtupdate none $(pyversions -d)

I also use it in the prerm to remove all the symlinks:

/usr/share/python/runtime.d/libboost-python-dev.rtupdate \
remove

Thanks,
-Steve


[1] http://lists.debian.org/debian-python/2008/02/msg00033.html
[2] http://lists.debian.org/debian-python/2008/02/msg00045.html
#! /bin/sh
#
# Update link-library symlinks after a Python default runtime change

set -e

version=1_34_1

die() {
echo "$@" >&2
exit 1
}

update_linklibs() {
py=$1
suf=$2

cd /usr/lib
for thread in "" -mt; do
for gcc in gcc41 gcc42; do
ln -s -f 
libboost_python-${gcc}${thread}${debug}-${version}-${py}.${suf} \
 libboost_python-${gcc}${thread}${debug}-${version}.${suf}
done
ln -s -f libboost_python${thread}${debug}-${py}.${suf} \
 libboost_python${thread}${debug}.${suf} 
done
}

remove_linklibs() {
suf=$1

cd /usr/lib
for thread in "" -mt; do
for gcc in gcc41 gcc42; do
rm -f libboost_python-${gcc}${thread}${debug}-${version}.${suf}
done
rm -f libboost_python${thread}${debug}.${suf} 
done
}

rtupdate() {
case "$1" in
python2.4)  py=py24 ;;
python2.5)  py=py25 ;;
*)  die $0 unknown python version $1 ;;
esac

update_linklibs $py a
update_linklibs $py so
}

remove() {
remove_linklibs a
remove_linklibs so
}


if [ "$1" = "-d" ]; then
debug=-d
shift
fi

action="$1"
shift

case "$action" in
pre-rtupdate)  ;;
post-rtupdate) ;;
rtupdate)  rtupdate $1 ;;
remove)remove ;;
*) die "$0 called with unknown argument '$action'" ;;
esac



signature.asc
Description: Digital signature


Candidatura rete agenti | Life - Bellaria

2008-03-21 Thread Life | Rete Agenti





Documento senza titolo







LIFE. comunicazione / commercializzazione / risor= se umane

e-mail inf= [EMAIL PROTECTED] . website www.gruppolife.net













Egregi signori,



siamo la direzione Commerciale dell'azienda = LIFE che ha sede in
Romagna e opera nel settore della commercializzazione= delle aziende
ovvero la vendita dei prodotti e servizi senza costi fissi= . La
nostra specializzazione risiede nella creazione e gestione di Reti Commerciali 
ed Uffici Commerciali in tutta Italia.




Operiamo da 5 anni in diversi settori e abbi= amo conseguito ottimi
risultati. La nostra azienda offre soluzioni collab= orative, senza
costi fissi per la vostra Azienda che vi permettono di ven= dere i
vostri prodotti e servizi in tutta Italia .



Vi spiego subito cosa significa "sen= za costi fissi per la vostra
Azienda":

LIFE si propone come Direzione Commerciale esterna, senza alcun
compenso = fisso, solo con un compenso provvigionale sui fatturati che
si sviluppera= nno. Ogni servizio di seguito proposto può
essere accolto in quest= a formula, poiché il nostro intento
è quello di entrare in = collaborazione con voi e guadagnare
dall'aumento dei vostri fatturati.

I nostri servizi senza costi fissi:



1. Ricerca e Selezione + realizzazione e = gestione rete agenti base
italia:

Realizziamo e gestiamo direttamente la vostra rete agenti su= base
Italia . Grazie al nostro servizio cureremo tutti gli aspetti necessari alla 
realizzazione egestione della vostra rete agenti dalla
ricerca = degli stessi, effettuata in base alle vostre esigenze
(mono-multimandati, = procacciatori etc.) fino alla loro gestione e
implementazione dei fattur= ati.

Superata la fase di ricerca gli agenti saranno contrattualizzati
egestiti= direttamente dal nostro ufficio così da avviare subito
la produzi= one. Ogni agente avrà un call-center dedicato per
sviluppare gli a= ppuntamenti ed aumentare i fatturati. Ci assumiamo
direttamente anche le = spese "fiscali" dell'agente (enasarco) .
Grazie al nostro softw= are di gestione degli ordini, ogni agente ed
ogni azienda che collabora con= noi potrà, in ogni momento,
conoscere la produttività. Non= dovrete occuparvi in alcun
modo della gestione della rete commerciale, m= a solo di definire le
strategie da seguire e gli obiettivi definiti di co= mune accordo.



2. Ufficio Commerciale Italia:

Life desidera offrirvi un servizio realmente utile. La nostr= a
struttura vi offre infatti la possibilità di aprire per voi un
v= ero e proprio ufficio commerciale che curerà direttamente i
vostri = interessi legaalla commercializzazione dei vostri prodotti e
servizio ed i= noltre fungerà da coordinamento degli agenti o
dei partner commerc= iali. Abbiamo realizzato un software gestionale
ad-hoc attraverso il qual= e la vostra azienda, i vostri agenti e noi
potremo in ogni momento conosc= ere il volume dei fatturati e la
gestione di ogni singolo ordine. L'uffic= io commerciale, inoltre,
ricerca e propone nuove vie commerciali per i vo= stri prodotti
monitorando costantemente il mercato. Fra i suoi compiti il= vostro
ufficio commerciale provvede a:



ricercare nuovi clienti;

proporre i vostri prodotti;

ricevere e gestire gli ordini;

definire le strategie di mercato;

gestire gli agenti;

controllare i fatturati;

pianificare l'agenda agente \ partner;



Avrete un pull di operatori che lavorano per voi e soprattutto
controllan= o la produzione dei vostri agenti.



3. Ricerca partner:

Per quelle aziende che non necessitano di una rete agenti oppure hanno 
desiderio di creare una rete di partner che rivendano i loro
prodott= i e servizi è possibile realizzare una ricerca
partner. Tali azien= de, ricercate su tutto il territorio nazionale,
saranno contattate dirett= amente dal nostro ufficio e
contrattualizzate come "aziende convenzi= onate" o altra formula
definita successivamente . Queste saranno il = vostro punto vendita e
porteranno il vostro prodotto o servizio a conosce= nza del cliente
finale. Anche qui il nostro guadagno risiede in una perce= ntuale
sulle vendite. Ogni attività necessaria: dalla ricerca 
allacontrattualizzazione del partner sarà a nostro carico salvo
diver= si accordi fra le nostre parti.



4. E-commece:

Vi sono situazioni in cui la rete agenti o la ricerca partner no= n
sono indispensabili e spesso occorre solo una piattaforma di vendita
di= retta che può essere rivolta al rivenditore oppure al
finale. Conosc= endo i costi per la realizzazione di un e-commerce
abbiamo pensato ad una= soluzione senza costi fissi, la quale mantiene
la stessa filosofia di gu= adagno sul fatturato. Realizzeremo un
e-commerce inserendo i vostri prodo= tti a cui potrete accedere per
implementare prodotti e servizi in ogni mo= mento, controllare gli
ordini e sviluppare autonomamente il vostro busine= ss su internet.
Questo servizio può essere associato successivamen= te a
campagne promozionali su internet per aumentare le vendite.



5. Grafica e comunicazione:

Molte aziend