easy_install from svn

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Rob Cowie

    easy_install from svn

    Hi all,

    I currently use easy_install to install packages from a custom,
    locally hosted package_index. The index consists of a single html doc
    with a list of package names and urls. All works well.

    I would like to get a little more sophisticated and install a package
    from subversion.

    My package is structured as described in the setuptools docs.

    Simply pointing the url in my package index to svn://my/repo/package/trunk
    works, but I would like - and I get the impression it is possible - to
    be able to specify a revision number, or a tag and have that version
    installed.

    Is it simply a case of appending a fragment to the url?
    Would anyone be so kind as to provide a working example?

    cheers,

    Rob Cowie

  • Stefan Behnel

    #2
    Re: easy_install from svn

    Rob Cowie wrote:
    I currently use easy_install to install packages from a custom,
    locally hosted package_index. The index consists of a single html doc
    with a list of package names and urls. All works well.
    >
    I would like to get a little more sophisticated and install a package
    from subversion.
    >
    My package is structured as described in the setuptools docs.
    >
    Simply pointing the url in my package index to svn://my/repo/package/trunk
    works, but I would like - and I get the impression it is possible - to
    be able to specify a revision number, or a tag and have that version
    installed.
    >
    Is it simply a case of appending a fragment to the url?
    Would anyone be so kind as to provide a working example?
    This is how we do it for lxml:



    Stefan

    Comment

    • Rob Cowie

      #3
      Re: easy_install from svn

      On Jun 19, 8:13 pm, Stefan Behnel <stefan.behne l-n05...@web.dewr ote:
      Rob Cowie wrote:
      I currently use easy_install to install packages from a custom,
      locally hosted package_index. The index consists of a single html doc
      with a list of package names and urls. All works well.
      >
      I would like to get a little more sophisticated and install a package
      from subversion.
      >
      My package is structured as described in the setuptools docs.
      >
      Simply pointing the url in my package index to svn://my/repo/package/trunk
      works, but I would like - and I get the impression it is possible - to
      be able to specify a revision number, or a tag and have that version
      installed.
      >
      Is it simply a case of appending a fragment to the url?
      Would anyone be so kind as to provide a working example?
      >
      This is how we do it for lxml:
      >

      >
      Stefan
      Thanks.

      I guess I was wrong in thinking that one could add a revision number
      to the url fragment and have easy_install get that revision.
      Instead, I should explicitly specify the urls in the package index
      (and/or setup.py) and identify them with the fragment.

      So, to make a head version and a tag available, the following urls
      must be in the package index:

      svn://svn/my/repo/package/trunk#egg=packa ge-dev
      svn://svn/my/repo/package/tags/r1.0#egg=packag e-1.0

      and install them thus...

      easy_install -i http://may/index package==dev | package==1.0

      cheers,

      Rob Cowie

      Comment

      Working...