1. 25 Mar, 2004 2 commits
  2. 22 Mar, 2004 1 commit
    • Anthony Baxter's avatar
      Basic dependency checking. setup() has two new optional arguments · 7fcc46c7
      Anthony Baxter authored
      requires and provides. requires is a sequence of strings, of the
      form 'packagename-version'. The dependency checking so far merely
      does an '__import__(packagename)' and checks for packagename.__version__
      You can also leave off the version, and any version of the package
      will be installed.
      There's a special case for the package 'python' - sys.version_info
      is used, so
      requires= ( 'python-2.3', )
      just works.
      
      Provides is of the same format as requires - but if it's not supplied,
      a provides is generated by adding the version to each entry in packages,
      or modules if packages isn't there.
      Provides is currently only used in the PKG-INFO file. Shortly, PyPI
      will grow the ability to accept these lines, and register will be
      updated to send them.
      
      There's a new command 'checkdep' command that runs these checks.
      For this version, only greater-than-or-equal checking is done. We'll
      add the ability to specify an optional operator later.
      7fcc46c7
  3. 24 Feb, 2004 1 commit
  4. 20 Feb, 2004 5 commits
    • Thomas Heller's avatar
      Use the right wininstXX.exe, depending on · b78c1bc1
      Thomas Heller authored
      msvccompiler.get_build_version().
      
      Distributions without a pre-install-script didn't work any longer, we
      must at least provide the terminating NUL character.
      b78c1bc1
    • Thomas Heller's avatar
      wininst-6.exe and wininst-7.1.exe are in CVS, so that they can be · 61a049ae
      Thomas Heller authored
      included in Python distributions for systems other than Windows.
      Windows installers can be build on non-Windows systems as long as they
      only include pure python module distributions.
      61a049ae
    • Thomas Heller's avatar
    • Thomas Heller's avatar
      Recompiled the binary wininst.exe. · 20adf88e
      Thomas Heller authored
      Patch #892660 from Mark Hammond, for distutils bdist_wininst command.
      
      install.c: support for a 'pre-install-script', run before anything has
      been installed. Provides a 'message_box' module function for use by
      either the pre-install or post-install scripts.
      
      bdist_wininst.py: support for pre-install script. Typo (build->built),
      fixes so that --target-version can still work, even when the
      distribution has extension modules - in this case, we insist on
      --skip-build, as we still can't actually build other versions.
      20adf88e
    • Thomas Heller's avatar
      Patch #892660 from Mark Hammond, for distutils bdist_wininst command. · 0d7a3db0
      Thomas Heller authored
      install.c: support for a 'pre-install-script', run before anything has
      been installed. Provides a 'message_box' module function for use by
      either the pre-install or post-install scripts.
      
      bdist_wininst.py: support for pre-install script. Typo (build->built),
      fixes so that --target-version can still work, even when the
      distribution has extension modules - in this case, we insist on
      --skip-build, as we still can't actually build other versions.
      0d7a3db0
  5. 17 Feb, 2004 1 commit
  6. 12 Feb, 2004 1 commit
  7. 18 Jan, 2004 2 commits
  8. 05 Dec, 2003 1 commit
  9. 02 Dec, 2003 1 commit
  10. 28 Nov, 2003 1 commit
  11. 24 Oct, 2003 1 commit
  12. 20 Oct, 2003 1 commit
  13. 17 Jul, 2003 1 commit
  14. 27 Jun, 2003 1 commit
  15. 12 Jun, 2003 1 commit
  16. 01 Jun, 2003 1 commit
  17. 31 May, 2003 1 commit
  18. 14 May, 2003 1 commit
  19. 09 May, 2003 2 commits
  20. 24 Apr, 2003 1 commit
  21. 18 Apr, 2003 1 commit
    • Jason Tishler's avatar
      Patch #718049: Setting exe_extension for cygwin · 8e2d2f9f
      Jason Tishler authored
      On cygwin, the setup.py script uses unixccompiler.py for compiling and linking
      C extensions. The unixccompiler.py script assumes that executables do not get
      special extensions, which makes sense for Unix.  However, on Cygwin,
      executables get an .exe extension.
      
      This causes a problem during the configuration step (python setup.py config),
      in which some temporary executables may be generated. As unixccompiler.py does
      not know about the .exe extension, distutils fails to clean up after itself: it
      does not remove _configtest.exe but tries to remove _configtest instead.
      
      The attached patch to unixccompiler.py sets the correct exe_extension for
      cygwin by checking if sys.platform is 'cygwin'. With this patch, distutils
      cleans up after itself correctly.
      
      Michiel de Hoon
      University of Tokyo, Human Genome Center.
      8e2d2f9f
  22. 14 Apr, 2003 1 commit
    • Jason Tishler's avatar
      Patch #709178: remove -static option from cygwinccompiler · ac175fdb
      Jason Tishler authored
      After some more reflection (and no negative feedback), I am reverting the
      original patch and applying my version, cygwinccompiler.py-shared.diff,
      instead.
      
      My reasons are the following:
      
      1. support for older toolchains is retained
      2. support for new toolchains (i.e., ld -shared) is added
      
      The goal of my approach is to avoid breaking older toolchains while adding
      better support for newer ones.
      ac175fdb
  23. 09 Apr, 2003 3 commits
    • Jason Tishler's avatar
      Patch #718551: cygwinccompiler.get_versions() patch · 972516d3
      Jason Tishler authored
      The cygwinccompiler.get_versions() function only handles versions numbers of
      the form "x.y.z".  The attached patch enhances get_versions() to handle "x.y"
      too (i.e., the ".z" is optional).
      
      This change causes the unnecessary "--entry _DllMain@12" link option to be
      suppressed for recent Cygwin and Mingw toolchains. Additionally, it directs
      recent Mingw toolchains to use gcc instead of dllwrap during linking.
      972516d3
    • Jason Tishler's avatar
      Patch #709178: remove -static option from cygwinccompiler · 1942fa31
      Jason Tishler authored
      Currently, the cygwinccompiler.py compiler handling in
      distutils is invoking the cygwin and mingw compilers
      with the -static option.
      
      Logically, this means that the linker should choose to
      link to static libraries instead of shared/dynamically
      linked libraries.
      
      Current win32 binutils expect import libraries to have
      a .dll.a suffix and static libraries to have .a suffix.
      If -static is passed, it will skip the .dll.a
      libraries. This is pain if one has a tree with both
      static and dynamic libraries using this naming
      convention, and wish to use the dynamic libraries.
      
      The -static option being passed in distutils is to get
      around a bug in old versions of binutils where it would
      get confused when it found the DLLs themselves.
      
      The decision to use static or shared libraries is site
      or package specific, and should be left to the setup
      script or to command line options.
      1942fa31
    • Andrew M. Kuchling's avatar
  24. 03 Mar, 2003 3 commits
  25. 28 Feb, 2003 1 commit
  26. 26 Feb, 2003 1 commit
  27. 20 Feb, 2003 2 commits
  28. 19 Feb, 2003 1 commit