Обсуждение: [psycopg] Releasing Linux binary packages of psycopg

Поиск
Список
Период
Сортировка

[psycopg] Releasing Linux binary packages of psycopg

От
Daniele Varrazzo
Дата:
Hello,

I'm testing with the generation of "manylinux" packages for psycopg2.
This means it is a binary distribution including all the libs (libpq,
ldap, ssl, kerberos...) that can be installed on any Linux platform
without the need of a C compiler, a system libpq, pg_config in the
path, and all the other support libraries.

The distribution is currently available on the test pypi:
https://testpypi.python.org/pypi/psycopg2/2.7.dev0 It should be
possible to install it using:

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

The main libraries version included are libpq from PG 9.5.5, libssl
0.9.8e: I think they are modern enough but I'd be glad to know
otherwise. (The manylinux build system is limited to what can be
installed on CentOS 5).

If you can test the packages on your most stripped-down Linux version
that'd be great. Thank you very much!

-- Daniele


Re: [psycopg] Releasing Linux binary packages of psycopg

От
Adrian Klaver
Дата:
On 01/04/2017 06:37 AM, Daniele Varrazzo wrote:
> Hello,
>
> I'm testing with the generation of "manylinux" packages for psycopg2.
> This means it is a binary distribution including all the libs (libpq,
> ldap, ssl, kerberos...) that can be installed on any Linux platform
> without the need of a C compiler, a system libpq, pg_config in the
> path, and all the other support libraries.
>
> The distribution is currently available on the test pypi:
> https://testpypi.python.org/pypi/psycopg2/2.7.dev0 It should be
> possible to install it using:
>
> pip install -i https://testpypi.python.org/pypi psycopg2

Created a Python 3 virtualenv and the install completed.

Did the connect, cursor, cursor.execute sequence and it worked.

I see the libraries in:

lib64/python3.4/site-packages/psycopg2/.libs>

>
> The main libraries version included are libpq from PG 9.5.5, libssl
> 0.9.8e: I think they are modern enough but I'd be glad to know
> otherwise. (The manylinux build system is limited to what can be
> installed on CentOS 5).
>
> If you can test the packages on your most stripped-down Linux version
> that'd be great. Thank you very much!

That may involve me finding where I put my Raspberry Pi:)

>
> -- Daniele
>
>


--
Adrian Klaver
adrian.klaver@aklaver.com


Re: [psycopg] Releasing Linux binary packages of psycopg

От
Daniele Varrazzo
Дата:
Apparently Mac OS X has a similar tool, allowing to create a package
including all the libs needed. There are plenty of references from
https://github.com/MacPython/numpy-wheels

I would be very interested in releasing similar packages for Mac OS X
too, which can be done with Travis, and why not automate building the
Windows wheels too, which can be done using appveyor.

Is there anyone experienced in these platforms who would like to help
with this project?

(BTW, thank you very much, Jason, for uploading Windows wheels for
Python 3.6: I just noticed them).

-- Daniele


Re: [psycopg] Releasing Linux binary packages of psycopg

От
Daniele Varrazzo
Дата:
I have set up a Travis CI project to build the manylinux wheels and
upload them on the server.

https://github.com/psycopg/psycopg2-wheels

I would love to have the same system extended to building binary
distribution for OSX and possibly for Windows too. Any help is
welcome.

-- Daniele