1. 08 Dec, 2012 2 commits
    • Éric Araujo's avatar
      Create ~/.pypirc securely (#13512). · 0bca979e
      Éric Araujo authored
      There was a window between the write and the chmod where the user’s
      password would be exposed, depending on default permissions.  Philip
      Jenvey’s patch fixes it.
      0bca979e
    • Éric Araujo's avatar
      Ignore .nfs* files in distutils (#7719). · 993d7914
      Éric Araujo authored
      These files are created by some NFS clients a file is edited and removed
      concurrently (see added link in doc for more info).  If such a file is
      removed between distutils calls listdir and copy, it will get confused.
      Other special files are ignored in sdist (namely VCS directories), but
      this has to be filtered out earlier.
      993d7914
  2. 28 Jun, 2012 1 commit
  3. 26 Jun, 2012 1 commit
    • David Malcolm's avatar
      Issue #14443: ensure that brp-python-bytecompile is invoked with the correct · 2b4009c7
      David Malcolm authored
      python executable
      
      The __os_install_macro defines some post-processing activities during an rpm
      build; one of the scripts it calls is brp-python-bytecompile, which can take
      an argument: the python executable with which to byte-compile .py files in the
      package payload.
      
      In some older versions of rpm (e.g. in RHEL 6), this invocation doesn't pass
      in an argument, and brp-python-bytecompile defaults to using /usr/bin/python,
      which can lead to the .py files being byte-compiled for the wrong version of
      python.  This has been fixed in later versions of rpm by passing in
      %{__python} as an argument to brp-python-bytecompile.
      
      Workaround this by detecting if __os_install_post has a 0-argument invocation
      of brp-python-bytecompile, and if so generating an equivalent macro that has
      the argument, and explicitly provide the new definition within the specfile.
      2b4009c7
  4. 28 May, 2012 1 commit
  5. 11 Apr, 2012 1 commit
  6. 10 Apr, 2012 1 commit
  7. 06 Apr, 2012 2 commits
  8. 18 Mar, 2012 2 commits
  9. 15 Mar, 2012 1 commit
  10. 07 Mar, 2012 1 commit
  11. 05 Mar, 2012 2 commits
  12. 26 Feb, 2012 1 commit
  13. 25 Feb, 2012 1 commit
    • Éric Araujo's avatar
      Fix long-standing bugs with MANIFEST.in parsing on Windows (#6884). · c3e7f5f5
      Éric Araujo authored
      These regex changes fix a number of issues for distutils on Windows:
      - #6884: impossible to include a file starting with 'build'
      - #9691 and #14004: sdist includes too many files
      - #13193: test_filelist failures
      
      This commit replaces the incorrect changes done in 0a94e2f807c7 and
      90b30d62caf2 to fix #13193; we were too eager to fix the test failures
      and I did not study the code enough before greenlighting patches.  This
      time we have unit tests from the problems reported by users to be sure
      we have the right fix.
      
      Thanks to Nadeem Vawda for his help.
      c3e7f5f5
  14. 23 Feb, 2012 3 commits
  15. 15 Feb, 2012 2 commits
  16. 12 Feb, 2012 1 commit
    • Éric Araujo's avatar
      Fix distutils.filelist.FileList under Windows (#13193). · 994f4c48
      Éric Araujo authored
      The code used to call os.path.join to build a regex but without escaping
      the backslash, which lead to test failures on Windows.  Antoine Pitrou
      fixed it in 0a94e2f807c7 by enhancing the code to accept both / and \,
      with proper escaping, but in my opinion this goes against the distutils
      feature freeze, hence this change.
      994f4c48
  17. 10 Feb, 2012 1 commit
    • Ned Deily's avatar
      Issue #13590: On OS X 10.7 and 10.6 with Xcode 4.2, building · 008c905d
      Ned Deily authored
      Distutils-based packages with C extension modules may fail because
      Apple has removed gcc-4.2, the version used to build python.org
      64-bit/32-bit Pythons.  If the user does not explicitly override
      the default C compiler by setting the CC environment variable,
      Distutils will now attempt to compile extension modules with clang
      if gcc-4.2 is required but not found. Also as a convenience, if
      the user does explicitly set CC, substitute its value as the default
      compiler in the Distutils LDSHARED configuration variable for OS X.
      (Note, the python.org 32-bit-only Pythons use gcc-4.0 and the 10.4u
      SDK, neither of which are available in Xcode 4.  This change does not
      attempt to override settings to support their use with Xcode 4.)
      008c905d
  18. 05 Feb, 2012 1 commit
  19. 03 Feb, 2012 1 commit
  20. 18 Jan, 2012 3 commits
  21. 15 Jan, 2012 1 commit
    • Éric Araujo's avatar
      Stop ignoring RPMs in distutils' upload command (#2945). · a63bd68d
      Éric Araujo authored
      Bug reported by Hartmut Goebel and patch contributed by Carl Robben.
      Carl tested the fix and we have a buildbot with rpm installed, so I’m
      committing even though I could not run this test (but I do understand
      the changed code :)
      a63bd68d
  22. 12 Nov, 2011 1 commit
  23. 03 Nov, 2011 3 commits
  24. 02 Nov, 2011 1 commit
    • Éric Araujo's avatar
      Cleanups in distutils tests. · 489ea5a9
      Éric Araujo authored
      - Actually check the contents of the file created by bdist_dumb.
      - Don’t use “RECORD” as filename for non-PEP 376 record file
      - Don’t start method name with “_test”, it smells like a disabled test
        method instead of an helper method
      - Fix some idioms (assertIn, addCleanup)
      489ea5a9
  25. 28 Oct, 2011 1 commit
  26. 17 Oct, 2011 2 commits
  27. 11 Oct, 2011 1 commit
  28. 09 Oct, 2011 1 commit