You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by Ken Giusti <kg...@redhat.com> on 2015/05/26 23:08:14 UTC

Candidate python-qpid-proton 0.9.1 is available for testing at TestPyPi

I've pushed a candidate source package for python-qpid-proton to the TestPyPi repository.

This source package includes Flavio's patch that pulls down the Proton C sources if needed.

You can download it via pip like so:

pip install -i https://testpypi.python.org/pypi python-qpid-proton

Take it for a spin - kick the tires (or is that 'tyres'?).   Drive it like you stole it.

If it looks good I'll push the official package up to the real PyPi site.

thanks,

-- 
-K

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


Re: Candidate python-qpid-proton 0.9.1 is available for testing at TestPyPi

Posted by Flaper87 <fl...@gmail.com>.
2015-05-29 15:46 GMT+02:00 Dominic Evans <do...@uk.ibm.com>:

> Hi Ken,
>
> -----Ken Giusti <kg...@redhat.com> wrote: -----
> > Thanks Dominic,
> >
> > Flavio sent me a patch to fix this, I've tested it and it looks good.
> >
> > I've pushed a new package up to the pypi testing site if you'd like
> > to give it a try:
> >
> > pip install --user -i https://testpypi.python.org/pypi
> > python-qpid-proton
> >
>
> Sorry for the slow response. Just got around to trying this now.
>
> The package is working well with pip --user now.
>
> A minor caveat (I wouldn't hold up the release for) is that the install of
> qpid-proton is left around with headers in ~/.local/include/ libraries in
> ~/.local/lib/ and samples (for all the bindings) in ~/.local/share/.
> These don't get included in a `pip uninstall`. It would be excellent if
> just
> the runtime libqpid-proton could be installed into the
> pythonX.X/site-packages/proton dir and then included in the uninstall
>

Yeah, this is a problem with the current version. Just today I started
working on a new version for this patch that instead of using cmake, it
relies on python itself for the building and install of the library. This
way we build just what we need and in a single place.

I just created this Jira with the patch:

https://issues.apache.org/jira/browse/PROTON-895


Thanks for the feedback,
Flavio



-- 
Flavio (@flaper87) Percoco
http://www.flaper87.com
http://github.com/FlaPer87

Re: Candidate python-qpid-proton 0.9.1 is available for testing at TestPyPi

Posted by Dominic Evans <do...@uk.ibm.com>.
Hi Ken,

-----Ken Giusti <kg...@redhat.com> wrote: -----
> Thanks Dominic,
> 
> Flavio sent me a patch to fix this, I've tested it and it looks good.
> 
> I've pushed a new package up to the pypi testing site if you'd like
> to give it a try:
> 
> pip install --user -i https://testpypi.python.org/pypi
> python-qpid-proton
> 

Sorry for the slow response. Just got around to trying this now.

The package is working well with pip --user now.

A minor caveat (I wouldn't hold up the release for) is that the install of
qpid-proton is left around with headers in ~/.local/include/ libraries in 
~/.local/lib/ and samples (for all the bindings) in ~/.local/share/.
These don't get included in a `pip uninstall`. It would be excellent if just
the runtime libqpid-proton could be installed into the
pythonX.X/site-packages/proton dir and then included in the uninstall


Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 741598. 
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


Re: Candidate python-qpid-proton 0.9.1 is available for testing at TestPyPi

Posted by Ken Giusti <kg...@redhat.com>.
Thanks Dominic,

Flavio sent me a patch to fix this, I've tested it and it looks good.

I've pushed a new package up to the pypi testing site if you'd like to give it a try:

 pip install --user -i https://testpypi.python.org/pypi python-qpid-proton


One Caveat: the new package is named "python-qpid-proton-0.9.1rc2" - some older versions of pip can't handle the version format and will fail to find the package.  I've used pip 7.0.1 without a problem.  If you can't upgrade pip, download the tar file directly and try to pip install that.


----- Original Message -----
> From: "Dominic Evans" <do...@uk.ibm.com>
> To: dev@qpid.apache.org
> Cc: flaper87@gmail.com
> Sent: Tuesday, May 26, 2015 5:55:04 PM
> Subject: Re: Candidate python-qpid-proton 0.9.1 is available for testing at TestPyPi
> 
> -----Ken Giusti <kg...@redhat.com> wrote: -----
> > I've pushed a candidate source package for python-qpid-proton to the
> > TestPyPi repository.
> > 
> > This source package includes Flavio's patch that pulls down the
> > Proton C sources if needed.
> > 
> > You can download it via pip like so:
> > 
> > pip install -i https://testpypi.python.org/pypi python-qpid-proton
> > 
> > Take it for a spin - kick the tires (or is that 'tyres'?). Drive it
> > like you stole it.
> > 
> > If it looks good I'll push the official package up to the real PyPi
> > site.
> 
> Thanks Ken. Doesn't appear to work for me with pip --user, as it tries to
> install to /usr rather than putting the proton binaries under ~/.local
> 
> > 
> > pip install --user -i https://testpypi.python.org/pypi python-qpid-proton
> > 
> > <SNIP>
> > 
> > Install the project...
> > 
> > -- Install configuration: "RelWithDebInfo"
> > 
> > CMake Error at cmake_install.cmake:36 (file):
> > 
> >   file cannot create directory: /usr/share/proton-0.9.  Maybe need
> > 
> >   administrative privileges.
> > 
> > Makefile:85: recipe for target 'install' failed
> > 
> > make: *** [install] Error 1
> > 
> > Fatal: Error while running cmake
> > 
> > run 'setup.py build --help' for build options
> > 
> > ----------------------------------------
> > Cleaning up...
> > Command /usr/bin/python -c "import setuptools,
> > tokenize;__file__='/tmp/pip-build-0NGgHr/python-qpid-proton/setup.py';exec(compile(getattr(tokenize,
> > 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))"
> > install --record /tmp/pip-Huplfa-record/install-record.txt
> > --single-version-externally-managed --compile --user failed with error
> > code 1 in /tmp/pip-build-0NGgHr/python-qpid-proton
> > Storing debug log for failure in /home/dnwe/.pip/pip.log
> > 24.56s user 1.90s system 73% cpu 35.908 total
> 
> Best regards,
> Dom
> 
> Unless stated otherwise above:
> IBM United Kingdom Limited - Registered in England and Wales with number
> 741598.
> Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
> For additional commands, e-mail: dev-help@qpid.apache.org
> 
> 

-- 
-K

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


Re: Candidate python-qpid-proton 0.9.1 is available for testing at TestPyPi

Posted by Dominic Evans <do...@uk.ibm.com>.
-----Ken Giusti <kg...@redhat.com> wrote: -----
> I've pushed a candidate source package for python-qpid-proton to the
> TestPyPi repository.
> 
> This source package includes Flavio's patch that pulls down the
> Proton C sources if needed.
> 
> You can download it via pip like so:
> 
> pip install -i https://testpypi.python.org/pypi python-qpid-proton
> 
> Take it for a spin - kick the tires (or is that 'tyres'?). Drive it
> like you stole it.
> 
> If it looks good I'll push the official package up to the real PyPi
> site.

Thanks Ken. Doesn't appear to work for me with pip --user, as it tries to
install to /usr rather than putting the proton binaries under ~/.local

> 
> pip install --user -i https://testpypi.python.org/pypi python-qpid-proton  
> 
> <SNIP>
> 
> Install the project...
> 
> -- Install configuration: "RelWithDebInfo"
> 
> CMake Error at cmake_install.cmake:36 (file):
> 
>   file cannot create directory: /usr/share/proton-0.9.  Maybe need
> 
>   administrative privileges.
> 
> Makefile:85: recipe for target 'install' failed
> 
> make: *** [install] Error 1
> 
> Fatal: Error while running cmake
> 
> run 'setup.py build --help' for build options
> 
> ----------------------------------------
> Cleaning up...
> Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-0NGgHr/python-qpid-proton/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-Huplfa-record/install-record.txt --single-version-externally-managed --compile --user failed with error code 1 in /tmp/pip-build-0NGgHr/python-qpid-proton
> Storing debug log for failure in /home/dnwe/.pip/pip.log
> 24.56s user 1.90s system 73% cpu 35.908 total

Best regards,
Dom

Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 741598. 
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


Re: Candidate python-qpid-proton 0.9.1 is available for testing at TestPyPi

Posted by Gordon Sim <gs...@redhat.com>.
On 05/26/2015 10:08 PM, Ken Giusti wrote:
>
> I've pushed a candidate source package for python-qpid-proton to the TestPyPi repository.
>
> This source package includes Flavio's patch that pulls down the Proton C sources if needed.
>
> You can download it via pip like so:
>
> pip install -i https://testpypi.python.org/pypi python-qpid-proton
>
> Take it for a spin - kick the tires (or is that 'tyres'?).   Drive it like you stole it.
>
> If it looks good I'll push the official package up to the real PyPi site.

Looks good to me!

(I did notice that the python examples hit an assertion in the c code 
and dump core when there is nothing to connect to, but that seems to 
have been a bug that slipped in to 0.9.1 and is present in the original 
tarball for that, though not on master or 0.9, so not relevant to the 
setup changes.)


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


Re: Candidate python-qpid-proton 0.9.1 is available for testing at TestPyPi

Posted by Flaper87 <fl...@gmail.com>.
2015-05-26 23:08 GMT+02:00 Ken Giusti <kg...@redhat.com>:

>
> I've pushed a candidate source package for python-qpid-proton to the
> TestPyPi repository.
>
> This source package includes Flavio's patch that pulls down the Proton C
> sources if needed.
>
> You can download it via pip like so:
>
> pip install -i https://testpypi.python.org/pypi python-qpid-proton
>
> Take it for a spin - kick the tires (or is that 'tyres'?).   Drive it like
> you stole it.
>
> If it looks good I'll push the official package up to the real PyPi site.
>
> thanks,
>


Hey Ken,

Thanks for spinning this off. I just tested the library in a clean
virtualenv. I installed it from TestPyPi and I installed pyngus 1.2 on top
of it (1.2 because 1.3 uses pip install on that git repo).

Things seem to be working fine, can you spin the release on pypi ?

Thanks for the backport, I think it's of huge help,
Flavio


-- 
Flavio (@flaper87) Percoco
http://www.flaper87.com
http://github.com/FlaPer87