Open Source Content Management Framework

Use setuptools for python bindings

1 2 next
  1. Use setuptools for python bindings

    Thu October 15 2009 08:50:08 UTC
    I want to convert configuration/building procedure of python buildings
    to use setuptools.

    http://peak.telecommunity.com/DevCenter/setuptools

    Pro:
    * This will be a native build-solution (similiar to phpize being
    native for php)
    * It has standard testing-target http://peak.telecommunity.com/DevCenter/setuptools#test-build-package-and-run-a-unittest-suite

    Contra:
    * I don't know any

    Any objections?
    _______________________________________________
    dev mailing list
    dev@lists.midgard-project.org
    http://lists.midgard-project.org/mailman/listinfo/dev
    •  Reply
  2. Re: [midgard-dev] Use setuptools for python bindings

    Thu October 15 2009 09:15:05 UTC
    Alexey Zakhlestin pisze:

    Hi!

    > I want to convert configuration/building procedure of python buildings
    > to use setuptools.
    >
    > http://peak.telecommunity.com/DevCenter/setuptools
    >
    > Pro:
    > * This will be a native build-solution (similiar to phpize being
    > native for php)

    Why it's better than configure; make; make install triple?
    Many users/developers find phpize annoying tool (becaue it's native per
    language and not standard one).

    > * It has standard testing-target http://peak.telecommunity.com/DevCenter/setuptools#test-build-package-and-run-a-unittest-suite
    >
    > Contra:
    > * I don't know any
    >
    > Any objections?

    Does it require special downloads/extensions?
    I have automatic builds in my mind.

    Piotras
    _______________________________________________
    dev mailing list
    dev@lists.midgard-project.org
    http://lists.midgard-project.org/mailman/listinfo/dev
    •  Reply
  3. Re: [midgard-dev] Use setuptools for python bindings

    Thu October 15 2009 09:30:14 UTC
    On 15.10.2009, at 13:14, Piotr Pokora wrote:

    > Alexey Zakhlestin pisze:
    >
    > Hi!
    >
    >> I want to convert configuration/building procedure of python
    >> buildings
    >> to use setuptools.
    >>
    >> http://peak.telecommunity.com/DevCenter/setuptools
    >>
    >> Pro:
    >> * This will be a native build-solution (similiar to phpize being
    >> native for php)
    >
    > Why it's better than configure; make; make install triple?
    > Many users/developers find phpize annoying tool (becaue it's native
    > per
    > language and not standard one).

    because it is easy to configure and is much more powerful (takes care
    of dependencies, allows to build egg-packages, etc.)

    >
    >> * It has standard testing-target http://peak.telecommunity.com/DevCenter/setuptools#test-build-package-and-run-a-unittest-suite
    >>
    >> Contra:
    >> * I don't know any
    >>
    >> Any objections?
    >
    > Does it require special downloads/extensions?
    > I have automatic builds in my mind.

    here's quote from the site above:

    "Your users don't need to install or even know about setuptools in
    order to use them, and you don't have to include the entire setuptools
    package in your distributions. By including just a single bootstrap
    module (an 8K .py file), your package will automatically download and
    install setuptools if the user is building your package from source
    and doesn't have a suitable version already installed."

    Should perfectly suitable for automatic builds
    _______________________________________________
    dev mailing list
    dev@lists.midgard-project.org
    http://lists.midgard-project.org/mailman/listinfo/dev
    •  Reply
  4. Re: [midgard-dev] Use setuptools for python bindings

    Thu October 15 2009 09:30:25 UTC
    Alexey Zakhlestin pisze:

    Hi!

    > "Your users don't need to install or even know about setuptools in
    > order to use them, and you don't have to include the entire setuptools
    > package in your distributions. By including just a single bootstrap
    > module (an 8K .py file), your package will automatically download and
    > install setuptools if the user is building your package from source
    > and doesn't have a suitable version already installed."
    >
    > Should perfectly suitable for automatic builds

    Sounds good. Let's try this one then :)

    Piotras
    _______________________________________________
    dev mailing list
    dev@lists.midgard-project.org
    http://lists.midgard-project.org/mailman/listinfo/dev
    •  Reply
  5. Re: [midgard-dev] Use setuptools for python bindings

    Thu October 15 2009 14:55:13 UTC
    On 15.10.2009, at 13:27, Piotr Pokora wrote:

    > Alexey Zakhlestin pisze:
    >
    > Hi!
    >
    >> "Your users don't need to install or even know about setuptools in
    >> order to use them, and you don't have to include the entire
    >> setuptools
    >> package in your distributions. By including just a single bootstrap
    >> module (an 8K .py file), your package will automatically download and
    >> install setuptools if the user is building your package from source
    >> and doesn't have a suitable version already installed."
    >>
    >> Should perfectly suitable for automatic builds
    >
    > Sounds good. Let's try this one then :)

    Ok. It is done
    Works fine for me. More people are encouraged to test :)

    TODO:
    1) egg-package is currently versioned 0.1.
    We either need to use some static version there (and update it) or get
    version dynamically from somewhere else.
    Do we want to have the the same version as core there? then we can
    parse it out of some header-file.

    2) we need to convert tests to python's standard format and enable
    them in setup.py
    Volunteers are welcome. Tero? :)
    I propose to use the same model of testing as in php extension (create
    clean sqlite-database before running tests)

    _______________________________________________
    dev mailing list
    dev@lists.midgard-project.org
    http://lists.midgard-project.org/mailman/listinfo/dev
    •  Reply
  6. Re: [midgard-dev] Use setuptools for python bindings

    Thu October 15 2009 15:15:07 UTC
    Alexey Zakhlestin pisze:

    Hi!

    >>> Should perfectly suitable for automatic builds
    >> Sounds good. Let's try this one then :)
    >
    > Ok. It is done
    > Works fine for me. More people are encouraged to test :)

    python setup.py install
    running install
    Checking .pth file support in /usr/local/lib/python2.6/dist-packages/
    error: can't create or remove files in install directory

    The following error occurred while trying to add or remove files in the
    installation directory:

    [Errno 13] Permission denied:
    '/usr/local/lib/python2.6/dist-packages/test-easy-install-6190.pth'

    The installation directory you specified (via --install-dir, --prefix, or
    the distutils default setting) was:

    /usr/local/lib/python2.6/dist-packages/


    > TODO:
    > 1) egg-package is currently versioned 0.1.
    > We either need to use some static version there (and update it) or get
    > version dynamically from somewhere else.
    > Do we want to have the the same version as core there? then we can
    > parse it out of some header-file.

    If I can still use make dist to build stuff, then I can use
    configure.ac. If not, then it must have proper release version (release
    one).

    Piotras
    _______________________________________________
    dev mailing list
    dev@lists.midgard-project.org
    http://lists.midgard-project.org/mailman/listinfo/dev
    •  Reply
  7. Re: [midgard-dev] Use setuptools for python bindings

    Thu October 15 2009 15:20:05 UTC
    On 15.10.2009, at 19:11, Piotr Pokora wrote:

    > Alexey Zakhlestin pisze:
    >
    > Hi!
    >
    >>>> Should perfectly suitable for automatic builds
    >>> Sounds good. Let's try this one then :)
    >>
    >> Ok. It is done
    >> Works fine for me. More people are encouraged to test :)
    >
    > python setup.py install
    > running install
    > Checking .pth file support in /usr/local/lib/python2.6/dist-packages/
    > error: can't create or remove files in install directory

    well, obviously you don't have enough rights. are you root? ;)

    >> TODO:
    >> 1) egg-package is currently versioned 0.1.
    >> We either need to use some static version there (and update it) or
    >> get
    >> version dynamically from somewhere else.
    >> Do we want to have the the same version as core there? then we can
    >> parse it out of some header-file.
    >
    > If I can still use make dist to build stuff, then I can use
    > configure.ac. If not, then it must have proper release version
    > (release
    > one).

    ok. will figure something out.
    _______________________________________________
    dev mailing list
    dev@lists.midgard-project.org
    http://lists.midgard-project.org/mailman/listinfo/dev
    •  Reply
  8. Re: [midgard-dev] Use setuptools for python bindings

    Thu October 15 2009 16:05:06 UTC
    Alexey Zakhlestin pisze:

    Hi!

    >> Checking .pth file support in /usr/local/lib/python2.6/dist-packages/
    >> error: can't create or remove files in install directory
    >
    > well, obviously you don't have enough rights. are you root? ;)

    Ah :) I focused on this /usr/local part which seemed wrong to me.
    Now works, thanks :)

    >> If I can still use make dist to build stuff, then I can use
    >> configure.ac. If not, then it must have proper release version
    >> (release
    >> one).
    >
    > ok. will figure something out.

    Point is. If this doesn't create proper tarball, I do not need this.
    Well... I do not want to use it then. So in such case version number is
    not important as `make dist` uses value found in configure.ac.

    Piotras
    _______________________________________________
    dev mailing list
    dev@lists.midgard-project.org
    http://lists.midgard-project.org/mailman/listinfo/dev
    •  Reply
  9. Re: [midgard-dev] Use setuptools for python bindings

    Thu October 15 2009 16:20:06 UTC
    Alexey Zakhlestin pisze:

    Hi again!

    >> If I can still use make dist to build stuff, then I can use
    >> configure.ac. If not, then it must have proper release version
    >> (release
    >> one).
    >
    > ok. will figure something out.

    Whatever you do, make sure:

    * makedist creates proper tarballs with proper version
    * debian.rules and spec files for rpms invoke correct tools

    Piotras
    _______________________________________________
    dev mailing list
    dev@lists.midgard-project.org
    http://lists.midgard-project.org/mailman/listinfo/dev
    •  Reply
  10. Re: [midgard-dev] Use setuptools for python bindings

    Thu October 15 2009 16:25:08 UTC
    On 15.10.2009, at 20:04, Piotr Pokora wrote:

    > Point is. If this doesn't create proper tarball, I do not need this.
    > Well... I do not want to use it then. So in such case version number
    > is
    > not important as `make dist` uses value found in configure.ac.

    following command creates bzipped and gzipped versioned tarballs in
    dist/ folder
    python setup.py sdist --formats gztar,bztar

    see "python setup.py sdist --help" for details
    _______________________________________________
    dev mailing list
    dev@lists.midgard-project.org
    http://lists.midgard-project.org/mailman/listinfo/dev
    •  Reply
1 2 next
Designed by Nemein, hosted by Kafit