1. 07 Jan, 2015 1 commit
    • Marius Gedminas's avatar
      Don't assume pkg_resources is a module. · e4101a23
      Marius Gedminas authored
      In setuptools < 8.3 pkg_resources.py was a module, so
      
          import pkg_resources
          print(pkg_resources.__file__)
      
      would print something like
      
          /home/mg/src/buildout/eggs/setuptools-8.0.4-py2.7.egg/pkg_resources.py
      
      Starting from setuptools 8.3 pkg_resources became a package, so the
      above code prints
      
          /home/mg/src/buildout/eggs/setuptools-11.3.1-py2.7.egg/pkg_resources/__init__.py
      
      which means a single os.path.dirname() is no longer sufficient to find
      the location of the .egg file/directory.
      
      I'm pretty sure 'setuptools' itself was always a package, so use two
      os.path.dirname()s on setuptools.__file__ to find the .egg location more
      reliably with both old and new setuptools versions.
      
      Fixes https://github.com/buildout/buildout/issues/227
      e4101a23
  2. 14 Dec, 2014 1 commit
  3. 09 Jun, 2013 1 commit
  4. 03 Jun, 2013 1 commit
    • Tres Seaver's avatar
      First stab at using setuptools >= 0.7 instead of distribute. · a0669e31
      Tres Seaver authored
      My doctest / renormalizer fu is not strong enough to deal with the
      changes to output:
      
      - setuptools now has dependencies, and emits output to add them as
        'find-links'.  I tried adding an 'adding_find_link' renormalizer,
        but it doesn't suppress the output.
      
      - Other failures due to merge tweaking APIs, etc.  Again, I'm not
        competent to fix them in the doctest / renormalizer world:  they make
        my head hurt.
      a0669e31
  5. 09 Sep, 2012 1 commit
  6. 04 Sep, 2012 1 commit
  7. 26 Aug, 2012 1 commit
  8. 21 Aug, 2012 2 commits
  9. 19 Aug, 2012 1 commit
  10. 22 Jul, 2012 2 commits
  11. 11 Jun, 2012 2 commits
  12. 03 Jun, 2012 1 commit
  13. 02 Jun, 2012 1 commit
  14. 28 Apr, 2012 2 commits
  15. 28 Feb, 2011 1 commit
  16. 08 Sep, 2009 1 commit
  17. 06 Aug, 2009 2 commits
  18. 17 Mar, 2009 1 commit
  19. 27 Aug, 2008 1 commit
  20. 05 Jul, 2007 1 commit
  21. 20 Jun, 2007 1 commit
  22. 26 Jun, 2006 1 commit
  23. 25 Jun, 2006 1 commit
    • Jim Fulton's avatar
      Major refactoring. The original motivation was to get the newest · 2530eeb2
      Jim Fulton authored
      distributions available. This required working around issues with
      easy_install's --upgrade option:
      
      - Upgrade is not recursive. Upgrading a distro doesn't update it's
        dependencies.
      
      - Upgrade doesn't try very hard to avoid searching.  If we require a
        specific version of a distribution, and we already have that
        distribution, there's no point in looking for a newer one.
      
      - easy_install has kind of odd rules for deciding when to look at an
        index.   Now that we use upgrade all the time, easy_install always
        wants to look at an index.
      
      - We get warnings when connecting to index servers, like PyPI that 
        return text/plain not found messages.
      
      We now have much greater control over how dependencies are
      managed. We've essentially taken this over from easy_install.
      
      Because we now always talk to an index server and because we want to
      control anything we do in a test, many of the tests actually run their
      own web servers.
      
      Anyway:
      
      - Now handle upgrades correctly, I think.
      
      - The egg recipe can now install multiple distributions.
      
      - We have the beginnings of offline mode.
      
      - The internal architeture is much cleaner.
      
      - We've merged the easy_install and egglinker modules, tossing
        some superfluois apis in the egglinker module.
      2530eeb2
  24. 17 Jun, 2006 2 commits
  25. 05 Jun, 2006 1 commit