Python: normalize ownership, permissions, order of directory entries and tar format in distutils-generated archives
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
doc
private
t
.gitattributes
.gitignore
.pylintrc
.travis.yml
LICENSE
MANIFEST.in
Makefile
README.rst
distutils644.py
setup.cfg
setup.py

README.rst

Overview

distutils644 monkey-patches Python distutils to normalize metadata in generated archives:

  • ownership (root:root),
  • permissions (0644 or 0755),
  • order of directory entries (sorted),
  • tar format (ustar).

Usage

Add this to setup.py:

try:
    import distutils644
except ImportError:
    pass
else:
    distutils644.install()

Prerequisites

  • Python 2.7 or ≥ 3.2
  • wheel ≥ 0.7 (for wheel support)