Skip to content

Python: normalize ownership, permissions, order of directory entries and tar format in distutils-generated archives

License

Notifications You must be signed in to change notification settings

jwilk/distutils644

Repository files navigation

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)

About

Python: normalize ownership, permissions, order of directory entries and tar format in distutils-generated archives

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published