← Back to team overview

oship-dev team mailing list archive

Re: Fwd: [egenix-users] eGenix PyPI-like package index available

 

Hi Diego,

excellent take on that! I intended looking into your solutions (also
w.r.t. pyXB) when the disappeared trunk bit me.

I'd like to suggest:

* get rid of the newton.iff.edu.br/oship/ucs2 and ucs4 links, so in
the future there will not be any maintenance needed on those URLs

* move the version out of the URL into the versions.cfg for obvious reasons

* add some comments to buildout.cfg about ucsdetector and its arguments

* maybe buildout.ucsdetector can have its own [part] together with its
ucs2-links and ucs4-links options in order not to clutter the
buildout.cfg [buildout] section. That would involve creating a recipe?

* submit your extension/recipe to egenix so your solution hopefully
gets wider spread in the buildout-community (if egenix likes it as
much as I do). At least you'll get some professional feedback!

Cheers,

Roger


On Sat, Apr 24, 2010 at 17:24, Diego Manhães Pinheiro
<dmpinheiro@xxxxxxxxx> wrote:
> Take a look at the oship buildout configuration and you see how it's solved.
> ;D
>
> 2010/4/24 Roger Erens <roger.erens@xxxxxxxxx>
>>
>> Probably this will make the installation a little easier:
>>
>>
>> ---------- Forwarded message ----------
>> From: M.-A. Lemburg <mal@xxxxxxxxxx>
>> Date: Fri, Apr 23, 2010 at 15:59
>> Subject: [egenix-users] eGenix PyPI-like package index available
>> To: eGenix Users <egenix-users@xxxxxxxxxx>
>>
>>
>> Hello eGenix Users,
>>
>> in the past few months we've experimented with our own PyPI-style
>> egg package index. This was needed since we wanted to provide
>> downloadable egg files, but needed to ship both UCS2 and UCS4
>> builds of the eggs. Since setuptools and easy_install don't
>> differentiate between those two Python build versions, we couldn't
>> use PyPI itself for hosting the files and decided to build a
>> simple, but effective index ourselves.
>>
>> Index
>> -----
>>
>> Here's the URL for the UCS2 index, which you can use for Windows
>> eggs as well as self compiled Python versions on Unix:
>>
>>    http://downloads.egenix.com/python/index/ucs2/
>>
>> and this is the one for UCS4 builds, which are commonly used for
>> eggs needed by Linux-distribution Python versions:
>>
>>    http://downloads.egenix.com/python/index/ucs4/
>>
>> Usage
>> -----
>>
>> Usage is easy, e.g.
>>
>> easy_install \
>>    -i http://downloads.egenix.com/python/index/ucs2/ \
>>    egenix-mx-base
>>
>> will install the latest egenix-mx-base distribution.
>>
>> If you want to install a specific version, you can also point
>> easy_install to the version directory:
>>
>> easy_install \
>>    -i http://downloads.egenix.com/python/index/ucs2/egenix-mx-base/3.1.3/
>> \
>>    egenix-mx-base
>>
>>
>> or you use the version selection mechanism from setuptools for this:
>>
>> easy_install \
>>    -i http://downloads.egenix.com/python/index/ucs2/ \
>>    "egenix-mx-base == 3.1.3"
>>
>> Buildout
>> --------
>>
>> The same can be done from zc.buildout. You only need to add the
>> index URL to the "find-links" entry of the [buildout] section and
>> the corresponding package name to the "eggs" entry.
>>
>> To pin down specific versions of a package, you can add
>> a "versions=versions" entry to the [buildout] section and
>> a new section
>>
>> """
>> [versions]
>> egenix-mx-base == 3.1.3
>> """
>>
>> to the buildout.cfg file.
>>
>> Quirks
>> ------
>>
>> The easy_install method only works reliably on Linux and Windows,
>> due to the way it searches for the right egg files. On Macs and
>> FreeBSD, the platform string is not unified, so easy_install
>> will likely not find the right egg for your platform.
>>
>> In such a case, you will have to download the egg archive
>> and then point easy_install directly to the egg file. For
>> buildout, you will have to rename the file to whatever
>> platform string easy_install uses to search for the right
>> egg.
>>
>> Plans
>> -----
>>
>> We currently have the egenix-mx-base packages and egenix-mxodbc-zopeda
>> up on the index, but will extend this to more packages as we release
>> new versions.
>>
>> Enjoy,
>> --
>> Marc-Andre Lemburg
>> eGenix.com
>>
>> Professional Python Services directly from the Source  (#1, Apr 23 2010)
>> >>> Python/Zope Consulting and Support ...        http://www.egenix.com/
>> >>> mxODBC.Zope.Database.Adapter ...             http://zope.egenix.com/
>> >>> mxODBC, mxDateTime, mxTextTools ...        http://python.egenix.com/
>> ________________________________________________________________________
>>
>> ::: Try our new mxODBC.Connect Python Database Interface for free ! ::::
>>
>>
>>   eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
>>    D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
>>           Registered at Amtsgericht Duesseldorf: HRB 46611
>>               http://www.egenix.com/company/contact/
>>
>>
>> _______________________________________________________________________
>> eGenix.com User Mailing List                     http://www.egenix.com/
>> https://www.egenix.com/mailman/listinfo/egenix-users
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~oship-dev
>> Post to     : oship-dev@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~oship-dev
>> More help   : https://help.launchpad.net/ListHelp
>
>
>
> --
> http://dmpinheiro.blogspot.com
> -----------------------------------
> Diego Manhães Pinheiro
> Linux User #375020
>



References