setuptools on MorphOS
  • Just looking around
    marx
    Posts: 2 from 2009/11/24
    From: Poland
    Hi there!

    I wonder, is there something like a "setuptools" on Python 2.5 under MorphOS ? I would like to install some new modules, and now I`ve just coping it to site-packages folder. I know that this is not most elegant way to do it. Is there any other way?

    I would be very thankful for any advices
    With greetings
    MarX
  • »31.05.11 - 07:56
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    Yomgui
    Posts: 348 from 2004/8/31
    From: Québec - Canada
    I've replied to Marek by email, so I past my reply here as it could be useful for many:



    Yes, there is an offical way. Use the distutil module for that.
    With 2.5.4, all your scripts and .pym dyn modules should go into
    site-packers folder.
    lib-dynload is reserved for python-itself dyn modules, not for third parties.

    Please read the documentation here:
    http://docs.python.org/release/2.5.4/dist/dist.html

    It explains how to write a setup.py file to install and/or distribute
    (even to yourself only ;-))
    all your files.

    Now, it's always possible to do it by hand, specially when you got
    only few files:
    just copy them in the site-package directory.

    if it's a package (multiple python scripts into a dedicated directory
    tree), you must have
    a __init__.py file in each directory of the tree (except site-package
    itself obviously).

    [ Edited by Yomgui 01.06.2011 - 11:17 ]
    And now... next project!
  • »01.06.11 - 10:16
    Profile Visit Website
  • Visitor
  • You need to coerce your ascertain the consequences came up founded and in many cases understood just most functions, And in many cases in lowest.Coupled inside encouraged presenting motivation that you just decide on along with a pair of will are nevertheless jointly collectively.
    GW2 Gold

    Diablo 3 Items
  • »30.01.13 - 07:04