CHANGES.txt 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. Changelog
  2. ===========
  3. 0.3 (unreleased)
  4. ------------------
  5. - The ``glob_data_files`` hook became a pre-command hook for the install_data
  6. command instead of being a setup-hook. This is to support the additional
  7. functionality of requiring data_files with relative destination paths to be
  8. install relative to the package's install path (i.e. site-packages).
  9. - Dropped support for and deprecated the easier_install custom command.
  10. Although it should still work, it probably won't be used anymore for
  11. stsci_python packages.
  12. - Added support for the ``build_optional_ext`` command, which replaces/extends
  13. the default ``build_ext`` command. See the README for more details.
  14. - Added the ``tag_svn_revision`` setup_hook as a replacement for the
  15. setuptools-specific tag_svn_revision option to the egg_info command. This
  16. new hook is easier to use than the old tag_svn_revision option: It's
  17. automatically enabled by the presence of ``.dev`` in the version string, and
  18. disabled otherwise.
  19. - The ``svn_info_pre_hook`` and ``svn_info_post_hook`` have been replaced with
  20. ``version_pre_command_hook`` and ``version_post_command_hook`` respectively.
  21. However, a new ``version_setup_hook``, which has the same purpose, has been
  22. added. It is generally easier to use and will give more consistent results
  23. in that it will run every time setup.py is run, regardless of which command
  24. is used. ``stsci.distutils`` itself uses this hook--see the `setup.cfg` file
  25. and `stsci/distutils/__init__.py` for example usage.
  26. - Instead of creating an `svninfo.py` module, the new ``version_`` hooks create
  27. a file called `version.py`. In addition to the SVN info that was included
  28. in `svninfo.py`, it includes a ``__version__`` variable to be used by the
  29. package's `__init__.py`. This allows there to be a hard-coded
  30. ``__version__`` variable included in the source code, rather than using
  31. pkg_resources to get the version.
  32. - In `version.py`, the variables previously named ``__svn_version__`` and
  33. ``__full_svn_info__`` are now named ``__svn_revision__`` and
  34. ``__svn_full_info__``.
  35. - Fixed a bug when using stsci.distutils in the installation of other packages
  36. in the ``stsci.*`` namespace package. If stsci.distutils was not already
  37. installed, and was downloaded automatically by distribute through the
  38. setup_requires option, then ``stsci.distutils`` would fail to import. This
  39. is because the way the namespace package (nspkg) mechanism currently works,
  40. all packages belonging to the nspkg *must* be on the import path at initial
  41. import time.
  42. So when installing stsci.tools, for example, if ``stsci.tools`` is imported
  43. from within the source code at install time, but before ``stsci.distutils``
  44. is downloaded and added to the path, the ``stsci`` package is already
  45. imported and can't be extended to include the path of ``stsci.distutils``
  46. after the fact. The easiest way of dealing with this, it seems, is to
  47. delete ``stsci`` from ``sys.modules``, which forces it to be reimported, now
  48. the its ``__path__`` extended to include ``stsci.distutil``'s path.
  49. 0.2.2 (2011-11-09)
  50. ------------------
  51. - Fixed check for the issue205 bug on actual setuptools installs; before it
  52. only worked on distribute. setuptools has the issue205 bug prior to version
  53. 0.6c10.
  54. - Improved the fix for the issue205 bug, especially on setuptools.
  55. setuptools, prior to 0.6c10, did not back of sys.modules either before
  56. sandboxing, which causes serious problems. In fact, it's so bad that it's
  57. not enough to add a sys.modules backup to the current sandbox: It's in fact
  58. necessary to monkeypatch setuptools.sandbox.run_setup so that any subsequent
  59. calls to it also back up sys.modules.
  60. 0.2.1 (2011-09-02)
  61. ------------------
  62. - Fixed the dependencies so that setuptools is requirement but 'distribute'
  63. specifically. Previously installation could fail if users had plain
  64. setuptools installed and not distribute
  65. 0.2 (2011-08-23)
  66. ------------------
  67. - Initial public release