tools to install not in python tree?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • commander_coder@hotmail.com

    tools to install not in python tree?

    Hello,

    I have some materials for a project that I am working on that I keep
    in a source code control system (svn now, but I'm experimenting with
    mercurial). I want to install these things from the repository, but
    not into site-packages/ as Distutils wants to do.

    For instance there are some administrative scripts I want to put in ~/
    admin/ and some programs that I want in ~/public_html/ . I also
    want to run some post-install routines (for instance, reset the
    database tables on my development machine). So I'm looking for a tool
    to take things from a repository and install them into place.
    Something like:
    install_from_re pository.py -version "1.2.7"
    if there is a bug in 1.2.7 that I need to work on.

    Some of the things that I am looking for are like what setup.py does
    (for instance, changing the #! line on scripts or having a
    convenient .cfg file). But as I understand it setup only targets
    installing below sys.prefix; is that right?

    I can write routines for myself but other people must need to do these
    things also and a tested solution is obviously better. Is there such
    a tool?

    Thanks for any help,
    Jim
  • Miki

    #2
    Re: tools to install not in python tree?

    Hello Jim,
    I have some materials for a project that I am working on that I keep
    in a source code control system (svn now, but I'm experimenting with
    mercurial).  I want to install these things from the repository, but
    not into site-packages/ as Distutils wants to do.
    >
    For instance there are some administrative scripts I want to put in ~/
    admin/  and some programs that I want in ~/public_html/ .   I also
    want to run some post-install routines (for instance, reset the
    database tables on my development machine).  So I'm looking for a tool
    to take things from a repository and install them into place.
    Something like:
      install_from_re pository.py -version "1.2.7"
    if there is a bug in 1.2.7 that I need to work on.
    >
    Some of the things that I am looking for are like what setup.py does
    (for instance, changing the #! line on scripts or having a
    convenient .cfg file).  But as I understand it setup only targets
    installing below sys.prefix; is that right?
    >
    I can write routines for myself but other people must need to do these
    things also and a tested solution is obviously better.  Is there such
    a tool?
    Have a look at http://docs.python.org/lib/module-distutils.html,
    specially http://docs.python.org/dist/node13.html and


    HTH,
    --
    Miki <miki.tebeka@gm ail.com>
    If it won't be simple, it simply won't be. [Hire me, source code]

    Comment

    • Diez B. Roggisch

      #3
      Re: tools to install not in python tree?

      commander_coder @hotmail.com wrote:
      Hello,
      >
      I have some materials for a project that I am working on that I keep
      in a source code control system (svn now, but I'm experimenting with
      mercurial). I want to install these things from the repository, but
      not into site-packages/ as Distutils wants to do.
      >
      For instance there are some administrative scripts I want to put in ~/
      admin/ and some programs that I want in ~/public_html/ . I also
      want to run some post-install routines (for instance, reset the
      database tables on my development machine). So I'm looking for a tool
      to take things from a repository and install them into place.
      Something like:
      install_from_re pository.py -version "1.2.7"
      if there is a bug in 1.2.7 that I need to work on.
      >
      Some of the things that I am looking for are like what setup.py does
      (for instance, changing the #! line on scripts or having a
      convenient .cfg file). But as I understand it setup only targets
      installing below sys.prefix; is that right?
      You can use setuptools. And it will install to any path available on
      sys.path. So if you define PYTHONPATH pointing to some folder, you can use
      setuptools to install the code (eggs) as well as create script
      entry-points, so if the same path is part of PATH they will become
      available on the command line.

      Diez

      Comment

      • commander_coder@hotmail.com

        #4
        Re: tools to install not in python tree?

        Thank you for the helpful replies. I shall check out the links. (I
        looked at some setup.py's but mxBase was not among them.)

        Regards,
        Jim

        Comment

        Working...